Skip to content

Commit 354c965

Browse files
authored
Merge pull request #6 from naturerobots/feature/add-docs-build-on-pr
add workflow that builds docs on PR
2 parents c84176b + 3d1b2bd commit 354c965

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

.github/workflows/mkdocs_build.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build Documentation using MkDocs
2+
3+
# Controls when the action will run. Triggers the workflow on push or pull request
4+
# events but only for the master branch
5+
on:
6+
pull_request:
7+
branches: [main]
8+
jobs:
9+
build:
10+
name: Build Documentation
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout Repository
14+
uses: actions/checkout@v4
15+
- uses: actions/setup-python@v5
16+
with:
17+
python-version: 3.x
18+
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
19+
- uses: actions/cache@v4
20+
with:
21+
key: mkdocs-material-${{ env.cache_id }}
22+
path: ~/.cache
23+
restore-keys: |
24+
mkdocs-material-
25+
- run: pip install -r requirements.txt
26+
- name: Build documentation
27+
run: mkdocs build --strict

docs/run.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
3+
TODO

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ nav:
3636
- Home:
3737
- Overview: index.md
3838
- Installation: installation.md
39+
- Run: run.md
3940
- Theory:
4041
- Overview: theory/index.md
4142
- Why Meshes: theory/mesh_maps.md

0 commit comments

Comments
 (0)