Skip to content

Commit de49657

Browse files
authored
⬆️ UPDATE: Thebe latest (#28)
1 parent 44ae793 commit de49657

3 files changed

Lines changed: 53 additions & 2 deletions

File tree

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
# Add any Sphinx extension module names here, as strings. They can be
3939
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
4040
# ones.
41-
extensions = ["jupyter_sphinx", "sphinx_thebe", "myst_parser", "sphinx_panels"]
41+
extensions = ["sphinx_thebe", "myst_parser", "sphinx_panels"]
4242

4343
thebe_config = {
4444
"repository_url": "https://github.com/binder-examples/jupyter-stacks-datascience",

sphinx_thebe/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def init_thebe_core(app, env):
3838

3939
# Add core libraries
4040
opts = {"async": "async"}
41-
app.add_js_file(filename="https://unpkg.com/thebelab@latest/lib/index.js", **opts)
41+
app.add_js_file(filename="https://unpkg.com/thebe@latest/lib/index.js", **opts)
4242

4343
# Add configuration variables
4444
thebe_config = f"""

tox.ini

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# To use tox, see https://tox.readthedocs.io
2+
# Simply pip or conda install tox
3+
# If you use conda, you may also want to install tox-conda
4+
# then run `tox` or `tox -- {pytest args}`
5+
# To run in parallel using `tox -p` (this does not appear to work for this repo)
6+
7+
# To rebuild the tox environment, for example when dependencies change, use
8+
# `tox -r`
9+
10+
# Note: if the following error is encountered: `ImportError while loading conftest`
11+
# then then deleting compiled files has been found to fix it: `find . -name \*.pyc -delete`
12+
13+
[tox]
14+
envlist = py37-sphinx3
15+
16+
[testenv]
17+
usedevelop = true
18+
19+
[testenv:py{36,37,38}-sphinx{2,3}]
20+
extras = sphinx,testing
21+
deps =
22+
sphinx3: sphinx>=3,<4
23+
sphinx4: sphinx>=4,<5
24+
commands = pytest {posargs}
25+
26+
[testenv:docs-{update,clean}]
27+
extras = sphinx
28+
passenv =
29+
SKIP_CONTRIBUTE
30+
SKIP_TEAM
31+
whitelist_externals =
32+
rm
33+
echo
34+
commands =
35+
clean: rm -rf docs/_build
36+
sphinx-build -nW --keep-going -b {posargs:html} docs/ docs/_build/{posargs:html}
37+
commands_post = echo "open file://{toxinidir}/docs/_build/{posargs:html}/index.html"
38+
39+
[testenv:docs-live]
40+
description = Build the documentation and launch browser
41+
extras = sphinx
42+
setenv =
43+
SKIP_CONTRIBUTE = true
44+
SKIP_TEAM = true
45+
commands =
46+
sphinx-autobuild \
47+
--re-ignore _build/.* \
48+
--re-ignore gallery.txt \
49+
--re-ignore contributing.md \
50+
--port 0 --open-browser \
51+
-n -b {posargs:html} docs/ docs/_build/{posargs:html}

0 commit comments

Comments
 (0)