Skip to content

Commit

Permalink
docs: run the notebooks dynamically (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
12rambau authored Nov 22, 2024
1 parent 998dbf0 commit 807a8fc
Show file tree
Hide file tree
Showing 15 changed files with 397 additions and 1,234 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ repos:

# waiting for https://github.com/gee-community/geetools/issues/337
# so notebooks can again be executed from the documentation
#- repo: "https://github.com/kynan/nbstripout"
# rev: "0.5.0"
# hooks:
# - id: nbstripout
# stages: [pre-commit]
- repo: "https://github.com/kynan/nbstripout"
rev: "0.5.0"
hooks:
- id: nbstripout
stages: [pre-commit]
5 changes: 4 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
from datetime import datetime
from pathlib import Path

import geetools as geetools

# add . to sys to import local extensions
sys.path.append(str(Path(".").resolve()))

Expand Down Expand Up @@ -127,4 +129,5 @@
autosectionlabel_prefix_document = True

# -- options for myst-nb ------------------------------------------------------
nb_execution_mode = "auto"
nb_execution_mode = "force"
nb_execution_timeout = 120
Loading

0 comments on commit 807a8fc

Please sign in to comment.