|
18 | 18 | # |version| and |release|, also used in various other places throughout the
|
19 | 19 | # built documents.
|
20 | 20 | # see https://pypi.org/project/setuptools-scm/ for details
|
21 |
| -from pkg_resources import get_distribution |
| 21 | +from importlib.metadata import version as imversion |
22 | 22 |
|
23 | 23 |
|
24 | 24 | print("python exec:", sys.executable)
|
|
32 | 32 | # -- Project information -----------------------------------------------------
|
33 | 33 |
|
34 | 34 | project = "extract_model"
|
35 |
| -copyright = "2022, Kristen Thyng" |
| 35 | +copyright = "2022-2023, Kristen Thyng" |
36 | 36 | author = "Kristen Thyng"
|
37 | 37 |
|
38 |
| -release = get_distribution("extract_model").version |
| 38 | +release = imversion("extract_model") |
39 | 39 | # for example take major/minor
|
40 | 40 | version = ".".join(release.split(".")[:2])
|
41 | 41 |
|
|
85 | 85 | # "xoak",
|
86 | 86 | # ]
|
87 | 87 |
|
| 88 | +# https://myst-nb.readthedocs.io/en/v0.9.0/use/execute.html |
| 89 | +jupyter_execute_notebooks = "off" |
| 90 | + |
88 | 91 | # Add any paths that contain templates here, relative to this directory.
|
89 | 92 | templates_path = ["_templates"]
|
90 | 93 |
|
91 | 94 | # List of patterns, relative to source directory, that match files and
|
92 | 95 | # directories to ignore when looking for source files.
|
93 | 96 | # This pattern also affects html_static_path and html_extra_path.
|
94 |
| -exclude_patterns = ["_build", "**.ipynb_checkpoints", "Thumbs.db", ".DS_Store"] |
| 97 | +exclude_patterns = [ |
| 98 | + "_build", |
| 99 | + "**.ipynb_checkpoints", |
| 100 | + "Thumbs.db", |
| 101 | + ".DS_Store", |
| 102 | + "_old_docs", |
| 103 | +] |
95 | 104 |
|
96 | 105 |
|
97 | 106 | # -- Options for HTML output -------------------------------------------------
|
|
109 | 118 | # so a file named "default.css" will overwrite the builtin "default.css".
|
110 | 119 | html_static_path = ["_static"]
|
111 | 120 |
|
| 121 | +# https://myst-nb.readthedocs.io/en/v0.13.0/use/execute.html#execution-timeout |
| 122 | +# had this message: |
| 123 | +# WARNING: 'execution_timeout' is deprecated for 'nb_execution_timeout' [mystnb.config] |
| 124 | +# WARNING: 'execution_allow_errors' is deprecated for 'nb_execution_allow_errors' [mystnb.config] |
| 125 | +nb_execution_timeout = 180 # seconds. |
112 | 126 |
|
113 | 127 | # -- nbsphinx specific options ----------------------------------------------
|
114 | 128 | # this allows notebooks to be run even if they produce errors.
|
|
0 commit comments