$ python -m venv .venv
$ source .venv/bin/activate
(.venv) $ python -m pip install sphinx
$ pip install sphinx_rtd_theme
$ sphinx-build -M html docs/source/ build/
Then, open index.html in the build/html directory with a browser to preview.
$ python -m venv .venv
$ source .venv/bin/activate
(.venv) $ python -m pip install sphinx
$ pip install sphinx_rtd_theme
$ sphinx-build -M html docs/source/ build/
Then, open index.html in the build/html directory with a browser to preview.