Every tracked file that can carry a comment (880 of them) now opens with "Author: Guoliang Chen, a Senior Digital Design Engineer" and closes with "Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com", in the file's own comment syntax. No behaviour change: the diff outside the version bump and changelogs is comment lines only. - tools/stamp_author.py: writes the lines; idempotent, `--check` lists what is missing. Headers go under a shebang and under Markdown front matter. - Left alone: test fixtures, cases and snapshots (byte-exact inputs), JSON and JSONL, logs, images, lockfiles, docs/site/dist (regenerated) and the LICENSE files (already carry the copyright line). - tools/linux_check.sh: --help reads its header from line 3, now that the author line sits under the shebang. - tools/gates.sh green on this tree: 5 545 tests, corpus 814/6 as before. Co-Authored-By: Claude Mythos 5.2 <[email protected]>
60 lines
2.2 KiB
Markdown
60 lines
2.2 KiB
Markdown
<!-- Author: Guoliang Chen, a Senior Digital Design Engineer -->
|
|
|
|
# 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:
|
|
|
|
```bash
|
|
cd docs/site
|
|
npm ci
|
|
npm run dev
|
|
```
|
|
|
|
Build and inspect the deployable output:
|
|
|
|
```bash
|
|
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](../repository-analysis.md) and [topology](../topo.md) 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:
|
|
|
|
```bash
|
|
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.
|
|
|
|
<!-- Author: Guoliang Chen. Lucisv is made by Guoliang Chen with love, luciochen.com -->
|