File tree Expand file tree Collapse file tree 4 files changed +14
-4
lines changed Expand file tree Collapse file tree 4 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,8 @@ jobs:
151151 shell : bash
152152 run : |
153153 source bin/test_symengine_unix.sh
154+ pip install sphinx m2r2 sphinxcontrib-apidoc sphinx-book-theme
155+ sphinx-build docs/ genDocs
154156 env :
155157 PYTEST_ADDOPTS : ${{ matrix.PYTEST_ADDOPTS }}
156158 USE_GLIBCXX_DEBUG : ${{ matrix.USE_GLIBCXX_DEBUG }}
@@ -185,6 +187,12 @@ jobs:
185187 BUILD_SHARED_LIBS : ${{ matrix.BUILD_SHARED_LIBS }}
186188 PYTHON_VERSION : ${{ matrix.PYTHON_VERSION }}
187189
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+
188196 - name : Deploy Documentation
189197 if : ${{ (github.ref == 'refs/heads/main' && github.repository == 'Symengine/symengine.py') || (github.ref == 'refs/heads/master' && github.repository == 'Symengine/symengine.py')}}
190198 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
1919# Build Python wrappers and test
2020cd $PYTHON_SOURCE_DIR
2121bin/test_travis.sh
22-
Original file line number Diff line number Diff line change 1919
2020sys .path .insert (0 , os .path .abspath (".." ))
2121
22- import symengine
23-
2422# -- Project information -----------------------------------------------------
2523
2624project = 'symengine'
4947 "sphinxcontrib.apidoc" , # Automatically sets up sphinx-apidoc
5048 # "recommonmark", # Parses markdown
5149 "m2r2" , # Parses markdown in rst
50+ "autodoc2" ,
51+ ]
52+
53+ autodoc2_packages = [
54+ "../symengine" ,
5255]
5356
5457# 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
1010 :maxdepth: 2
1111 :caption: Contents:
1212
13- source/modules
13+ apidocs/index
1414
1515.. mdinclude :: ../README.md
1616
You can’t perform that action at this time.
0 commit comments