Skip to content

Commit 4857d38

Browse files
Build presentation in docs and link to built version
1 parent 4d4b5e5 commit 4857d38

File tree

3 files changed

+29
-6
lines changed

3 files changed

+29
-6
lines changed

docs/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
_build
33
playground.ipynb
44
auto_examples
5+
presentations

docs/conf.py

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
1-
# outline for a myst_nb project with sphinx
2-
# build with: sphinx-build -nW --keep-going -b html . ./_build/html
1+
import pathlib
2+
import subprocess
3+
4+
##
5+
# Built presentation in sphinx
6+
##
7+
8+
cwd = pathlib.Path(__file__).parent
9+
presentation_file = cwd / "explanation" / "pldi_2023_presentation.ipynb"
10+
output_dir = cwd / "presentations"
11+
12+
subprocess.run(
13+
[
14+
"jupyter",
15+
"nbconvert",
16+
str(presentation_file),
17+
"--to",
18+
"slides",
19+
"--output-dir",
20+
str(output_dir),
21+
],
22+
check=True,
23+
)
24+
25+
html_extra_path = ["presentations/pldi_2023_presentation.slides.html"]
326

427
# load extensions
528
extensions = [

docs/explanation/pldi_2023_presentation.ipynb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"tags": []
1212
},
1313
"source": [
14-
"```bash\n",
15-
"jupyter nbconvert pldi_2023_presentation.ipynb --to slides\n",
14+
"```{eval-rst}\n",
15+
"`Presentation as HTML <../pldi_2023_presentation.slides.html>`_\n",
1616
"```"
1717
]
1818
},
@@ -27,9 +27,8 @@
2727
"tags": []
2828
},
2929
"source": [
30-
"# `egglog` in Python...\n",
30+
"# `egglog` in Python: EGRAPHS Workshop - PLDI '23\n",
3131
"\n",
32-
"*EGRAPHS Workshop - PLDI '23*<br>\n",
3332
"*Saul Shanabrook*"
3433
]
3534
},

0 commit comments

Comments
 (0)