Skip to content

Commit 175bb0f

Browse files
thomaspinderThomas Pinder
andauthored
Gh pages deploy (#9)
* Change gh-pages deploy * Alter workflow --------- Co-authored-by: Thomas Pinder <[email protected]>
1 parent 3e5b634 commit 175bb0f

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
uses: pypa/hatch@install
3737

3838
- name: Build and deploy the documentation
39-
run: hatch run docs:build
39+
run: hatch run docs:deploy
4040

4141
- name: Deploy Page 🚀
4242
uses: JamesIves/[email protected]

.github/workflows/test_docs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build Documentation
1+
name: Test Documentation
22

33
on:
44
pull_request:
@@ -8,9 +8,9 @@ permissions:
88
contents: write
99

1010
jobs:
11-
build-docs:
11+
test-docs:
1212
concurrency: ci-${{ github.ref }}
13-
name: Build docs
13+
name: Test docs
1414
runs-on: "ubuntu-latest"
1515
defaults:
1616
run:
@@ -31,5 +31,5 @@ jobs:
3131
- name: Install Hatch
3232
uses: pypa/hatch@install
3333

34-
- name: Build and deploy the documentation
34+
- name: Build the documentation
3535
run: hatch run docs:build

docs/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ effect = StaticEffect(0.05)
4040
inflated_data = effect(trended_data)
4141
```
4242

43+
![Gaussian process posterior.](static/imgs/readme_fig.png)
44+
4345
## Model Validation
4446

4547
Once a dataset has been synthesised, we may wish to validate our model using a placebo

docs/static/imgs/readme_fig.png

96 KB
Loading

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ dependencies = [
9090

9191
[tool.hatch.envs.docs.scripts]
9292
serve = "mkdocs serve --dev-addr localhost:8000"
93-
deploy = "mkdocs gh-deploy --force"
93+
deploy = ["python docs/scripts/gen_examples.py", "mkdocs build"]
9494
build = "mkdocs build"
9595

9696
[tool.hatch.version]

0 commit comments

Comments
 (0)