TODO §56 (docs/features/dut-hierarchy), the owner's request of 2026-09-06.
Client-only, over the flat `lucisv/moduleHierarchy` snapshot the server
already sends. `hierarchySections.js`: per starred DUT, in starred
order, the DUT's forward subtree (the DUT at the top) and an upward tree
from the DUT through every module that instantiates it (labelled `via
<instance>`, cycles cut with one `recursive` row), then one section for
every module in no DUT's subtree or ancestor closure, re-rooted where
its only parents are DUT ancestors (the review ruling — a monitor beside
the DUT under the same bench stays on screen); a module both below one
DUT and above another appears in both DUT sections; a starred name the
index lacks keeps its sections with a "not in the index" row. Star and
unstar from the webview row menu (the pane is a WebviewView, so the
menu is the renderer's, driven by a `menuTable()` per render), the
`lucisv.hierarchy.{starDut,unstarDut,clearDuts}` commands and title
actions, persistence in `workspaceState` in starred order, and the
`lucisv.hierarchy.duts` setting whose entries show locked. With nothing
starred the pane is byte-identical to before (pinned).
opentitan `hw/ip` (847 modules): `aes` → 3 sections with `tb` in its
parents and 5 modules under `aes_tb` re-rooted into others; `aes` +
`hmac` → 5 sections; every module reachable in both configurations; QA's
200-trial fuzz found no overlap and no gap. `extract_test.js` added to
`.vscodeignore`.
(Committed after the 0.48.0 version commit: the release chain broke at a
test-output grep and cut the tag one commit early; the tag is moved here.)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
lucisv documentation site
Astro 7 and Starlight build the static user guide and reference pages from
src/content/docs/. Dependencies are pinned in package.json and
package-lock.json; use the lockfile when installing:
cd docs/site
npm ci
npm run dev
Build and inspect the deployable output:
npm run build
npm run preview
dist/ contains pre-rendered HTML, CSS, JavaScript, Pagefind search, and XML
sitemaps; no application server is required. It is tracked in this repository,
so rebuild it after changing documentation and review the generated diff.
Building does not publish the site. In a restricted environment, use
ASTRO_TELEMETRY_DISABLED=1 npm run build to avoid Astro writing its global
telemetry preferences.
Editing and verification
- Usage guides:
src/content/docs/start/andguides/. - CLI, lint rules, LSP, architecture and API navigation:
src/content/docs/reference/. - Overview:
src/content/docs/index.mdx. - Routes/sidebar, site URL and metadata:
astro.config.mjs. - Visual styles:
src/styles/custom.css; static media:public/.
The site is derived documentation. Check behavior against the Rust source, CLI help, and feature contracts before updating prose. The repository-wide analysis and topology cover internal ownership and limitations. Historical coverage/performance numbers must retain their measurement scope and date.
From the repository root, generate the canonical lint rule reference and the complete Rust API docs with:
cargo run -p lucisv -- check --rules-doc
cargo doc --workspace --no-deps
The site rule page adds editorial explanations; it must agree with the
registry's rule names, severities, defaults, options and fix applicability.
The API page is navigational, not an exhaustive signature inventory.
npm run build validates content rendering and builds search/sitemaps.
npm run check invokes Astro's optional checker; it requires checker
packages beyond this site's current declared dependencies.