Skip to content

Latest commit

 

History

History

docs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

This folder generates the Pandana online documentation, hosted at https://udst.github.io/pandana/.

How it works

HTML files are generated using Sphinx and hosted with GitHub Pages from the gh-pages branch of the repository. The online documentation is rendered and updated manually.

Editing the documentation

The files in docs/source, along with docstrings in the source code, determine what appears in the rendered documentation. Here's a good tutorial for Sphinx.

Previewing changes locally

Install the copy of Pandana that the documentation is meant to reflect. Install the documentation tools.

pip install . 
pip install sphinx sphinx_rtd_theme numpydoc

Build the documentation. There should be status messages and warnings, but no errors.

cd docs
sphinx-build -b html source build

The HTML files will show up in docs/build/.

Uploading changes

Clone a second copy of the repository and check out the gh-pages branch. Copy over the updated HTML files, commit them, and push the changes to GitHub.