-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (47 loc) · 2.05 KB
/
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
48
49
50
51
52
53
name: Documentation
on: [pull_request]
jobs:
build_docs:
name: Build the sphinx documentation
runs-on: ubuntu-20.04
steps:
- name: Code checkout
uses: actions/checkout@v3
- name: Build HTML documentation
uses: ammaraskar/sphinx-action@master
# Flags used here, not in `make html`:
# -n Run in nit-picky mode. Currently, this generates warnings for all missing references.
# -W Turn warnings into errors. This means that the build stops at the first warning and sphinx-build exits with exit status 1.
# --keep-going keep going processing when getting warnings to the end of build
with:
docs-folder: 'docs/'
build-command: 'sphinx-build -b html -nW --keep-going . _build/html'
- name: Build Latex documentation
uses: ammaraskar/sphinx-action@master
with:
docs-folder: 'docs/'
build-command: 'sphinx-build -b latex -nW --keep-going . _build/latex'
- name: Build custom (French) language documentation
id: fr
continue-on-error: true
uses: ammaraskar/sphinx-action@master
with:
docs-folder: 'docs/'
build-command: 'sphinx-build -b html -D language=fr -nW --keep-going . _build/html_fr'
- name: Build custom (German) language documentation
id: de
continue-on-error: true
uses: ammaraskar/sphinx-action@master
with:
docs-folder: 'docs/'
build-command: 'sphinx-build -b html -D language=de -nW --keep-going . _build/html_de'
- name: Build custom (Spanish) language documentation
id: es
continue-on-error: true
uses: ammaraskar/sphinx-action@master
with:
docs-folder: 'docs/'
build-command: 'sphinx-build -b html -D language=es -nW --keep-going . _build/html_es'
- name: Validate international translations
if: steps.fr.outcome != 'success' || steps.de.outcome != 'success' || steps.es.outcome != 'success'
run: exit 1