first steps with sphinx
-
install sphinx
$ pip install sphinx -
setup documentation sources
$ shpinx-quickstart -
difine document structure
-
toctree directive initially is empty
-
add
introandtutorial -
create
intro.rstandtutorial.rstinsourcefolder$ touch intro.rst tutorial.rst
-
-
running the build
-
use
sphinx-build$ sphinx-build -b html sourcedir builddir -
use make with
Makefileormake.bat$ make html
-
read the docs sphinx theme
-
installation via package
-
install
$ pip install sphinx_rtd_theme -
config
```conf # edit `conf.py` file import sphinx_rtd_theme html_theme = "sphinx_rtd_theme" html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] ```
-