@@ -18,28 +18,32 @@ Getting started
18
18
General file structure
19
19
----------------------
20
20
21
- All documentation is built from the :file: `doc/ ` directory. This directory
22
- contains both reStructuredText (ReST _; ``.rst ``) files that contain pages in
23
- the documentation and configuration files for Sphinx _.
21
+ All documentation is built from the :file: `doc/ `, :file: `tutorials/ `, and
22
+ :file: `examples/ ` directories. The :file: `doc/ ` directory contains both
23
+ reStructuredText (ReST _; ``.rst ``) files that contain pages in the
24
+ documentation and configuration files for Sphinx _.
24
25
25
- The ``.rst `` files are kept in :file: `doc/users `,
26
- :file: `doc/devel `, :file: `doc/api ` and :file: `doc/faq `. The main entry point is
27
- :file: `doc/index.rst `, which pulls in the :file: `index.rst ` file for the users
28
- guide, developers guide, api reference, and FAQs. The documentation suite is
29
- built as a single document in order to make the most effective use of cross
30
- referencing.
26
+ The main entry point is :file: `doc/index.rst `, which pulls in the
27
+ :file: `index.rst ` file for the users guide (:file: `doc/users `), developers
28
+ guide (:file: `doc/devel `), api reference (:file: `doc/api `), and FAQs
29
+ (:file: `doc/faq `). The documentation suite is built as a single document in
30
+ order to make the most effective use of cross referencing.
31
31
32
32
Sphinx _ also creates ``.rst `` files that are staged in :file: `doc/api ` from
33
33
the docstrings of the classes in the Matplotlib library. Except for
34
34
:file: `doc/api/api_changes/ `, these ``.rst `` files are created when the
35
35
documentation is built.
36
36
37
37
Similarly, the contents of :file: `doc/gallery ` and :file: `doc/tutorials ` are
38
- generated by the `Sphinx Gallery `_ from the sources in :file: `examples ` and
39
- :file: `tutorials `. These sources consist of python scripts that have ReST _
40
- documentation built into their comments. Don't directly edit the
41
- ``.rst `` files in :file: `doc/gallery ` and :file: `doc/tutorials ` as they are
42
- regenerated when the documentation are built.
38
+ generated by the `Sphinx Gallery `_ from the sources in :file: `examples/ ` and
39
+ :file: `tutorials/ `. These sources consist of python scripts that have ReST _
40
+ documentation built into their comments.
41
+
42
+ .. note ::
43
+
44
+ Don't directly edit the ``.rst `` files in :file: `doc/gallery ` and
45
+ :file: `doc/tutorials ` as they are regenerated when the documentation are
46
+ built.
43
47
44
48
Installing dependencies
45
49
-----------------------
@@ -54,9 +58,14 @@ requirements that are needed to build the documentation. They are listed in
54
58
55
59
.. note ::
56
60
57
- * You'll need a minimal working LaTeX distribution for many examples to run.
58
- * `Graphviz <http://www.graphviz.org/Download.php >`_ is not a Python package,
61
+ * You'll need a minimal working LaTeX distribution to build the
62
+ documentation.
63
+ * The LaTeX pacakges cm-super and dvipng are also required to build the
64
+ documentation.
65
+ * `Graphviz <http://www.graphviz.org/download >`_ is not a Python package,
59
66
and needs to be installed separately.
67
+ * You should set up a clean `virtual environment `_ if you plan to build the
68
+ documentation.
60
69
61
70
Building the docs
62
71
-----------------
0 commit comments