This repository has been archived by the owner on Mar 3, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhowToUpdateDocs.txt
26 lines (25 loc) · 1.78 KB
/
howToUpdateDocs.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
The documentation for pybvc is autogenerated and hosted on Github. This document describes how to update the docs on Github.
1. You need to have Sphinx installed. This is the tool that autogenerates the documentation from the comments in the Python code.
2. You need to have both the master and gh-pages branches for pybvc:
git checkout -b gh-pages orgin/gh-pages
2. You need to have written comments (in Sphinx format) in the Python source code.
3. You need to be in the 'master' branch (git checkout master)
4. You need to be at the top directory (it should contain dodoc and publishdoc scripts)
5. Run: ./dodoc
This will run Sphinx and generate new documentation from the comments in the code. It may ask you if you want to
replace files in docsForGhPagesBranch, indicate you want to replace (A)ll.
5. Run: ./publishdoc
This will move the generated html documentation files from the master branch to the 'gh-pages' branch
The gh-pages branch is special in Github and it will generate a web page from the contents of this branch.
When the script is done you will be left in the gh-pages branch. Do not move out of the branch yet.
6. Run: git add .
This will add all the new html doc pages for staging
7. Run: git commit
Provide a comment that you are updating the documenation
This will stage all the new html doc pages for the gh-pages branch
8. Run: git push
This will push the new html doc pages to the gh-pages branch
9. Run: git checkout master
This will return you to the master branch
10. Check out the new documents (wait about 3 minutes for Github to prep them) at: http://brcdcomm.github.io/pybvc/index.html
11. If something is wrong with the web pages you can debug them using the Google Chrome developer tools (or your browsers equivalent)