Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sitic committed Oct 11, 2024
1 parent f924298 commit a2f8d20
Showing 2 changed files with 5 additions and 9 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -44,24 +44,20 @@ jobs:
- name: Cache excample file downloads
uses: actions/cache@v4
with:
path: |
docs/tutorials/optimap_example_data
path: docs/tutorials/optimap_example_data
key: optimap-example-files

- name: Cache jupyter notebook cache
uses: actions/cache@v4
with:
path: |
docs/.jupyter_cache
path: .jupyter_cache
key: docs-jupyter-cache

- name: Build docs
run: |
mkdir -p docs/.jupyter_cache # otherwise jcache will ask for confirmation
jcache notebook -p docs/.jupyter_cache list
mkdir -p .jupyter_cache # otherwise jcache will ask for confirmation
jcache notebook -p .jupyter_cache list
python -m sphinx -b dirhtml --doctree-dir docs/doctrees docs docs/_build
find docs/_build -iname '.jupyter_cache' # should be empty but sometimes it's not
find docs/_build -iname '.jupyter_cache' -exec rm -rf {} \;
env:
TQDM_MININTERVAL: 20

2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
@@ -100,7 +100,7 @@ def remove_markdown(cell):
nb_execution_mode = "cache"
nb_execution_timeout = 600 # seconds
nb_execution_excludepatterns = ['tutorials/converted/*']
nb_execution_cache_path = str(Path(__file__).parent / ".jupyter_cache")
nb_execution_cache_path = str(Path(__file__).parent.parent / ".jupyter_cache")

# add_module_names = False
# napoleon_google_docstring = False

0 comments on commit a2f8d20

Please sign in to comment.