File tree 5 files changed +43
-6
lines changed
5 files changed +43
-6
lines changed Original file line number Diff line number Diff line change
1
+ # .readthedocs.yaml
2
+ # Read the Docs configuration file
3
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4
+
5
+ # Required
6
+ version : 2
7
+
8
+ # Set the version of Python and other tools you might need
9
+ build :
10
+ os : ubuntu-22.04
11
+ tools :
12
+ python : " 3.10"
13
+ # You can also specify other tool versions:
14
+ # nodejs: "16"
15
+ # rust: "1.55"
16
+ # golang: "1.17"
17
+
18
+ # Build documentation in the docs/ directory with Sphinx
19
+ sphinx :
20
+ configuration : documentation_builder/conf.py
21
+
22
+ # If using Sphinx, optionally build your docs in additional formats such as PDF
23
+ # formats:
24
+ # - pdf
25
+
26
+ # Optionally declare the Python requirements required to build your docs
27
+ python :
28
+ install :
29
+ - requirements : documentation_builder/requirements.txt
30
+ - method : pip
31
+ path : .
Original file line number Diff line number Diff line change 36
36
"nbsphinx" ,
37
37
]
38
38
# Document Python Code
39
- autoapi_dirs = [SRC_PATH ]
39
+ autoapi_dirs = [join (SRC_PATH , "cobra" )]
40
+ autoapi_add_toctree_entry = False
41
+
42
+ # Enable typehints
43
+ autodoc_typehints = "signature"
40
44
41
45
# Napoleon settings
42
46
napoleon_numpy_docstring = True
46
50
47
51
# General information about the project.
48
52
project = "cobra"
49
- copyright = "2016-2019 , The cobrapy core team"
53
+ copyright = "2016-2022 , The cobrapy core team"
50
54
51
55
# The version info for the project you're documenting, acts as replacement for
52
56
# |version| and |release|, also used in various other places throughout the
Original file line number Diff line number Diff line change @@ -2,14 +2,14 @@ Documentation for COBRApy
2
2
=========================
3
3
4
4
For installation instructions, please see `INSTALL.rst
5
- <https://github.com/opencobra/cobrapy/blob/stable /INSTALL.rst> `_.
5
+ <https://github.com/opencobra/cobrapy/blob/devel /INSTALL.rst> `_.
6
6
7
7
Many of the examples below are viewable as IPython notebooks, which can
8
8
be viewed at `nbviewer
9
9
<http://nbviewer.ipython.org/github/opencobra/cobrapy/tree/stable/documentation_builder/> `_.
10
10
11
11
.. toctree ::
12
- :numbered:
12
+ :numbered: 3
13
13
:maxdepth: 2
14
14
15
15
getting_started
@@ -29,7 +29,7 @@ be viewed at `nbviewer
29
29
dfba
30
30
pymatbridge
31
31
faq
32
- _autogen/modules
32
+ API < /autoapi/cobra/index.rst >
33
33
34
34
35
35
Indices and tables
Original file line number Diff line number Diff line change 1
- Sphinx ~= 2.2
1
+ Sphinx ~= 5.3
2
2
sphinxcontrib-napoleon
3
3
sphinx-autoapi
4
4
nbsphinx >= 0.2.4
Original file line number Diff line number Diff line change 4
4
5
5
## Fixes
6
6
7
+ Fix automatic building of the documentation.
8
+
7
9
## Other
8
10
9
11
## Deprecated features
You can’t perform that action at this time.
0 commit comments