Skip to content

Commit 8ea7f1a

Browse files
committed
gha: Init documentation action
1 parent e72fcea commit 8ea7f1a

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

.github/workflows/mkdocs.yaml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
- master
6+
7+
name: Make Sphinx API Docs
8+
9+
jobs:
10+
mkdocs:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Build CPP Core
15+
run: |
16+
git clone https://github.com/symengine/symengine symengine-cpp
17+
cd symengine-cpp
18+
export SOURCE_DIR=`pwd`
19+
git checkout `cat ../symengine_version.txt`
20+
cd $SOURCE_DIR
21+
source bin/install_travis.sh
22+
cd $SOURCE_DIR
23+
bin/test_travis.sh
24+
env:
25+
WITH_MPC: yes
26+
WITH_MPFR: yes
27+
WITH_FLINT: yes
28+
WITH_SCIPY: yes
29+
WITH_DOCS: yes
30+
INTEGER_CLASS: flint
31+
TEST_CPP: no
32+
TEST_SYMPY: yes
33+
MAKEFLAGS: -j2
34+
our_install_dir: $HOME/our_usr/
35+
- uses: s-weigand/setup-conda@v1
36+
- name: Build Bindings and Docs
37+
run: |
38+
export PYTHON_SOURCE_DIR=$GITHUB_WORKSPACE
39+
cd $PYTHON_SOURCE_DIR
40+
source bin/install_travis.sh
41+
bin/test_travis.sh
42+
pip install sphinx-autobuild m2r2 sphinxcontrib-apidoc sphinx-book-theme
43+
sphinx-build docs/ genDocs/
44+
env:
45+
WITH_MPC: yes
46+
WITH_MPFR: yes
47+
WITH_FLINT: yes
48+
WITH_SCIPY: yes
49+
WITH_DOCS: yes
50+
INTEGER_CLASS: flint
51+
TEST_CPP: no
52+
TEST_SYMPY: yes
53+
MAKEFLAGS: -j2
54+
our_install_dir: $HOME/our_usr/
55+
- name: Deploy Documentation
56+
uses: peaceiris/actions-gh-pages@v3
57+
with:
58+
github_token: ${{ secrets.GITHUB_TOKEN }}
59+
publish_dir: ./genDocs

0 commit comments

Comments
 (0)