@@ -4,25 +4,40 @@ Configuration File V2
4
4
Read the Docs supports configuring your documentation builds with a YAML file.
5
5
:doc: `The Read the Docs file <index >` must be in the root directory of your project.
6
6
7
- Here is an example of how this file looks like :
7
+ Below is an example YAML file which may require some changes for your project's configuration :
8
8
9
9
.. code :: yaml
10
10
11
- # .readthedocs.yml
11
+ # .readthedocs.yml
12
+ # Read the Docs configuration file
13
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
12
14
13
- version : 2
15
+ # Required
16
+ version : 2
17
+
18
+ # Build documentation in the docs/ directory with Sphinx
19
+ sphinx :
20
+ configuration : docs/conf.py
21
+
22
+ # Build documentation with MkDocs
23
+ # mkdocs:
24
+ # configuration: mkdocs.yml
25
+
26
+ # Optionally build your docs in additional formats such as PDF and ePub
27
+ formats : all
28
+
29
+ # Optionally set the version of Python and requirements required to build your docs
30
+ python :
31
+ version : 3.7
32
+ install :
33
+ - requirements : docs/requirements.txt
14
34
15
- python :
16
- version : 3.7
17
- install :
18
- - method : pip
19
- path : .
20
35
21
36
Supported settings
22
37
------------------
23
38
24
39
.. note ::
25
-
40
+
26
41
The presence of any other key that isn't documented here will make the build to fail.
27
42
This is to avoid typos and provide feedback on invalid configurations.
28
43
@@ -34,11 +49,11 @@ version
34
49
Example:
35
50
36
51
.. code-block :: yaml
37
-
52
+
38
53
version : 2
39
54
40
55
.. warning ::
41
-
56
+
42
57
If you don't provide the version, :doc: `v1 <v1 >` will be used.
43
58
44
59
formats
@@ -329,13 +344,13 @@ VCS submodules configuration.
329
344
Only Git is supported at the moment.
330
345
331
346
.. note ::
332
-
347
+
333
348
You can't use ``include `` and ``exclude `` settings for submodules at the same time.
334
349
335
350
Example:
336
351
337
352
.. code-block :: yaml
338
-
353
+
339
354
submodules :
340
355
include :
341
356
- one
@@ -351,7 +366,7 @@ List of submodules to be included.
351
366
:Default: ``[] ``
352
367
353
368
.. note ::
354
-
369
+
355
370
You can use the ``all `` keyword to include all submodules.
356
371
357
372
.. code-block :: yaml
@@ -368,7 +383,7 @@ List of submodules to be excluded.
368
383
:Default: ``[] ``
369
384
370
385
.. note ::
371
-
386
+
372
387
You can use the ``all `` keyword to exclude all submodules.
373
388
This is the same as ``include: [] ``.
374
389
0 commit comments