8000 Configure docs to parametrize pyodide version · pyscript/pyscript@11bb09b · GitHub
[go: up one dir, main page]

Skip to content

Commit 11bb09b

Browse files
committed
Configure docs to parametrize pyodide version
1 parent 8d1e48e commit 11bb09b

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

docs/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,9 @@
105105
"colon_fence",
106106
"smartquotes",
107107
"replacements",
108+
"substitution",
108109
]
110+
111+
myst_substitutions = {
112+
"v_pyodide": "0.22.0a3",
113+
}

docs/tutorials/py-config-interpreter.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ To get started, let's create a new `index.html` file and import `pyscript.js`.
2525
</html>
2626
```
2727

28-
We are using the pyodide CDN to setup our interpreter, but you can also download the files from [the pyodide GitHub release](https://github.com/pyodide/pyodide/releases/tag/0.22.0a3), unzip them and use the `pyodide.js` file as your interpreter.
28+
We are using the pyodide CDN to setup our interpreter, but you can also download the files from {{ '[the pyodide GitHub release](https://github.com/pyodide/pyodide/releases/tag/{})'.format(v_pyodide) }}, unzip them and use the `pyodi 8000 de.js` file as your interpreter.
2929

3030
## Setting the interpreter
3131

@@ -47,8 +47,8 @@ To set the interpreter, you can use the `interpreter` configuration in the `py-c
4747
<body>
4848
<py-config>
4949
[[interpreters]]
50-
src = "https://cdn.jsdelivr.net/pyodide/v0.22.0a3/full/pyodide.js"
51-
name = "pyodide-0.22.0a3"
50+
src = "https://cdn.jsdelivr.net/pyodide/v{{ v_pyodide }}/full/pyodide.js"
51+
name = "pyodide-{{ v_pyodide }}"
5252
lang = "python"
5353
</py-config>
5454
</body>

0 commit comments

Comments
 (0)
0