Skip to content

Vite review - #179

Draft
wdower wants to merge 8 commits into
mainfrom
vite-review
Draft

Vite review#179
wdower wants to merge 8 commits into
mainfrom
vite-review

Conversation

@wdower

@wdower wdower commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Catchall PR for reviewing and refining the Vitepress site.

Some cursory clicking around the site already revealed some things I wanted to fix.

  • Make sure all enum fields actually list the enum options in the docs
  • Make the type column for schema fields a clickable link to the type definition, if the type definition is itself another HDF type, for convenience

wdower added 2 commits July 26, 2026 16:54
The schema-docs generator only tabulated object defs, so a named enum def (e.g. Content_Type) rendered as just a heading + description — hiding that it is an enum and which values are legal. Emit an "Enum — allowed values" block for enum defs in both the Types and Embedded Primitives sections. Restores values for 80 named enum renderings across the 7 schema pages.

Signed-off-by: Will <will@dower.dev>
Field-table "Type" cells that reference a named schema type now render as clickable intra-page anchor links to that type's definition — a reader can "pull the thread" from a field to what its type is (and, for enums, its allowed values from the prior commit). Emit deterministic explicit {#id} heading anchors and link only to types present on the page (unknown/cross-page refs stay plain code — never a broken anchor); array/oneOf/anyOf-wrapped refs link via recursion. Extract the pure render helpers to site/schema-render.mjs and add a node:test harness (site test:ts, 10 tests) — the docs site had no tests before.

Signed-off-by: Will <will@dower.dev>
@wdower
wdower requested a review from aaronlippold July 26, 2026 21:47
@wdower wdower self-assigned this Jul 26, 2026
wdower and others added 6 commits August 10, 2026 10:27
The schema-doc generator emitted a primitive's group heading (### <slug>) and
its single contained type's explicit {#anchor} with the same id whenever the
file slug matched the type's kebab name (affected-package / Affected_Package).
VitePress rejects the duplicate id and fails the entire site build. Namespace
the group heading's anchor as #primitive-<slug>; cross-links target the type
anchors, so they are unaffected.

Signed-off-by: Will Dower <will@dower.dev>
Add a docs-site page listing every converter the CLI ships, mirroring
'hdf convert --help'. The page is generated at site-build time from a committed
manifest (site/data/converters.json) that a Go golden test in hdf-cli emits and
verifies against the live registry — so adding or removing a converter fails
the test until the manifest is regenerated, and the published catalog can never
drift from what the CLI actually supports.

A closing section points SBOM inventory users (SPDX, CycloneDX inventory, AIBOM)
to 'hdf system create', since those formats build an HDF System document rather
than Results and so never appear in the converter registry. Its accepted --from
list is registry-derived (bomFormatAliases) and golden-tested alongside the
converters, so it can't drift either.

The generated page is git-ignored like the schema pages; the sidebar picks it
up automatically. The release skill's docs-accuracy review now cross-checks the
catalog against the registry each release.

Signed-off-by: Will Dower <will@dower.dev>
Merging main brought new/changed converters (spdx-vex, trivy-to-hdf, and others)
into the registry, staling site/data/converters.json. Regenerated via
'go test ./cmd/hdf/cmd -run TestConverterCatalogManifest -update-catalog' so the
drift-guard (TestConverterCatalogManifest) passes and the published catalog lists
the current converter set. The rendered page is git-ignored and rebuilt from this
manifest at site-build time.

Signed-off-by: Will Dower <will@dower.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant