py-typing/docs
Numerlor 345e89226e
Link to English version of Pycharm's landing site (#967)
The previous link sent the user to the German version of the site
2021-11-27 07:42:08 -08:00
..
source Make library guidelines checker agnostic (#934) 2021-11-11 19:34:15 -08:00
Makefile Add docs build options and theme requirements (#818) 2021-06-27 10:57:12 -07:00
README.rst Fix link in README (#918) 2021-11-02 13:57:31 -07:00
conf.py Move the typing tools section to the index (#847) 2021-08-23 14:20:19 -07:00
index.rst Link to English version of Pycharm's landing site (#967) 2021-11-27 07:42:08 -08:00
make.bat Initial sphinx docs setup (#814) 2021-06-03 18:53:01 -07:00
requirements.txt Upgrade Sphinx (#917) 2021-11-02 21:47:10 +01:00

README.rst

Python Typing Documentation
~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reading the docs
=================

The live documentation for Python's static typing can be found at
`typing.readthedocs.io <https://typing.readthedocs.io/>`_.

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.