Repository navigation
build(deps): move the docs site to astro 7 and clear its audit - #173
Merged
Merged
Conversation
- astro 7.4.1, @astrojs/starlight 0.42.6, sharp 0.35.5 (Dependabot #161) and the transitive bumps of #157 to #169 - starlight-typedoc 0.23.1, the release that supports Starlight 0.39+ - Reference sidebar group in the Starlight 0.39 shape (items: [{ autogenerate }]) - override postcss-nested to ^7.0.2 so postcss-selector-parser resolves to 7.1.7 (GHSA-rj75-hqrm-r3gf)
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.
Closes #172
npm auditindocs/now reportsfound 0 vulnerabilities(55 open Dependabot alerts before), and the site builds the same 239 pages.This folds the 12 Dependabot PRs #157, #158, #160 to #169 into one, because they all rewrite
docs/package-lock.jsonand #161 alone breaks the build. I'll close them as superseded once this lands.Changes, all under
docs/:package.jsonandpackage-lock.json: astro 6.1.1 to 7.4.1, @astrojs/starlight 0.38.2 to 0.42.6, sharp 0.34.5 to 0.35.5 (the build(deps): bump sharp, @astrojs/starlight and astro in /docs #161 lock as the base), plus starlight-typedoc 0.21.5 to 0.23.1 (its peer range for Starlight 0.39+). The transitive fixes of the other 11 PRs come with it (defu 6.1.7, markdown-it 14.3.3, brace-expansion 5.0.12, postcss 8.5.31, js-yaml 4.3.2, devalue 6.0.3, smol-toml 1.9.1, svgo 4.1.0, nanoid 3.3.20, source-map-js 1.2.2).astro.config.mjs: the Reference group moves to the shape Starlight 0.39 requires,items: [{ autogenerate: { directory: 'reference' } }]. Without itastro buildfails withFound an autogenerate object with a label. Support for autogenerated sidebar groups was removed in Starlight v0.39.0.package.jsonoverrides:postcss-nested ^7.0.2.@expressive-code/core0.44.2 (latest) still asks forpostcss-nested ^6.0.1, which pinspostcss-selector-parser6.1.5 (GHSA-rj75-hqrm-r3gf, fixed only in 7.1.6). postcss-nested 7.0 changes comment placement and drops Node 16 and older, nothing else.Verified locally (Node 24,
pnpm buildat the root first, asdocs.ymldoes):npm cithennpx astro build: 239 pages, the same 239 paths as master's build. On a content page the only link differences are the CSS bundle names.dist/trees are byte-identical.npm audit:found 0 vulnerabilities.Not in this PR:
astro buildregenerates the committed API pages underdocs/src/content/docs/api/(they are stale against master), and I left them out to keep the change to dependencies.