Skip to content

Commit 11560f3

Browse files
committed
Get the build working for the code pages.
1 parent f588258 commit 11560f3

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)