-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (37 loc) · 1.1 KB
/
doc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: documentation
on:
push:
branches: [devel]
jobs:
build:
name: Sphinx Pages
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Checkout submodules
run: |
git submodule update --init ndk/ofm
git submodule update --init ndk/core
git submodule update --init ndk/cards
- name: Setup and build
run: |
sudo apt-get install python3-pip
pip3 install sphinx sphinx-vhdl sphinx_rtd_theme GitPython
mkdir public
mkdir public/html
cp doc/source/index.html public/html/
sphinx-build -M html doc/source public/devel
git checkout main
git submodule update
sphinx-build -M html doc/source public/main
mv public/main/html/ public/html/main
mv public/devel/html/ public/html/devel
touch public/html/.nojekyll
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: public/html