-
Notifications
You must be signed in to change notification settings - Fork 27
Documentation
zzolo edited this page Jul 27, 2011
·
5 revisions
All modules, classes, methods, properties should have DocStrings. This should be in the following format: ??
Documentation is created with Sphinx. You can access as the following address: ./docs/_build/index.html
The following commands can be used to fully generate a newer version of the documentation. (Borrowed the auto-generate script).
mkdir modules
./scripts/sphinx-autopackage-script/generate_modules.py --dest-dir=modules -f -s rst ./
sphinx-build -b html ./ ./docs/_build/
rm -r modules
Inline documentation should be written in and created with Natural Docs. For basics in Natural Docs, see this page. For specifics, follow the OpenLayers documentation standards.
The following commands will generate new documentation for Javascript.
-
svn co http://naturaldocs.svn.sourceforge.net/svnroot/naturaldocs/releases/Version_1_52/ naturaldocs
(Get NaturalDocs executable) -
chmod +x naturaldocs/NaturalDocs/NaturalDocs
(Make executable) -
naturaldocs/NaturalDocs/NaturalDocs -i static/js -xi static/js/libs -o HTML docs/js -p docs/js_config
(Create documentation) - Documentation can now be seen in a browser at
docs/js/index.html