Updating the Documentation¶
Overview¶
The documentation site is built on the Sphinx module, Sphinx docs and is written using the reStructuredText language. If you want to update the documentation, you can follow the guide below.
Step-by-step¶
- Decide on where you want to add documentation. Within the
docs\directory, there are a few items that are critical to the documention. index.rstis the root file, all of the.rstfiles branch from this file.contents.rstis the file that lists all of the directories listed on the documentation homepage.source\directory is where all of the documentation is housed. For example, you’ll find files likeaddNewInstrument.rstwhere you’ll find the written documention adding a new instrument class.
- Decide on where you want to add documentation. Within the
- Once you’ve decided where to add/edit, you merely edit the
.rstfile corresponding to the documentation you want to edit. - Note that if you are adding a new section to the documentation site, you need to create a new
.rstfile, put it insource\, and editcontents.rstin the appropriate location.
- Note that if you are adding a new section to the documentation site, you need to create a new
- Once you’ve decided where to add/edit, you merely edit the
- Finally, in the command-prompt at the present working directory of
..\..\ProberControl\prober\docs\sphinx-docs\executemake clean, then executemake html - You’ll now have an updated documentation site.
Note
If you are using Windows PowerShell, you may need to execute ./make.bat clean and ./make.bat html in order to execute a batch file if your PATH variable is not set for running .bat
Note
When building the html after running make html or ./make.bat html, the builder may throw several warnings in red. Glance over them, but most of the them are trivial and do not effect the documentation site.