Skip to content

Release 0.8.0 - #12

Merged
cudoment merged 6 commits into
mainfrom
release/0.8.0
Oct 1, 2026
Merged

cudoment merged 6 commits into
mainfrom
release/0.8.0

Conversation

@cudoment

@cudoment cudoment commented Oct 1, 2026

Copy link
Copy Markdown
Owner

Bumps every package to 0.8.0 and pins the sibling dependencies to it. The release notes are in docs/release-notes.md and docs/release-notes.ko.md, under ## 0.8.0, including what to act on when upgrading.

  • HTML export has three modes. site writes the site; standalone writes each document as one HTML file that carries its styles, pictures and theme menu; annotate writes pages that collect review notes, as single files or, with annotate.target: "hosted", as a site with a required reviewId and an optional GitHub issue-form inbox. A single-page run reports what a page still needs from outside as dependencies, and strict refuses it.
  • One output plan decides what every format publishes. navigation is a YAML file or a list (files with their extension, folders with exclude, order, page, depth and collapsed, groups, links, hidden), and a document it does not list is published by no format. locales adds languages found by file suffix, and home, header.links, toc, css (now a list of linked files), sourceLinks and mounts shape the rest.
  • The theme switch is a Light/Dark menu that shows the system setting until the reader chooses, and the floating note button goes away when the reader presses anywhere else.
  • docs-site/ builds cudoc's documentation from the README and docs/ with cudoc-export. publish.yml now deploys it to Pages through pages.yml only once every package is on npm from the released commit and tagged there; the push-triggered showcase deploy is gone, and the showcase moves under showcase/ on the site.
  • examples/export adds a standalone, an annotate and a hosted review sample beside the showcase, with a returned notes file and its report.

Verified on the release machine: npm ci, npm run build (and build:webpack in next-mdx) and npm audit in each of the six examples (only the VitePress advisories tabled in examples/README.md remain), npm run typecheck, npm run format:check, CUDOC_STRICT=1 npm test (68 files, 1826 tests) and npm run test:scripts (all five, including the guide check and the export sample comparison). An independent review of the whole diff found seven defects, each fixed with a test that fails without the fix.

Every package is already on npm with a trusted publisher for this repository and publish.yml, so the whole release goes out from the workflow.

A page could not be shared on its own: it linked its stylesheet, scripts
and images by relative path. The export now writes one of three kinds of
page, from one output plan every format reads:

- site: pages that share stylesheets, with a home page, header links, a
  navigation built from a YAML or inline list of files and folders, the
  contents of the page on the right, and languages found by file suffix;
- standalone: one page per document carrying its styles, scripts and
  images, listing whatever it still needs from outside, and refusing it
  under strict;
- annotate: the review-note runtime, written into single pages by default
  or linked from a hosted review with an optional GitHub inbox.

The navigation also decides what is published: a document neither listed
nor hidden is written by no format, and a relative link to one fails.
The theme switch becomes a select, the floating note button goes away on
any press, Escape or focus elsewhere, and a saved page may be larger than
a notes file while the notes in it keep their limit. Unknown options are
now an error, so the retired annotations option names its replacement.
A bound volume links a document it does not bind, a translation or a
home the navigation leaves out, at that document's site page in the
print HTML and in Word, rather than at a PDF the run may not write or
a bookmark the Word file does not hold.

Under host links a file the collection leaves out still goes to
sourceLinks, since the host does not serve it either. A mount is
refused on single pages, with host or none links, and when it overlaps
a collection root, an asset directory, the library or another mount: a
mount over a root would publish documents the navigation leaves out.

A generated landing page carries the language menu. An exclude that
matches a document an entry already took is no longer reported as
matching nothing. strict lists what pages need in the result's order.
A heading right after a rule draws no second line. The annotation
report prints the library path relative to the working directory, and
the volume's page arithmetic counts only the documents it binds.

The tests inject failures and check the previous output survives,
combine the features as a reader would, and cover the single-page path
guards, mounts, navigation depth and option validation.
docs-site/ exports the README and docs/ with cudoc-export, with the
committed export samples mounted beside the guides that describe them
and links to source files opened on GitHub at the built commit. Only
README.md, README.ko.md and docs/**/*.md are copied into the source it
builds from, so nothing else in the repository can reach the site.
`npm run docs:site` builds it and docs-site/verify.mjs checks every
link, anchor and the stated version.

Pages no longer publishes on every push. publish.yml calls pages.yml
once scripts/site-release.mjs finds every public package on npm from
the released commit and tagged there, so a release that stopped
halfway leaves the site as it was. A manual run deploys a released
version again from the commit its tags name, checked against the
packages that commit holds, and the version guard refuses to put an
older release over a newer one, inside the deploy's concurrency group
as well, unless the run asks for a rollback.
The export guide explains the three kinds of HTML and what a single
page carries, the navigation file, languages, home, header, contents,
stylesheets, sourceLinks and mounts, and the hosted review with its
GitHub issue-form inbox; the adapter reference states the options, the
output plan, the single-page rules and the deploy decision, and the node
reference the glob and tree helpers cudoc-export now reuses. English
and Korean change together. "Standalone HTML" is renamed HTML export in
the guides, since standalone is now one of its modes. The root README
says it is also a website, exported by cudoc.

examples/export builds the showcase site in two languages from a
navigation file, and from three more configurations a standalone page,
a page to review and a hosted review, with a returned notes file and
the report made from it; tests/scripts/export-showcase.mjs compares all
of them.

Every package moves to 0.8.0 with its siblings pinned to it, and the
root and example lockfiles follow. The release notes list what to act
on when upgrading: annotations became mode annotate, navigation names
documents with their extension and publishes only what it lists,
unknown options are errors, and css files are linked on their own.
The theme menu chooses between Light and Dark. Until the reader picks
one, the page follows the system setting and the menu shows which of
the two that is, following a change of the setting while the page is
open; the `system` word leaves the `ui` strings.

A press on a picture in the text leaves the selection where it was, and
the release brought the note button back beside that old selection, so
the button seemed not to go away. It now comes back only for a press
that started a selection or moved the old one.
… page

The showcase stylesheet drew a striped band under the header to show a
stylesheet's url() file being copied and inlined. A small handbook mark
before the site title shows the same without marking the header. The
page to review keeps the showcase's theme menu.
@cudoment
cudoment merged commit 67675cf into main Oct 1, 2026
6 checks passed
@cudoment
cudoment deleted the release/0.8.0 branch October 8, 2026 02:07
cudoment added a commit that referenced this pull request Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant