Repository navigation
Release 0.6.0 - #9
Merged
Merged
Conversation
…d-section replacement Every host guide now states the releases it is tested against and what a minor or a patch release keeps compatible before 1.0.0. The Docusaurus and Eleventy adapters declare the host ranges they support as peers, the guides show every file they ask for, and each guide is followed step by step in a new project from the packed packages before a release, failing when the site it builds reports an advisory its example does not. The Docusaurus and Nextra guides pin the fixed host dependencies the examples pin, and the Next.js example moves to 16.3.8. Collection keeps the last good library when a pass fails: the library and its prepared embeds are published together, a second writer is refused, and recovery after a killed build touches only directories that carry cudoc's ownership marker. A root nested in another owns its files, an index document takes its directory's route when routes end in a slash, and a link to a directory reaches that index everywhere. The export protects private documents. A link to one keeps its deployed address in the bound print HTML, PDF and Word, and a resource that would copy a private document's source, through a root, an asset directory, a link or the library itself, stops the export under every link policy. Copied files are written as URLs, so names with spaces or `%` load. Embedded sections carry their resources and their structure. Raw HTML `poster`, `data`, `srcset` and `xlink:href` paths move with the section, a relative path that climbs out of the collection keeps pointing at the same file, Docusaurus images are recorded as images when collected, and a `replace` rule on a section inside a list item rewrites it into the structure that was collected. Where part of the enclosing block would stay in the text, a quote's `>`, a footnote's indentation or a container's closing line, the rule is refused with a message, and `cudoc check` reports the same case as `unreplaceable-embed-section`. `cudoc check` reads the collected library without writing, reports embeds that include themselves, places each embed diagnostic on its own fence, and inspects an embed's copy after its rules have run, so it fails where the build fails. On VitePress and Eleventy the host renders everything cudoc does not change, so highlighting, script blocks, emoji, tables of contents and the site's own containers keep working. A document saved with `\r\n` line endings is collected, embedded and rewritten as one saved with `\n`, on Eleventy too, and image alt text matches the remark hosts. The publish workflow requires a green CI run of the same commit on main, and a release job creates any tag or GitHub release a previous run left missing. The committed export showcase is published to GitHub Pages. Upgrading from 0.5 changes a few calls; the release notes in README.md and README.ko.md list them under `### 0.6.0`.
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.6.0 and pins the sibling dependencies to it. The release notes are in
README.mdandREADME.ko.mdunder### 0.6.0.docs/README.md;cudoc-docusaurusandcudoc-eleventydeclare their supported host ranges as peers; Next.js example on 16.3.8.tests/scripts/guide-consumers.mjs), including annpm auditcomparison with its example; the Docusaurus and Nextra guides carry the examples'overrides.privatedocuments private: deployed addresses in bound outputs, and a resource that would copy a private source stops the export under every policy.replaceon a section inside a list item keeps its structure, and the cases that cannot are refused and reported bycudoc checkasunreplaceable-embed-section.cudoc checkreads the library without writing, reportscyclic-embed, places embed diagnostics on their own fence and checks an embed's copy after its rules.\r\nline endings.publish.ymlrequires a green CI run of the same commit on main and recovers missing tags and releases;pages.ymlpublishes the export showcase.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(61 files, 1606 tests) andnpm run test:scripts(all five, including the guide check and the export showcase comparison).Every package is already on npm, and each has a trusted publisher for this repository and
publish.yml, so the whole release goes out from the workflow.