🌟 Build beautiful, accessible, high-performance documentation websites with Astro
by withastroTypeScript
Last 12 weeks · 166 commits
5 of 6 standards met
Description This PR refactors some of the code to use the new Sätteri 0.10 APIs now available in Astro 7.2.4 (but technically 7.2.5 for a fix). One of the most meaningful change is our components that were previously using rehype and creating processors to parse the default slot content are now using the new Sätteri API. Regarding the changeset, not quite sure yet the level of details we should use, e.g. should we just say we updated some deps or go as far as mentioning that we can now only check paths to transform once per plugin type thanks to Sätteri conditional plugin bundles. Note that GitHub displays some renamed files as deletions + additions because they changed significantly (mostly indentations tho). The rename-only commit may be easier to review separately. Remaining tasks [x] Wait for https://github.com/withastro/astro/pull/17766 to be released. [x] Will need some updates once https://github.com/withastro/starlight/pull/4133 is merged. [ ] Adress all comments.
Description Based on this Discord message where a user searched for "changelog" in the documentation and miss it as a plugin ranks higher than the official documentation, this PR experiments with reducing the weight of 3rd party content in search results to favor official documentation. Right now, the weight is set to 0.75, and considering it's a quadratic scale, this should roughly be a 45% reduced weight for 3rd party content. This fixes the "changelog" case, but I'm keeping it as a draft for now as I want to play around with more examples and see if it's a good balance or not. Probably easier to review with whitespace changes disabled, as it's mostly just wrapping some sections in a new `` component.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. Releases @astrojs/starlight@0.41.9 Patch Changes #4145 Thanks @pyxelr! - Adds 1 new icon:
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. Releases @astrojs/starlight@0.41.9 Patch Changes #4145 Thanks @pyxelr! - Adds 1 new icon:
Repository: withastro/starlight. Description: 🌟 Build beautiful, accessible, high-performance documentation websites with Astro Stars: 9126, Forks: 1031. Primary language: TypeScript. Languages: TypeScript (85.2%), Astro (8.3%), CSS (2.7%), HTML (2%), JavaScript (1.2%). License: MIT. Homepage: https://starlight.astro.build Topics: astro, docs-generator, documentation, starlight, static-site-generator. Latest release: @astrojs/starlight@0.41.9 (2h ago). Open PRs: 20, open issues: 8. Last activity: 1h ago. Community health: 100%. Top contributors: delucis, HiDeoo, jsparkdev, trueberryless, astrobot-houston, morinokami, dreyfus92, liruifengv, ArmandPhilippot, Waxer59 and others.