Repository navigation
Release 0.8.0 - #12
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps every package to 0.8.0 and pins the sibling dependencies to it. The release notes are in
docs/release-notes.mdanddocs/release-notes.ko.md, under## 0.8.0, including what to act on when upgrading.sitewrites the site;standalonewrites each document as one HTML file that carries its styles, pictures and theme menu;annotatewrites pages that collect review notes, as single files or, withannotate.target: "hosted", as a site with a requiredreviewIdand an optional GitHub issue-form inbox. A single-page run reports what a page still needs from outside asdependencies, andstrictrefuses it.navigationis a YAML file or a list (files with their extension, folders withexclude,order,page,depthandcollapsed, groups, links,hidden), and a document it does not list is published by no format.localesadds languages found by file suffix, andhome,header.links,toc,css(now a list of linked files),sourceLinksandmountsshape the rest.docs-site/builds cudoc's documentation from the README anddocs/withcudoc-export.publish.ymlnow deploys it to Pages throughpages.ymlonly once every package is on npm from the released commit and tagged there; the push-triggered showcase deploy is gone, and the showcase moves undershowcase/on the site.examples/exportadds 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(andbuild:webpackinnext-mdx) andnpm auditin each of the six examples (only the VitePress advisories tabled inexamples/README.mdremain),npm run typecheck,npm run format:check,CUDOC_STRICT=1 npm test(68 files, 1826 tests) andnpm 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.