Skip to content

doc: --format html, the official HTML renderer linked in - #112

Merged
Kinflou merged 1 commit into
mainfrom
doc/html-renderer
Nov 1, 2026
Merged

Kinflou merged 1 commit into
mainfrom
doc/html-renderer

Conversation

@Kinflou

@Kinflou Kinflou commented Nov 1, 2026

Copy link
Copy Markdown
Member

Links generation's comline-doc-html (ComlineProject/generation#98) into comline doc: --format html or [doc] format = "html" writes a self-contained static site (index.html, a page per module, changelog.html, style.css, search.js).

Re-pins. generation moves 7b51264 → 58ff61b (generation#98's tip) for comline-codegen, comline-doc-markdown and the new comline-doc-html. comline-rust moves to 52e0ead (comline-rust#87) and comline-typescript to 932edaa (comline-typescript#103), both bumped onto that rev, so the graph keeps one comline-codegen. The test fixtures' generators crate moves with them. language-server and playground don't link the HTML renderer, and their own graphs are consistent at the old revs, so they stay.

Byte-identical generated code. comline generate --mode code and --mode lib, plus comline doc (Markdown), on every cli fixture (simple_project, chat_project, validated_project, conformance_package), give identical trees (diff -r) between a main binary and this branch's.

Tests:

  • tests/cli/doc.rs: an HTML site for the working tree with a changelog, format = "html" in comline.toml, and an unknown format naming both renderers.
  • tests/cli/external.rs: the HTML renderer run as an external .wasm and as a native renderer writes the built-in's output byte for byte. A new fixture bin, renderer-html, is generation's comline-doc-html binary.

docs/cli.md and comline doc --help cover html.

Merge order: generation#98, then comline-rust#87 and comline-typescript#103, then this PR, then docs#113.

comline doc --format html (or [doc] format = "html") writes a
self-contained static site with generation's comline-doc-html:
index.html, a page per module, changelog.html, style.css and search.js.

- Re-pins generation to 58ff61b (generation#98) for comline-codegen,
  comline-doc-markdown and the new comline-doc-html, and comline-rust and
  comline-typescript to their bumps onto it (comline-rust#87,
  comline-typescript#103), so the graph keeps one comline-codegen.
- Tests: an HTML site for the working tree, format = "html" in
  comline.toml, an unknown format naming both renderers, and the HTML
  renderer run as an external .wasm and native renderer writing the
  built-in's output byte for byte.
- docs/cli.md and the doc command's help cover html.
@Kinflou
Kinflou merged commit 4294838 into main Nov 1, 2026
2 checks passed
@Kinflou
Kinflou deleted the doc/html-renderer branch November 1, 2026 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant