Skip to content

Commit 52e87b4

Browse files
committed
Iterate on the docs and the jupyterlite build
1 parent 9b15fcc commit 52e87b4

File tree

5 files changed

+29
-57
lines changed

5 files changed

+29
-57
lines changed

Diff for: docs/build-environment.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: ipyopenlayers-docs
2+
3+
channels:
4+
- conda-forge
5+
6+
dependencies:
7+
- yarn~=3.0
8+
- jupyterlab~=4.0
9+
- jupyter-packaging~=0.12
10+
- jupyter-sphinx
11+
- build
12+
- branca
13+
- hatch
14+
- pydata-sphinx-theme
15+
- sphinx
16+
- jupyterlite-sphinx
17+
- jupyterlite-xeus
18+
- pip:
19+
- ..

Diff for: lite_build_output/environment.yml renamed to docs/environment.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ channels:
33
- https://repo.mamba.pm/emscripten-forge
44
- conda-forge
55
dependencies:
6-
- xeus-python=0.15.10
7-
- python=3.11
6+
- xeus-python
87
- ipywidgets
98
- traitlets
109
- pip:
11-
- ipyopenlayers
10+
- ..

Diff for: docs/source/conf.py

+8-5
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
'nbsphinx',
3232
'jupyter_sphinx',
3333
'nbsphinx_link',
34+
'jupyterlite-sphinx',
3435
]
3536

3637
# Set the nbsphinx JS path to empty to avoid showing twice of the widgets
@@ -188,11 +189,6 @@
188189
# docs.readthedocs.org
189190
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
190191

191-
if not on_rtd: # only import and set the theme if we're building docs locally
192-
import sphinx_rtd_theme
193-
html_theme = 'sphinx_rtd_theme'
194-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
195-
196192
# otherwise, readthedocs.org uses their theme by default, so no need to specify it
197193

198194

@@ -211,3 +207,10 @@ def add_scripts(app):
211207
logger.warning('missing javascript file: %s' % fname)
212208
app.add_js_file(fname)
213209
app.connect('builder-inited', add_scripts)
210+
211+
jupyterlite_dir = "."
212+
jupyterlite_contents = ["../examples/*"]
213+
214+
html_theme = "pydata_sphinx_theme"
215+
htmlhelp_basename = "ipyopenlayersdoc"
216+
html_static_path = ["_static"]

Diff for: lite_build_output/jupyter-lite.json

-43
This file was deleted.

Diff for: lite_build_output/jupyter_lite_config.json

-6
This file was deleted.

0 commit comments

Comments
 (0)