Files
lucisv/docs/site
lucioandClaude Fable 5.1 aa479cf701 Convert ports to ANSI: a Verilog-2001 header merged with its body declarations, and a verifier that never drops a comment or an attribute
TODO §51 (docs/features/ansi-conversion), the second §8 refactoring.

`vlog_refactor::convert_to_ansi` (ports/ansi.rs, ports/merge.rs): for a
`PortList::NonAnsi` module, each header name gains its direction, net or
variable type, signing and packed dims from the body declarations that
describe it, merged per IEEE 1800 §23.2.2.2 (`output b; reg [7:0] b;`
→ `output reg [7:0] b`), as insertions around the untouched name so no
reference anchor moves; the absorbed declarations are deleted with their
comments carried onto the ports. Twenty-three refusals, each a sentence
(port expressions, disagreeing ranges, initialisers, directives, a
comment that would have to move into a one-line list, an attributed
declaration). Code action `lucisv: convert ports to ANSI (N ports)` and
command `lucisv.convertToAnsi`.

Review rework (QA's two HIGHs, invariant 4): the verifier's comment rule
is now `never_dropped` over comments and attribute instances alike —
`has ≥ had`, `wrote ≤ gone` unless the text is the one generated
placeholder, `has == had − gone + wrote` — with masked-corruption attack
tests, re-attacked by QA (30-plus pairs, a neutering pass).

Neither the corpus nor opentitan holds a non-ANSI module; acceptance is
by round trip (ANSI → 2001 → ANSI, same ports/types in order) over five
corpus modules and 290 of 291 opentitan candidates (the one failure is
kmac_reduced_tb.sv's pre-existing trailing-comma parse error). 0 of 854
corpus files differ from 0.45.0.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
2026-09-05 18:03:54 -05:00
..

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/ and guides/.
  • 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.