Documentation for traitlets
is hosted on ReadTheDocs.
With hatch
, one can build environments, docs, and serve it in one command:
pip install hatch
hatch run docs:build
Otherwise to build docs manually,
cd docs
Create virtual environment (and install relevant dependencies):
virtualenv traitlets_docs -p python3
pip install -r traitlets[docs]
The virtualenv should have been automatically activated. If not:
source activate
-
Makefile for Linux and OS X:
make html
-
make.bat for Windows:
make.bat html
-
Navigate to
build/html/index.html
in your browser. -
Or alternatively you may run a local server to display the docs. In Python 3:
python -m http.server 8000
In your browser, go to
http://localhost:8000
.
source/conf.py
- Sphinx build configuration filesource
directory - source for documentationsource/index.rst
- Main landing page of the Sphinx documentation