File tree 4 files changed +14
-2
lines changed
4 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,8 @@ jobs:
151
151
shell : bash
152
152
run : |
153
153
source bin/test_symengine_unix.sh
154
+ pip install sphinx m2r2 sphinxcontrib-apidoc sphinx-book-theme
155
+ sphinx-build docs/ genDocs
154
156
env :
155
157
PYTEST_ADDOPTS : ${{ matrix.PYTEST_ADDOPTS }}
156
158
USE_GLIBCXX_DEBUG : ${{ matrix.USE_GLIBCXX_DEBUG }}
@@ -185,6 +187,12 @@ jobs:
185
187
BUILD_SHARED_LIBS : ${{ matrix.BUILD_SHARED_LIBS }}
186
188
PYTHON_VERSION : ${{ matrix.PYTHON_VERSION }}
187
189
190
+ - name : Generate documentation
191
+ shell : bash
192
+ run : |
193
+ pip install sphinx m2r2 sphinx-autodoc2 sphinx-book-theme
194
+ sphinx-build docs/ genDocs
195
+
188
196
- name : Deploy Documentation
189
197
if : ${{ (github.ref == 'refs/heads/main' && github.repository == 'Symengine/symengine.py') || (github.ref == 'refs/heads/master' && github.repository == 'Symengine/symengine.py')}}
190
198
uses : peaceiris/actions-gh-pages@v3
Original file line number Diff line number Diff line change @@ -19,4 +19,3 @@ source bin/install_travis.sh
19
19
# Build Python wrappers and test
20
20
cd $PYTHON_SOURCE_DIR
21
21
bin/test_travis.sh
22
-
Original file line number Diff line number Diff line change 49
49
"sphinxcontrib.apidoc" , # Automatically sets up sphinx-apidoc
50
50
# "recommonmark", # Parses markdown
51
51
"m2r2" , # Parses markdown in rst
52
+ "autodoc2" ,
53
+ ]
54
+
55
+ autodoc2_packages = [
56
+ "../symengine" ,
52
57
]
53
58
54
59
# Add any paths that contain templates here, relative to this directory.
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Symengine Python API Documentation
10
10
:maxdepth: 2
11
11
:caption: Contents:
12
12
13
- source/modules
13
+ apidocs/index
14
14
15
15
.. mdinclude :: ../README.md
16
16
You can’t perform that action at this time.
0 commit comments