Skip to content

Commit c606be7

Browse files
authored
Merge pull request #146 from stanford-centaur/build/doc
doc: Fix documentation build pipeline
2 parents b4439d4 + 93b4caa commit c606be7

4 files changed

Lines changed: 590 additions & 5 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: deploy-docs
1+
name: deploy-doc
22

33
on:
44
push:
@@ -40,7 +40,7 @@ jobs:
4040
4141
- name: Build documentations
4242
run: |
43-
uvx --with notebook jupyter-book build doc
43+
uv run --group dev jupyter-book build doc
4444
4545
# Upload the book's HTML as an artifact
4646
- name: Upload artifact

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,11 @@ uv build
3232

3333
Build the documentations by
3434
```sh
35-
uvx --with notebook jupyter-book build doc
35+
uv run --group dev jupyter-book build doc
3636
```
3737
Then serve
3838
```sh
39-
cd doc/_build/html
40-
python3 -m http.server -d .
39+
python3 -m http.server -d doc/_build/html
4140
```
4241

4342
### Examples

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ requires-python = ">=3.11.0"
1212
dependencies = []
1313
[dependency-groups]
1414
dev = [
15+
"jupyter-book>=1.0.4.post1",
1516
"notebook",
1617
"pytest>=8.4.1",
1718
]

0 commit comments

Comments
 (0)