forked from jupyter/nbconvert
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (52 loc) · 1.47 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
54
55
56
57
name: Docs
on:
push:
branches: [main]
pull_request:
concurrency:
group: docs-${{ github.ref }}
cancel-in-progress: true
jobs:
generate-docs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.11"]
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install texlive-plain-generic inkscape texlive-xetex latexmk enchant-2
# pandoc is not up to date in the ubuntu repos, so we install directly
wget https://github.com/jgm/pandoc/releases/download/3.1.2/pandoc-3.1.2-1-amd64.deb && sudo dpkg -i pandoc-3.1.2-1-amd64.deb
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
- name: Install
run: pip install -v ".[all]"
- name: List installed packages
run: |
pip freeze
pip check
- name: Build HTML docs
run: |
cd docs
make html SPHINXOPTS="-W"
- name: Upload HTML
uses: actions/upload-artifact@v3
with:
name: html
path: build/sphinx/html
- name: Build PDF docs
run: |
cd docs
make latexpdf
- name: Upload PDF
uses: actions/upload-artifact@v3
with:
name: pdf
path: docs/build/latex/nbconvert.pdf
- name: Check links
run: |
cd docs
make linkcheck