Skip to content

Commit fab340a

Browse files
committed
build: use local_extensions
1 parent 6c73671 commit fab340a

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

.github/workflows/pages.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ jobs:
4141
- name: linkcheck
4242
# https://jupyterbook.org/en/stable/reference/cli.html
4343
run: jupyter-book build --builder linkcheck --warningiserror --nitpick --keep-going .
44-
env: {PYTHONPATH: .}
4544
build:
4645
runs-on: ubuntu-latest
4746
steps:
@@ -74,7 +73,6 @@ jobs:
7473
book.tex
7574
# insert PDF cover
7675
curl -fsSLO https://static.premai.io/book/cover.pdf
77-
env: {PYTHONPATH: .}
7876
- uses: xu-cheng/latex-action@v3
7977
with:
8078
working_directory: _build/latex

_config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ sphinx:
9494
extra_extensions:
9595
- sphinx_last_updated_by_git
9696
- sphinx_subfigure
97-
# custom (local *.py files)
98-
- badges
99-
- committers
100-
- bibliography
97+
local_extensions:
98+
badges: .
99+
committers: .
100+
bibliography: .
101101
config:
102102
myst_heading_anchors: 4
103103
html_js_files:

index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ Spot something outdated or missing? Want to start a discussion? We welcome any o
6868
- Or instead, manually set up your own Python environment:
6969

7070
```sh
71-
pip install -r requirements.txt # setup
72-
PYTHONPATH=. jupyter-book build --builder dirhtml --all . # build
73-
python -m http.server -d _build/dirhtml # serve
71+
pip install -r requirements.txt # setup
72+
jupyter-book build --builder dirhtml --all . # build
73+
python -m http.server -d _build/dirhtml # serve
7474
```
7575

7676
````{admonition} alternative: live rebuilding & serving (experimental)

0 commit comments

Comments
 (0)