Commit 9598225
authored
docs: phase 9 � nav polish + About section + collapsible-table fix (#11)
* docs: phase 9 — nav polish, About section, collapsible-table fix
Three independent docs-site improvements bundled into one PR because
all three touch properdocs.yml.
== Material navigation upgrade ==
theme.features picks up:
* navigation.tabs — top-level sections render as a sticky
tab bar always visible in the header
* navigation.tabs.sticky — tabs stay pinned on scroll
* navigation.path — breadcrumbs above every page heading
* navigation.tracking — URL hash follows the active heading on
scroll so deep-links remain accurate
after a refresh / share
* navigation.indexes — section names link to per-section
index.md landing pages instead of being
inert headers
To back navigation.indexes, four new section landing pages:
docs/{overview,comparisons,explanation,reference}/index.md, each a
30-second TOC for that section. (examples/index.md predates this PR.)
properdocs.yml nav reordered to put each section's index.md first so
the section name itself becomes the landing-page link.
== About section ==
New top-level "About" section in the nav exposing the repo-root
governance files on the docs site without duplicating content:
* docs/about/index.md — section TOC + framing
* docs/about/contributing.md — ``--8<-- "CONTRIBUTING.md"``
* docs/about/changelog.md — ``--8<-- "CHANGELOG.md"``
* docs/about/security.md — ``--8<-- "SECURITY.md"``
* docs/about/code-of-conduct.md — ``--8<-- "CODE_OF_CONDUCT.md"``
Each page is a single-line ``pymdownx.snippets`` directive that
re-renders the corresponding root file inline at build time. Single
source of truth: the repo root.
``pymdownx.snippets`` joins markdown_extensions with
``base_path: ["."]`` so the snippet base is the repo root, not the
docs_dir.
Two relative ``SECURITY.md`` links in CONTRIBUTING.md and
CODE_OF_CONDUCT.md become absolute GitHub URLs so they resolve
correctly under both renderings (GitHub-native and snippet-included
into docs/about/).
rumdl MD041 is per-file-ignored for the four snippet-wrapper files
since the H1 lives in the included file, not the wrapper.
== Compliance report: collapsible tables now render ==
scripts/generate_compliance_report.py emitted ``<details>`` which
wrapped per-suite case tables in a block-level HTML element — per
CommonMark, the content of such an element is *not* re-parsed as
Markdown, so the inner ``| col | col |`` tables stayed as text. The
``md_in_html`` extension (already in our markdown_extensions list)
re-enters Markdown parsing when the element has ``markdown="1"``;
we now emit ``<details markdown='1'>``.
Built site goes from 1 ``<table>`` (the summary at top of
/wpt-compliance/) to 6 (summary + 5 per-suite case tables).
Confirmed locally.
* ci(artifact): exclude .git/ from wpt-corpus to avoid Windows digest-mismatch
actions/download-artifact@v8 changed the default digest-mismatch
behavior to 'error' (it was 'warn' in earlier versions). The
wpt-corpus artifact includes a sparse-checkout .git/ directory
(HEAD ref, refs/, packed objects, occasional symlinks) which is a
known source of chunked-archive digest mismatches on Windows
runners — small files + special git entries trip the v8 strict
digest check intermittently. Windows / Python 3.14 hit it on the
Phase 9 PR run; Windows / Python 3.12 and 3.13 did not.
Fix: exclude .git from the *artifact* via upload-artifact's path
filter syntax. The actions/cache step still saves .git for the
next workflow run, so cache-hits keep their git rev-parse HEAD
verification path. Only the artifact (which matrix consumers
read) is .git-less — and they don't need it.
---------
Co-authored-by: chad-loder <26261238+chad-loder@users.noreply.github.com>1 parent b78ce03 commit 9598225
16 files changed
Lines changed: 158 additions & 12 deletions
File tree
- .github/workflows
- docs
- about
- comparisons
- explanation
- overview
- reference
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
170 | 182 | | |
171 | 183 | | |
172 | 184 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
171 | 171 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
0 commit comments