forked from hyperspy/hyperspy
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 1.28 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
name: Docs
on: [push, pull_request]
jobs:
build_doc:
name: Docs (PR comments)
runs-on: ubuntu-latest
env:
BUILD_DEPS: python3-dev build-essential graphviz
LATEX_DEPS: dvipng latexmk texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended
steps:
- uses: actions/[email protected]
- uses: ericpre/sphinx-action@latest_sphinx
with:
pre-build-command: "apt-get update -y && apt-get install -y ${{ env.BUILD_DEPS }} ${{ env.LATEX_DEPS }} && pip install .[all,build-doc]"
build-command: make html
docs-folder: doc/
- uses: actions/upload-artifact@v3
with:
path: ./doc/_build/html/
name: doc_build
check_links:
# This build is to check external links
name: Check external links
runs-on: ubuntu-latest
env:
DOCS_PATH: ./doc/_build/html/
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: '3.11'
- name: Install build docs
shell: bash -l {0}
run: |
pip install .[build-doc]
- name: Check links
shell: bash -l {0}
run: |
cd doc
make linkcheck