Skip to content

Commit a539cbc

Browse files
committed
WIP try jupyterlite-sphinx (not working)
1 parent 71dd980 commit a539cbc

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

docs/conf.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Adapted from Sphinx configuration template. Modifications
2-
# copyright 2019, 2020, 2021, 2022, 2023, 2024 Matthew Egan Odendahl
2+
# copyright 2019, 2020, 2021, 2022, 2023, 2024, 2025 Matthew Egan Odendahl
33
# SPDX-License-Identifier: Apache-2.0 AND BSD-2-Clause
44

55
# [https://github.com/sphinx-doc/sphinx/blob/v4.2.0/AUTHORS]
@@ -70,7 +70,9 @@
7070
"lissp_lexer",
7171
"lissp_directive",
7272
"sphinx.ext.viewcode",
73+
"jupyterlite_sphinx",
7374
]
75+
jupyterlite_silence = False
7476

7577
# Add any paths that contain templates here, relative to this directory.
7678
templates_path = ["_templates"]
@@ -96,7 +98,7 @@
9698
# Add any paths that contain custom static files (such as style sheets) here,
9799
# relative to this directory. They are copied after the builtin static files,
98100
# so a file named "default.css" will overwrite the builtin "default.css".
99-
html_static_path = ["_static"]
101+
# html_static_path = ["_static"]
100102

101103
intersphinx_mapping = {"python": ("https://docs.python.org/3.10", None)}
102104

docs/environment.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: jupyterlite-sphinx
2+
channels:
3+
- https://repo.mamba.pm/emscripten-forge
4+
- conda-forge
5+
dependencies:
6+
- pip:
7+
- ../setup/dist/hissp-0.5.dev1-py3-none-any.whl
8+
- xeus-python

docs/index.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@ Jump in and try the `lissp_whirlwind_tour` first if you're feeling confident
1515
or already know Python or a Lisp dialect well.
1616
Otherwise, start with the easier, but less-comprehensive `primer`.
1717

18-
.. TODO: add REPL via Brython or Pyodide?
18+
.. replite::
19+
:kernel: pyodide
20+
:new_tab: True
21+
:new_tab_button_text: #> ;; Open Lissp REPL
22+
23+
print("Hello, World!")
24+
1925

2026
.. toctree::
2127
:maxdepth: 2

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
# SPDX-License-Identifier: Apache-2.0
44
sphinx==6.2.1
55
furo==2023.03.27
6+
jupyterlite-sphinx==0.20.2

0 commit comments

Comments
 (0)