The documentation of the ix modeling platform is generated from .rst files in
doc/source
, and from numpy-format docstrings in the Python code.
- Sphinx v1.8 or higher
- sphinx_rtd_theme
- sphinxcontrib.bibtex
- numpydoc
These can be installed as 'extra' dependencies of the ixmp
package. From
the top-level directory of the repository, run:
pip install .[docs]
There are a number of guides out there, e.g. on docutils.
Install the dependencies, above.
On Linux or Apple macOS, from the command line, run:
make html
On Windows, from the command line, run:
./make.bat
The build documentation is in doc/build/html/
and can be viewed by opening
doc/build/html/index.html
in a web browser.
The official version of the documentation is hosted on Read The Docs (RTD) at https://message.iiasa.ac.at/projects/ixmp/. RTD builds the docs using a command similar to:
sphinx-build -T -E -d _build/doctrees-readthedocs -D language=en . \ _build/html
This command is executed in the directory containing conf.py
, i.e.
doc/source/
. Note that this is different from doc/
, where the above
make
tools are invoked. Use this to test whether the documentation build
works on RTD.