Skip to content

Commit

Permalink
Minor updates to docs:
Browse files Browse the repository at this point in the history
pypa/pip#9031 is fixed so we can include sphinx in requirements.txt
Fixed Makefile so that it will use a virtual environment if one is active.
Added some simple directions for building docs.
  • Loading branch information
Hood committed Dec 16, 2020
1 parent e79c1ab commit bfe1427
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXBUILD = python3 -m sphinx
SOURCEDIR = .
BUILDDIR = _build

Expand Down
7 changes: 7 additions & 0 deletions docs/building_the_docs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
(building_the_docs)=
# Building the docs

From the directory ``docs``, first install the python dependencies with ``pip install -r requirements-doc.txt``.
Then build to build the docs run ``make html``.
The built documentation will be in the subdirectory ``docs/_build/html``. To view them, cd into ``_build/html`` and start a file server,
for instance ``http-server``.
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ information about the project's organization.
:caption: Development

building_from_sources.md
building_the_docs.md
new_packages.md
contributing.md
testing.md
Expand Down
5 changes: 2 additions & 3 deletions docs/requirements-doc.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Temporarly commented as a workaround for pypa/pip#9031
# sphinx
sphinx
sphinx_rtd_theme
myst-parser
sphinxcontrib-napoleon
distlib # required by micropip
distlib # required by micropip

0 comments on commit bfe1427

Please sign in to comment.