Skip to content

Commit 61deeda

Browse files
committed
CI
1 parent 9c196d9 commit 61deeda

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/docs.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
run: sleep 60
2626

2727
- name: Set up Python
28-
uses: actions/setup-python@v2
28+
uses: actions/setup-python@v5
2929
with:
3030
python-version: 3.12
3131

@@ -52,12 +52,14 @@ jobs:
5252
uses: actions/cache@v4
5353
with:
5454
path: |
55-
docs/_build/.jupyter_cache
55+
docs/.jupyter_cache
5656
key: docs-jupyter-cache
5757

5858
- name: Build docs
5959
run: |
60-
cd docs; python -m sphinx -b dirhtml . _build; cd ..
60+
python -c "import optimap; print(optimap.__version__)"
61+
jcache -p docs/.jupyter_cache notebook list
62+
python -m sphinx -b html --doctree-dir docs/doctrees docs docs/_build
6163
env:
6264
TQDM_MININTERVAL: 20
6365

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ def remove_markdown(cell):
100100
nb_execution_mode = "cache"
101101
nb_execution_timeout = 600 # seconds
102102
nb_execution_excludepatterns = ['tutorials/converted/*']
103+
jupyter_cache = str(Path(__file__).parent / ".jupyter_cache")
103104

104105
# add_module_names = False
105106
# napoleon_google_docstring = False

0 commit comments

Comments
 (0)