-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docs build options and theme requirements (#818)
- Loading branch information
1 parent
a114379
commit 0fc0eda
Showing
4 changed files
with
84 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
Python Typing Documentation | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
Building the docs | ||
================= | ||
|
||
The documentation is built with tools which are not included in this | ||
tree but are maintained separately and are available from | ||
`PyPI <https://pypi.org/>`_. | ||
|
||
* `Sphinx <https://pypi.org/project/Sphinx/>`_ | ||
* `python-docs-theme <https://pypi.org/project/python-docs-theme/>`_ | ||
|
||
The easiest way to install these tools is to create a virtual environment and | ||
install the tools into there. | ||
|
||
Using make | ||
---------- | ||
|
||
To get started on UNIX, you can create a virtual environment with the command :: | ||
|
||
make venv | ||
|
||
That will install all the tools necessary to build the documentation. Assuming | ||
the virtual environment was created in the ``venv`` directory (the default; | ||
configurable with the VENVDIR variable), you can run the following command to | ||
build the HTML output files:: | ||
|
||
make html | ||
|
||
By default, if the virtual environment is not created, the Makefile will | ||
look for instances of sphinxbuild and blurb installed on your process PATH | ||
(configurable with the SPHINXBUILD and BLURB variables). | ||
|
||
Available make targets are: | ||
|
||
* "clean", which removes all build files. | ||
|
||
* "venv", which creates a virtual environment with all necessary tools | ||
installed. | ||
|
||
* "html", which builds standalone HTML files for offline viewing. | ||
|
||
* "text", which builds a plain text file for each source file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Requirements to build the Python documentation | ||
|
||
# Sphinx version is pinned so that new versions that introduce new warnings | ||
# won't suddenly cause build failures. Updating the version is fine as long | ||
# as no warnings are raised by doing so. | ||
sphinx==3.2.1 | ||
|
||
# The theme used by the documentation is stored separately, so we need | ||
# to install that as well. | ||
python-docs-theme |