Skip to content

Latest commit

 

History

History
83 lines (58 loc) · 1.36 KB

README.md

File metadata and controls

83 lines (58 loc) · 1.36 KB

Sphinx Documentation

The documentation is built with Sphinx. See their documentation for (a lot) more details.

Installation

To generate the docs yourself, you'll need the appropriate package:

conda install sphinx
conda install sphinx_rtd_theme

pip install ghp-import
pip install sphinx-click

Add any new CLI docs

  • Create a new file .rest file in source/_cli
  • Add the following to the top of the new CLI module's .rst file:
.. click:: module_path:main
   :prog: CLI-Alias # e.g. Sup3r
   :show-nested:
  • git push changes to the documentation source code as needed.
  • Make the documentation per below

Building HTML Docs

Mac/Linux

make html

Windows

make.bat html

Building PDF Docs

To build a PDF, you'll need a latex distribution for your system.

Mac/Linux

make latexpdf

Windows

make.bat latexpdf

Pushing to GitHub Pages

Mac/Linux

make github

Windows

make.bat html

Then run the github-related commands by hand:

git branch -D gh-pages
git push origin --delete gh-pages
ghp-import -n -b gh-pages -m "Update documentation" ./_build/html
git checkout gh-pages
git push origin gh-pages
git checkout master # or whatever branch you were on