Skip to content

Commit ce1cf04

Browse files
authored
Build the standalone report viewer in the Pages deploy (#241)
docs_hooks.py expects the workflow to generate docs/report-viewer/index.html before mkdocs runs; that step was never added, so the published viewer has been the placeholder stand-in.
1 parent 95f714a commit ce1cf04

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎.github/workflows/github-pages.yml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,18 @@ jobs:
133133
fetch_assets "ios-contacts-trails.yml" "docs/report-assets/ios-contacts"
134134
fetch_assets "clock-trails.yml" "docs/report-assets/clock"
135135
136+
- name: Set up Bun
137+
# `scripts/build-viewer-shell.sh` transpiles the viewer with bun macros.
138+
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
139+
140+
- name: Build the standalone report viewer
141+
# docs/report-viewer/index.html is generated, never committed (see .gitignore).
142+
# Without this step docs_hooks.py drops its stand-in page and the published
143+
# viewer is a placeholder that cannot open a session archive.
144+
# Deliberately NOT continue-on-error: the script guards its own output, and a
145+
# viewer that silently degrades to the placeholder is the failure mode to avoid.
146+
run: ./scripts/build-viewer-shell.sh docs/report-viewer
147+
136148
- name: Build MkDocs site
137149
run: mkdocs build --strict
138150

0 commit comments

Comments
 (0)