Skip to content

Workflow for generating the docstring website

Notifications You must be signed in to change notification settings

Justinterest/docstring-gen

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

We use the Sphinx toolchain to transform the Python docstrings into HTMLs. This is as simple as:

  1. Set TAICHI_PATH to the root of the Taichi repo.

  2. Run the following:

    pip install -r requirements.txt
    cd experimental/
    make html
  3. Then go to _build/html and open index.html in your browser, i.e. open _build/html/index.html.

References

  • sphinx-autodoc: This extension can import the modules you are documenting, and pull in documentation from docstrings in a semi-automatic way.
  • sphinx.ext.napoleon: This is for parsing the Google-style (Numpy-style as well) Python docstring.
  • sphinx-rtd-theme: Additional Sphinx themes.
  • sphinx-autoapi: "real" auto-generation of APIs.

About

Workflow for generating the docstring website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 44.3%
  • HTML 37.2%
  • Makefile 7.2%
  • Batchfile 5.8%
  • Shell 5.5%