-
Notifications
You must be signed in to change notification settings - Fork 93
59 lines (48 loc) · 1.54 KB
/
sphinx-docs.yml
File metadata and controls
59 lines (48 loc) · 1.54 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Build and Deploy Sphinx Docs
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Strip "docs/" prefixes from README
run: sed -i 's|docs/||g' README.md
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies for main docs
working-directory: ./docs
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install dependencies for Python client docs
working-directory: ./client/python/projectairsim/docs
run: pip install -r requirements.txt
- name: Build Python client docs
working-directory: ./client/python/projectairsim/docs
run: |
rm -rf build
make html
- name: Build main docs
working-directory: ./docs
run: |
rm -rf build
make html
- name: Copy Python client docs into main docs
run: |
mkdir -p docs/build/html/client_api
cp -r client/python/projectairsim/docs/build/html/* docs/build/html/client_api/
- name: Deploy to gh_page branch
if: github.event_name == 'push'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html
publish_branch: gh_page
force_orphan: true