@@ -10,34 +10,44 @@ Getting started
10
10
General file structure
11
11
----------------------
12
12
13
- All documentation is built from the :file: `doc/ `, :file: `tutorials/ `, and
14
- :file: `examples/ ` directories. The :file: `doc/ ` directory contains
15
- configuration files for Sphinx and reStructuredText (ReST _; ``.rst ``) files
16
- that are rendered to documentation pages.
17
-
13
+ All documentation is built from the :file: `doc/ `, :file: `plot_types/ `,
14
+ :file: `tutorials/ `, and :file: `examples/ ` directories. The :file: `doc/ `
15
+ directory contains configuration files for Sphinx and reStructuredText
16
+ (ReST _; ``.rst ``) files that are rendered to documentation pages.
18
17
19
18
The main entry point is :file: `doc/index.rst `, which pulls in the
20
19
:file: `index.rst ` file for the users guide (:file: `doc/users `), developers
21
- guide (:file: `doc/devel `), api reference (:file: `doc/api `), and FAQs
22
- (:file: `doc/faq `). The documentation suite is built as a single document in
23
- order to make the most effective use of cross referencing.
20
+ guide (:file: `doc/devel `), api reference (:file: `doc/api `), and examples and
21
+ tutorial galleries (:file: `plot_types/ `, :file: ` tutorials/ `, and
22
+ :file: ` examples/ `).
24
23
25
- Sphinx _ also creates ``.rst `` files that are staged in :file: `doc/api ` from
24
+ Sphinx _ creates ``.rst `` files that are staged in :file: `doc/api ` from
26
25
the docstrings of the classes in the Matplotlib library. Except for
27
26
:file: `doc/api/api_changes/ `, these ``.rst `` files are created when the
28
27
documentation is built.
29
28
30
- Similarly, the contents of :file: `doc/gallery ` and :file: `doc/tutorials ` are
31
- generated by the `Sphinx Gallery `_ from the sources in :file: `examples/ ` and
32
- :file: `tutorials/ `. These sources consist of python scripts that have ReST _
33
- documentation built into their comments.
29
+ Similarly, the contents of :file: `doc/plot_types `, :file: `doc/gallery ` and
30
+ :file: `doc/tutorials ` are generated by the `Sphinx Gallery `_ from the
31
+ sources in :file: `plot_types/ `, :file: `examples/ ` and :file: `tutorials/ `.
32
+ These sources consist of python scripts that have ReST _ documentation built
33
+ into their comments.
34
+
35
+ All developer-editable ``.rst `` files are in subdirectories of
36
+ :file: `doc/users/ `. If you would like to add new documentation that is suited
37
+ to an ``.rst `` file (rather than a gallery or tutorial example), choose an
38
+ appropriate subdirectory to put it in, and add the file to the table of
39
+ contents of :file: `index.rst ` of the subdirectory. If you strongly feel
40
+ you need a new subdirectory, you can propose to add one (and then reference
41
+ in the table of contents of :file: `doc/users/index.rst `). However, please do
42
+ not add a bare file to the top-level :file: `doc/users ` without a compelling
43
+ reason.
34
44
35
45
.. note ::
36
46
37
- Don't directly edit the ``.rst `` files in :file: `doc/gallery `,
38
- :file: `doc/tutorials `, and :file: `doc/api ` (excepting
39
- :file: `doc/api/api_changes/ `). Sphinx _ regenerates files in these
40
- directories when building documentation.
47
+ Don't directly edit the ``.rst `` files in :file: `doc/plot_types `,
48
+ :file: `doc/gallery `, :file: ` doc/ tutorials `, and :file: `doc/api `
49
+ (excepting :file: `doc/api/api_changes/ `). Sphinx _ regenerates
50
+ files in these directories when building documentation.
41
51
42
52
Setting up the doc build
43
53
------------------------
@@ -181,7 +191,7 @@ Documents can be linked with the ``:doc:`` directive:
181
191
182
192
.. code-block :: rst
183
193
184
- See the :doc:`/faq/installing_faq`
194
+ See the :doc:`/users/ faq/installing_faq`
185
195
186
196
See the tutorial :doc:`/tutorials/introductory/sample_plots`
187
197
0 commit comments