Skip to content

Commit a5793df

Browse files
Merge pull request #17 from jupyter-robotics/dev
Fix docs build failure
2 parents 9bd7f03 + 9ef0c9f commit a5793df

File tree

4 files changed

+11302
-9
lines changed

4 files changed

+11302
-9
lines changed

.github/workflows/build.yml

-8
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

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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/setup-micromamba@v1
18+
with:
19+
environment-file: docs/environment.yml
20+
environment-name: docs-env
21+
cache-environment: true
22+
init-shell: >-
23+
bash
24+
25+
- name: Install package in environment
26+
run: python -m pip install .
27+
shell: micromamba-shell {0}
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
35+
shell: micromamba-shell {0}

docs/environment.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
name: ipynao_docs
2+
name: docs-env
33
channels:
44
- conda-forge
55
dependencies:
@@ -10,3 +10,7 @@ dependencies:
1010
- sphinx_rtd_theme
1111
- nbsphinx
1212
- nbsphinx-link
13+
- yarn=1.21
14+
- pytest
15+
- nbval
16+
- pytest-check-links

0 commit comments

Comments
 (0)