| 1 |
Mypy Documentation |
| 2 |
================== |
| 3 |
|
| 4 |
What's this? |
| 5 |
------------ |
| 6 |
|
| 7 |
This directory contains the source code for Mypy documentation (under `source/`) |
| 8 |
and build scripts. The documentation uses Sphinx and reStructuredText. We use |
| 9 |
`furo` as the documentation theme. |
| 10 |
|
| 11 |
Building the documentation |
| 12 |
-------------------------- |
| 13 |
|
| 14 |
Install Sphinx and other dependencies (i.e. theme) needed for the documentation. |
| 15 |
From the `docs` directory, use `pip`: |
| 16 |
|
| 17 |
``` |
| 18 |
pip install -r requirements-docs.txt |
| 19 |
``` |
| 20 |
|
| 21 |
Build the documentation like this: |
| 22 |
|
| 23 |
``` |
| 24 |
make html |
| 25 |
``` |
| 26 |
|
| 27 |
The built documentation will be placed in the `docs/build` directory. Open |
| 28 |
`docs/build/index.html` to view the documentation. |
| 29 |
|
| 30 |
Helpful documentation build commands |
| 31 |
------------------------------------ |
| 32 |
|
| 33 |
Clean the documentation build: |
| 34 |
|
| 35 |
``` |
| 36 |
make clean |
| 37 |
``` |
| 38 |
|
| 39 |
Test and check the links found in the documentation: |
| 40 |
|
| 41 |
``` |
| 42 |
make linkcheck |
| 43 |
``` |
| 44 |
|
| 45 |
Documentation on Read The Docs |
| 46 |
------------------------------ |
| 47 |
|
| 48 |
The mypy documentation is hosted on Read The Docs, and the latest version |
| 49 |
can be found at https://mypy.readthedocs.io/en/latest. |