forked from WeblateOrg/weblate
-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (69 loc) · 2.09 KB
/
docs.yml
File metadata and controls
74 lines (69 loc) · 2.09 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Docs
on:
push:
branches-ignore:
- "dependabot/**"
- weblate
pull_request:
jobs:
build:
runs-on: ubuntu-20.04
name: Sphinx
steps:
- uses: actions/checkout@v2
- name: Cache pip
uses: actions/cache@v2.1.4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-docs-${{ hashFiles('**/requirements*.txt') }}
- name: Set up Python 3.8
uses: actions/setup-python@v2.2.1
with:
python-version: 3.8
- name: Install apt dependencies
run: |
sudo apt update
sudo apt install -y graphviz
- name: Install pip dependencies
run: pip install -r docs/requirements.txt
- name: Sphinx build
run: |
echo "::add-matcher::.github/matchers/sphinx.json"
./ci/run-docs
echo "::remove-matcher owner=sphinx::"
- uses: actions/upload-artifact@v2.2.2
with:
name: Documentation
path: docs/_build/html
linkcheck:
runs-on: ubuntu-20.04
name: Linkcheck
steps:
- uses: actions/checkout@v2
- name: Cache pip
uses: actions/cache@v2.1.4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-docs-${{ hashFiles('**/requirements*.txt') }}
- name: Set up Python 3.8
uses: actions/setup-python@v2.2.1
with:
python-version: 3.8
- name: Install pip dependencies
run: pip install -r docs/requirements.txt
- name: Sphinx linkcheck
run: |
./ci/run-docs linkcheck
- name: Sphinx linkcheck collect
if: always()
run: |
echo "::add-matcher::.github/matchers/sphinx-linkcheck.json"
echo "::add-matcher::.github/matchers/sphinx-linkcheck-warn.json"
sed 's@^@docs/@' docs/_build/linkcheck/output.txt
echo "::remove-matcher owner=sphinx::"
echo "::remove-matcher owner=sphinx-warn::"
- uses: actions/upload-artifact@v2.2.2
if: always()
with:
name: Linkcheck report
path: docs/_build/linkcheck/output.txt