Skip to content

Commit

Permalink
change approach
Browse files Browse the repository at this point in the history
  • Loading branch information
epassaro committed Jun 7, 2021
1 parent c87678b commit ea23b90
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 18 deletions.
9 changes: 5 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@
"sphinxcontrib.apidoc",
]

if os.getenv('DISABLE_NBSPHINX') == "1":
extensions.remove("nbsphinx")

bibtex_bibfiles = ['tardis.bib']

source_suffix = {
Expand All @@ -72,7 +69,10 @@
numpydoc_show_class_members = False
extensions += ["matplotlib.sphinxext.plot_directive", "sphinxcontrib.bibtex"]

nbsphinx_execute = "auto"
if os.getenv('DISABLE_NBSPHINX') == "1":
nbsphinx_execute = "never"
else:
nbsphinx_execute = "auto"

nbsphinx_execute_arguments = [
"--InlineBackend.figure_formats={'svg', 'pdf'}",
Expand All @@ -82,6 +82,7 @@
nbsphinx_prolog = """
This notebook is available at
https://github.com/tardis-sn/tardis/tree/master/docs/{{ env.doc2path(env.docname, base=None) }}
----
"""

Expand Down
7 changes: 2 additions & 5 deletions docs/quickstart/quickstart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@
}
],
"metadata": {
"celltoolbar": "Edit Metadata",
"kernelspec": {
"display_name": "Python 3",
"language": "python",
Expand All @@ -133,11 +134,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.3"
},
"nbsphinx": {
"execute": "always",
"timeout": -1
"version": "3.7.10"
}
},
"nbformat": 4,
Expand Down
4 changes: 0 additions & 4 deletions docs/using/interaction/custom_source.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,6 @@
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.10"
},
"nbsphinx": {
"execute": "always",
"timeout": 600
}
},
"nbformat": 4,
Expand Down
6 changes: 1 addition & 5 deletions docs/using/interaction/physical_quantities.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -273,11 +273,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.8"
},
"nbsphinx": {
"execute": "always",
"timeout": -1
"version": "3.7.10"
}
},
"nbformat": 4,
Expand Down

0 comments on commit ea23b90

Please sign in to comment.