blob: 5ddade8751f93d233f0eb896b60d92899f7d9df6 [file] [log] [blame]
John DeNisco06dcd452018-07-26 12:45:10 -04001.. _readthedocs:
2
John DeNisco758dc462018-08-13 17:00:06 -04003Read The Docs
4=================
John DeNisco06dcd452018-07-26 12:45:10 -04005
6`Read the Docs <https://readthedocs.org/>`_ is a website that "simplifies software documentation by automating building, versioning, and hosting of your docs for you". Essentially, it accesses your Github repo to generate the **index.html** file, and then displays it on its own *Read the Docs* webpage so others can view your documentation.
7
8Create an account on *Read the Docs* if you haven't already.
9
10Go to your `dashboard <https://readthedocs.org/dashboard/>`_ , and click on "Import a Project".
11
12.. figure:: /_images/importReadDocs.png
13 :scale: 35%
14 :align: left
15
16 This will bring you to a page where you can choose to import a repo from your Github account (only if you've linked your Github account to your Read the Docs account), or to import a repo manually. In this example, we'll do it manually. Click "Import Manually".
17
18|
19|
20|
21|
22|
23|
24|
25
26
27
28This will bring you to a page that asks for your repo details. Set "Name" to your forked repo name, or whatever you want. Set "Repository URL" to the URL of your forked repo (https://github.com/YOURUSERNAME/vpp-docs). "Repository type" should already be selected to "Git". Then click "Next".
29
30
31.. figure:: /_images/importRTDManually.png
32 :scale: 35%
33 :align: left
34
35|
36|
37|
38|
39|
40|
41|
42|
43|
44|
45|
46|
47|
48|
49|
50|
51|
52|
53|
54|
55|
56|
57|
58
59
60This will bring you to a project page of your repo on Read the Docs. You can confirm it's the correct repo by checking on the right side of the page the Repository URL.
61
62Then click on "Build Version".
63
64.. figure:: /_images/buildVerRTD.png
65 :scale: 35%
66 :align: left
67
68|
69|
70|
71|
72|
73|
74|
75|
76|
77|
78|
79|
80|
81|
82|
83|
84|
85|
86|
87|
88|
89|
90|
91
92Which takes you to another page showing your recent builds.
93
94Then click on "Build Version:". This should "Trigger" a build. After about a minute or so you can refresh the page and see that your build "Passed".
95
96
97.. figure:: /_images/passedBuild.png
98 :scale: 35%
99 :align: left
100
101
102|
103|
104|
105|
106|
107|
108|
109|
110|
111|
112|
113|
114|
115|
116|
117|
118|
119|
120|
121|
122|
123
124
125Now on your builds page from the previous image, you can click "View Docs" at the top-right, which will take you a *readthedocs.io* page of your generated build!
126
127.. figure:: /_images/rtdWebpage.png
128 :scale: 30%
129 :align: left