-
Notifications
You must be signed in to change notification settings - Fork 219
47 lines (40 loc) · 1.1 KB
/
build-docs.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
40
41
42
43
44
45
46
47
name: Build NV-Ingest Documentation
# Trigger for pull requests and pushing to main
on:
pull_request:
types:
- opened
- synchronize
- reopened
push:
branches:
- main
jobs:
build:
runs-on: linux-large-disk
container:
image: ubuntu:latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install system deps
run: |
pip install --upgrade pip
apt-get update && apt-get install -y make
# Install dependencies from docs/requirements.txt
- name: Install mkdocs dependencies
run: |
pip install -r docs/requirements.txt
- name: Build Sphinx API Docs
run: |
cd docs/sphinx_docs
make html
cd ../../
mv docs/sphinx_docs/build/html docs/docs/user-guide/api_docs
- name: Build MkDocs Site
run: mkdocs build --config-file docs/mkdocs.yml
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site