Skip to content

Commit e31ee51

Browse files
authored
Merge pull request #70 from pyscript/pe-build-code
Get the build working for the code pages.
2 parents f588258 + 11560f3 commit e31ee51

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/psc/__main__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,12 @@ def build() -> None: # pragma: no cover
113113
output = public / f"gallery/examples/{example.name}/index.html"
114114
output.write_text(response.text)
115115

116+
# Now build the code page
117+
url = f"/gallery/examples/{example.name}/code.html"
118+
response = test_client.get(url)
119+
output = public / f"gallery/examples/{example.name}/code.html"
120+
output.write_text(response.text)
121+
116122

117123
# @app.callback(invoke_without_command=True)
118124
@app.command()

0 commit comments

Comments
 (0)