Skip to content

Commit eb91820

Browse files
committed
Fix GitHub Pages visual preview paths and regenerate visual docs during deploy
- switch generated MkDocs preview iframe URLs back to correct relative paths so they work on GitHub Pages project-site URLs - preserve local MkDocs preview compatibility while avoiding root-relative path breakage on Pages - update MkDocs Pages deploy workflow to regenerate visual docs from visual/ before building the site - keep visual docs validation check after generation to ensure deterministic output - resolve GitHub Pages runtime 404 behavior caused by preview pathing assumptions on project-prefixed URLs - 2026-02-22 17:43:20
1 parent 01a682f commit eb91820

27 files changed

Lines changed: 34 additions & 27 deletions

.github/workflows/mkdocs-pages-deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ jobs:
3636
- name: Validate visual sanitization
3737
run: python tools/sanitize.py --check
3838

39+
- name: Generate visual docs from visual source of truth
40+
run: python tools/docs/build_visual_docs.py
41+
3942
- name: Validate generated visual docs
4043
run: python tools/docs/build_visual_docs.py --check
4144

docs/visual/DOCSIS-3.0/DS-SCQAM-CodeErrorRate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
## Preview
99

10-
<iframe src="/visual-previews/DOCSIS-3.0/DS-SCQAM-CodeErrorRate.html" style="width:100%;height:900px;border:1px solid #ccc;border-radius:6px;"></iframe>
10+
<iframe src="../../../visual-previews/DOCSIS-3.0/DS-SCQAM-CodeErrorRate.html" style="width:100%;height:900px;border:1px solid #ccc;border-radius:6px;"></iframe>
1111

1212
Preview is best-effort. Some templates may rely on Postman-specific APIs that are not yet shimmed.
1313

docs/visual/DOCSIS-3.0/DS-SCQAM-Stats.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
## Preview
99

10-
<iframe src="/visual-previews/DOCSIS-3.0/DS-SCQAM-Stats.html" style="width:100%;height:900px;border:1px solid #ccc;border-radius:6px;"></iframe>
10+
<iframe src="../../../visual-previews/DOCSIS-3.0/DS-SCQAM-Stats.html" style="width:100%;height:900px;border:1px solid #ccc;border-radius:6px;"></iframe>
1111

1212
Preview is best-effort. Some templates may rely on Postman-specific APIs that are not yet shimmed.
1313

docs/visual/DOCSIS-3.0/US-ATDMA-PreEqualization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
## Preview
99

10-
<iframe src="/visual-previews/DOCSIS-3.0/US-ATDMA-PreEqualization.html" style="width:100%;height:900px;border:1px solid #ccc;border-radius:6px;"></iframe>
10+
<iframe src="../../../visual-previews/DOCSIS-3.0/US-ATDMA-PreEqualization.html" style="width:100%;height:900px;border:1px solid #ccc;border-radius:6px;"></iframe>
1111

1212
Preview is best-effort. Some templates may rely on Postman-specific APIs that are not yet shimmed.
1313

docs/visual/DOCSIS-3.0/US-ATDMA-Stats.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
## Preview
99

10-
<iframe src="/visual-previews/DOCSIS-3.0/US-ATDMA-Stats.html" style="width:100%;height:900px;border:1px solid #ccc;border-radius:6px;"></iframe>
10+
<iframe src="../../../visual-previews/DOCSIS-3.0/US-ATDMA-Stats.html" style="width:100%;height:900px;border:1px solid #ccc;border-radius:6px;"></iframe>
1111

1212
Preview is best-effort. Some templates may rely on Postman-specific APIs that are not yet shimmed.
1313

docs/visual/DOCSIS-3.1/DS-OFDM-ChannelStats.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
## Preview
99

10-
<iframe src="/visual-previews/DOCSIS-3.1/DS-OFDM-ChannelStats.html" style="width:100%;height:900px;border:1px solid #ccc;border-radius:6px;"></iframe>
10+
<iframe src="../../../visual-previews/DOCSIS-3.1/DS-OFDM-ChannelStats.html" style="width:100%;height:900px;border:1px solid #ccc;border-radius:6px;"></iframe>
1111

1212
Preview is best-effort. Some templates may rely on Postman-specific APIs that are not yet shimmed.
1313

docs/visual/DOCSIS-3.1/DS-OFDM-ProfileStats.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
## Preview
99

10-
<iframe src="/visual-previews/DOCSIS-3.1/DS-OFDM-ProfileStats.html" style="width:100%;height:900px;border:1px solid #ccc;border-radius:6px;"></iframe>
10+
<iframe src="../../../visual-previews/DOCSIS-3.1/DS-OFDM-ProfileStats.html" style="width:100%;height:900px;border:1px solid #ccc;border-radius:6px;"></iframe>
1111

1212
Preview is best-effort. Some templates may rely on Postman-specific APIs that are not yet shimmed.
1313

docs/visual/DOCSIS-3.1/DiplexConfiguration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
## Preview
99

10-
<iframe src="/visual-previews/DOCSIS-3.1/DiplexConfiguration.html" style="width:100%;height:900px;border:1px solid #ccc;border-radius:6px;"></iframe>
10+
<iframe src="../../../visual-previews/DOCSIS-3.1/DiplexConfiguration.html" style="width:100%;height:900px;border:1px solid #ccc;border-radius:6px;"></iframe>
1111

1212
Preview is best-effort. Some templates may rely on Postman-specific APIs that are not yet shimmed.
1313

docs/visual/DOCSIS-3.1/US-OFDMA-ChannelStats.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
## Preview
99

10-
<iframe src="/visual-previews/DOCSIS-3.1/US-OFDMA-ChannelStats.html" style="width:100%;height:900px;border:1px solid #ccc;border-radius:6px;"></iframe>
10+
<iframe src="../../../visual-previews/DOCSIS-3.1/US-OFDMA-ChannelStats.html" style="width:100%;height:900px;border:1px solid #ccc;border-radius:6px;"></iframe>
1111

1212
Preview is best-effort. Some templates may rely on Postman-specific APIs that are not yet shimmed.
1313

docs/visual/DOCSIS-General/EventLog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
## Preview
99

10-
<iframe src="/visual-previews/DOCSIS-General/EventLog.html" style="width:100%;height:900px;border:1px solid #ccc;border-radius:6px;"></iframe>
10+
<iframe src="../../../visual-previews/DOCSIS-General/EventLog.html" style="width:100%;height:900px;border:1px solid #ccc;border-radius:6px;"></iframe>
1111

1212
Preview is best-effort. Some templates may rely on Postman-specific APIs that are not yet shimmed.
1313

0 commit comments

Comments
 (0)