Skip to content

Commit 5aafb96

Browse files
committed
Fix docs build failure
1 parent 9bd7f03 commit 5aafb96

File tree

4 files changed

+11297
-8
lines changed

4 files changed

+11297
-8
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,3 @@ jobs:
3434
if: ${{ matrix.os == 'ubuntu-latest' }}
3535
run: |
3636
yarn run lint:check
37-
38-
- name: Check docs can be build + links
39-
if: ${{ matrix.os == 'ubuntu-latest' }}
40-
working-directory: docs
41-
run: |
42-
sudo apt install -y pandoc
43-
make html
44-
python -m pytest --check-links

.github/workflows/docs.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build Docs
2+
3+
on:
4+
push:
5+
branches: main
6+
pull_request:
7+
branches: "*"
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
16+
- name: Install docs dependencies
17+
uses: mamba-org/provision-with-micromamba@main
18+
with:
19+
environment-file: docs/env.yaml
20+
environment-name: ipynao_docs
21+
micromamba-version: '1.4.1'
22+
23+
- name: Activate environment and install package
24+
run: |
25+
eval "$(micromamba shell hook --shell=bash)"
26+
micromamba activate ipynao_docs
27+
python -m pip install .
28+
29+
- name: Check docs can be build + links
30+
working-directory: docs
31+
run: |
32+
sudo apt install -y pandoc
33+
make html
34+
python -m pytest --check-links

docs/environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ dependencies:
1010
- sphinx_rtd_theme
1111
- nbsphinx
1212
- nbsphinx-link
13+
- yarn=1.21

0 commit comments

Comments
 (0)