Skip to content
Brian L edited this page Nov 1, 2013 · 5 revisions

====== Epydoc generates html documentation for our project. To generate documentation, just run ./manage.py makedocs. This creates html documentation inside the doc directory. To view the documentation, just open doc/index.html in a web browser. To add or remove a directory to the list of searched directories, edit folders_to_include in apps/utils/management/commands/makedocs.py

Documenting Code

To document code, just add a docstring. Epydoc includes formatting tags to indicate things like parameters and return values, a full list can be found here. At minimum, every function should list the return value as @return and include a short description of what it does.

JSDoc

To read documentation for our JavaScript (pages.js), run this in the command line.

cd ~/Envs/SecondFunnel; jsdoc -p -l -r -d ./out --verbose apps/pinpoint/static/pinpoint/js/ README.md

Documentation will be saved in ./out.

Clone this wiki locally