Skip to content

doc-ui v1.2.1

Choose a tag to compare

@quuuai quuuai released this 05 Oct 13:02
· 9 commits to main since this release

The Markdown conversion, research-paper, book, and palette features from v1.2.0, with fixes for Linux PDF pagination.

Versioning

The backward-compatible features since v1.1.0 warranted the v1.2.0 minor release. This patch release fixes PDF pagination found by the Linux publication checks. The published v1.2.0 tag and its distribution assets remain unchanged. Existing package exports and HTML authoring contracts are preserved. The new Markdown converter requires Node.js 22 or newer; generated HTML remains readable without Node.js, JavaScript, or a network connection.

Added

  • A bundled doc-ui Markdown-to-HTML CLI with document, report, paper, and book layouts; file and stdin input; English and Japanese output; theme, colour, and print options; and embedded CSS with third-party notices.
  • Research-paper composition with .sheet-paper, .paper-columns, title headers, abstracts, bylines, and equation roles. Two-column papers return to a single column when space is limited and retain their reading order in print.
  • Book composition with trim geometry, mirrored margins, running headers, folios, printable proofs, and the optional @k-kinzal/doc-ui/book helpers.
  • 32 light/dark palette pairs, individual CSS overlays, a palette catalog, and optional palette controls. Page-level colour, grayscale, and monochrome modes support nested documents.
  • English and Japanese usage pages and complete report HTML examples, with expanded Storybook specimens and browser/PDF coverage.

Fixed

  • Multiline research-paper headings stay together across page and column boundaries.
  • Publication print spacing keeps the opening figure and final footer with their surrounding content across A4/Letter and macOS/Linux fonts, without reducing text sizes.
  • PDF assertions tolerate text runs split around ligatures and retain generated PDFs for inspection.
  • Report comparisons share their row alignment correctly, preserve number precision, and scroll long figures locally without overlapping captions.
  • Narrow and embedded report sheets retain title/figure hierarchy and section-label styling.
  • Product-page pagination, disclosures, figure spacing, source URLs, and footer flow print consistently.
  • Palette identity and state inks follow the selected accent, while the selector remains a compact native control.

Use this release

<link rel="stylesheet"
      href="https://k-kinzal.github.io/document-design/v1.2.1/document-design.css">

For the CLI, download the attached package archive and run:

npx --package ./k-kinzal-doc-ui-1.2.1.tgz doc-ui input.md -o output.html

The ZIP contains the compiled stylesheets, tokens, palettes, optional JavaScript, bundled CLI, design reference, version and commit identifier, and license notices. The npm-format archive also contains the package exports and source modules. SHA-256 checksums are attached.

/v1.2.1/ is immutable. /v1.2/ and /v1/ follow compatible releases. The product site and Storybook follow the highest stable release; prior full-version distributions remain unchanged.

Getting started · Components · Storybook · Japanese documentation

Validation

Repository and package checks, the full Linux browser/PDF suite, macOS PDF regression tests, packed-CLI execution, and the site, Storybook, report, and publication builds pass. Distribution checks retain bundled third-party notices and review dependency licenses. Automated change-report generation is separate from the Pages deployment.

All changes since v1.1.0

Change report