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