Skip to content

Commit c9f9c6b

Browse files
update docs
1 parent a91872b commit c9f9c6b

File tree

3 files changed

+33
-4
lines changed

3 files changed

+33
-4
lines changed

.github/workflows/docs.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: docs
2+
on:
3+
push:
4+
branches:
5+
- mkdocs
6+
- main
7+
permissions:
8+
contents: write
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Configure Git Credentials
15+
run: |
16+
git config user.name github-actions[bot]
17+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
18+
- name: Install uv
19+
uses: astral-sh/setup-uv@v5
20+
with:
21+
# Install a specific version of uv.
22+
enable-cache: true
23+
version: "0.6.12"
24+
python-version: 3.12
25+
26+
- name: Install the project
27+
run: uv sync --all-extras --dev
28+
- run: mkdocs gh-deploy --force

docs/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
`uv pip install -e .[test]`
99
2. Create the documentation and start webserver serving them
1010
```
11-
mkdocs server -a localhost:5555
11+
mkdocs serve -a localhost:5555
1212
```
1313
or create the html pages with
1414
```
@@ -18,3 +18,4 @@ mkdocs build -d docs_build
1818
## Upload documentation to github-pages
1919

2020
[Guide](https://www.mkdocs.org/user-guide/deploying-your-docs/)
21+
https://squidfunk.github.io/mkdocs-material/publishing-your-site/#with-github-actions

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ zero = true
8888
addopts = "--nbval --codeblocks --cov=omega_prime --cov-report=xml --cov-report=html --cov-report=term-missing"
8989
testpaths = [
9090
"tests",
91-
"tutorial.ipynb",
92-
"tutorial_locator.ipynb",
93-
"tutorial_metrics.ipynb",
91+
"docs/notebooks/tutorial.ipynb",
92+
"docs/notebooks/tutorial_locator.ipynb",
93+
"docs/notebooks/tutorial_metrics.ipynb",
9494
"README.md"
9595
]
9696
log_cli = true

0 commit comments

Comments
 (0)