|
1 | 1 | maptlotlib documentation |
2 | 2 | ======================== |
3 | 3 |
|
| 4 | + |
| 5 | +Building the documentation |
| 6 | +-------------------------- |
| 7 | + |
| 8 | +A list of dependencies can be found in ../doc-requirements.txt. |
| 9 | + |
| 10 | +All of these dependencies can be installed through pip:: |
| 11 | + |
| 12 | + pip install -r ../doc-requirements.txt |
| 13 | + |
| 14 | +or conda:: |
| 15 | + |
| 16 | + conda install sphinx numpydoc ipython mock colorspacious pillow |
| 17 | + |
| 18 | +To build the HTML documentation, type ``python make.py html`` in this |
| 19 | +directory. The top file of the results will be ./build/html/index.html |
| 20 | + |
| 21 | +**Note that Sphinx uses the installed version of the package to build the |
| 22 | +documentation**: matplotlib must be installed *before* the docs can be |
| 23 | +generated. |
| 24 | + |
| 25 | +You can build the documentation with several options: |
| 26 | + |
| 27 | +* `--small` saves figures in low resolution. |
| 28 | +* `--allowsphinxwarnings`: Don't turn Sphinx warnings into errors. |
| 29 | +* `-n N` enables parallel build of the documentation using N process. |
| 30 | + |
| 31 | +Organization |
| 32 | +------------- |
| 33 | + |
4 | 34 | This is the top level build directory for the matplotlib |
5 | 35 | documentation. All of the documentation is written using sphinx, a |
6 | 36 | python documentation system built on top of ReST. This directory contains |
7 | 37 |
|
8 | | - |
9 | 38 | * users - the user documentation, e.g., plotting tutorials, configuration |
10 | 39 | tips, etc. |
11 | 40 |
|
@@ -33,21 +62,3 @@ python documentation system built on top of ReST. This directory contains |
33 | 62 | * mpl_examples - a link to the matplotlib examples in case any |
34 | 63 | documentation wants to literal include them |
35 | 64 |
|
36 | | -To build the HTML documentation, install sphinx (1.0 or greater |
37 | | -required), then type "python make.py html" in this directory. Wait |
38 | | -for the initial run (which builds the example gallery) to be done, |
39 | | -then run "python make.py html" again. The top file of the results will |
40 | | -be ./build/html/index.html |
41 | | - |
42 | | -Note that Sphinx uses the installed version of the package to build |
43 | | -the documentation, so matplotlib must be installed *before* the docs |
44 | | -can be generated. Even if that is the case, one of the files needed |
45 | | -to do this, '../lib/matplotlib/mpl-data/matplotlibrc', is not version |
46 | | -controlled, but created when matplotlib is built. This means that the |
47 | | -documentation cannot be generated immediately after checking out the |
48 | | -source code, even if matplotlib is installed on your system: you will |
49 | | -have to run ``python setup.py build`` first. |
50 | | - |
51 | | -To build a smaller version of the documentation (without |
52 | | -high-resolution PNGs and PDF examples), type "python make.py --small |
53 | | -html". |
|
0 commit comments