-
Notifications
You must be signed in to change notification settings - Fork 119
/
Copy pathREADME
34 lines (24 loc) · 1.25 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Steps to build and use the Sphinx documentation tool:
1) Get Sphinx, sphinxcontrib-bibtex, and the RTD theme installed on your desktop from
http://www.sphinx-doc.org/en/master/usage/installation.html
https://sphinxcontrib-bibtex.readthedocs.io/en/latest/quickstart.html#installation
https://pypi.org/project/sphinx-rtd-theme/
For example:
pip install sphinx
pip install sphinxcontrib-bibtex
pip install sphinx-rtd-theme
pip install sphinxcontrib.autoyaml
One approach that has worked to resolve "Module Not Found" errors for users with MacPorts package manager:
$ sudo port install py-six # may not be necessary
$ sudo port install py310-sphinxcontrib-bibtex
$ sudo port select --set sphinx py310-sphinx
$ sudo port install py310-sphinx_rtd_theme
py310 can be replaced with the user's version of Python (e.g., py39)
To build html:
$ cd ufs-srweather-app/doc
$ make clean && sphinx-build -b html . build
The "make html" command can often be used in place of the previous command.
"make doc" will both build the html and run the linkchecker.
Sphinx uses Latex to export the documentation as a PDF file. To build pdf:
make latexpdf
It will generate a PDF file in ./build/latex/<sphinx-project-name>.pdf