ea93f4996b
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [@astrojs/starlight](https://starlight.astro.build) ([source](https://redirect.github.com/withastro/starlight/tree/HEAD/packages/starlight)) | dependencies | minor | [`0.27.1` -> `0.28.3`](https://renovatebot.com/diffs/npm/@astrojs%2fstarlight/0.27.1/0.28.3) | Add the preset `:preserveSemverRanges` to your config if you don't want to pin your dependencies. --- ### Release Notes <details> <summary>withastro/starlight (@​astrojs/starlight)</summary> ### [`v0.28.3`](https://redirect.github.com/withastro/starlight/blob/HEAD/packages/starlight/CHANGELOG.md#0283) [Compare Source](https://redirect.github.com/withastro/starlight/compare/@astrojs/starlight@0.28.2...@astrojs/starlight@0.28.3) ##### Patch Changes - [#​2408](https://redirect.github.com/withastro/starlight/pull/2408) [`0b4823d`](https://redirect.github.com/withastro/starlight/commit/0b4823d534abe517fac5efd97f6febb5965714fe) Thanks [@​HiDeoo](https://redirect.github.com/HiDeoo)! - Fixes a link formatting issue when using the Astro `build.format` option set to `file` with a `base`. - [#​2380](https://redirect.github.com/withastro/starlight/pull/2380) [`7b451cf`](https://redirect.github.com/withastro/starlight/commit/7b451cff6979bef1c817f3a84392221ac884ba3d) Thanks [@​delucis](https://redirect.github.com/delucis)! - Loosen Starlight’s i18n schema to pass through unknown keys - [#​2388](https://redirect.github.com/withastro/starlight/pull/2388) [`6bba3d8`](https://redirect.github.com/withastro/starlight/commit/6bba3d8e02b95ecee7f9c945b6ee33b4c4ba755d) Thanks [@​HiDeoo](https://redirect.github.com/HiDeoo)! - Fixes a potential type-checking issue in Starlight projects. - [#​2443](https://redirect.github.com/withastro/starlight/pull/2443) [`a0f40b3`](https://redirect.github.com/withastro/starlight/commit/a0f40b3c3c7ab0cb9f0f5f11b94e3679547f6ab4) Thanks [@​kevinzunigacuellar](https://redirect.github.com/kevinzunigacuellar)! - Fixes CSS issue where bottom padding is not applied in the search dialog. ### [`v0.28.2`](https://redirect.github.com/withastro/starlight/blob/HEAD/packages/starlight/CHANGELOG.md#0282) [Compare Source](https://redirect.github.com/withastro/starlight/compare/@astrojs/starlight@0.28.1...@astrojs/starlight@0.28.2) ##### Patch Changes - [#​2377](https://redirect.github.com/withastro/starlight/pull/2377) [`a257b83`](https://redirect.github.com/withastro/starlight/commit/a257b83f1e5704ff41bcbe85482ac81a1a61ce1f) Thanks [@​HiDeoo](https://redirect.github.com/HiDeoo)! - Fixes an issue with synced `<Tabs>` components containing nested `<Tabs>` causing tab panels to not render correctly. ### [`v0.28.1`](https://redirect.github.com/withastro/starlight/blob/HEAD/packages/starlight/CHANGELOG.md#0281) [Compare Source](https://redirect.github.com/withastro/starlight/compare/@astrojs/starlight@0.28.0...@astrojs/starlight@0.28.1) ##### Patch Changes - [#​2334](https://redirect.github.com/withastro/starlight/pull/2334) [`79b9ade`](https://redirect.github.com/withastro/starlight/commit/79b9ade194cf704dad79267715a6970e0d7a7277) Thanks [@​HiDeoo](https://redirect.github.com/HiDeoo)! - Fixes an issue with Expressive Code UI labels not displaying correctly. ### [`v0.28.0`](https://redirect.github.com/withastro/starlight/blob/HEAD/packages/starlight/CHANGELOG.md#0280) [Compare Source](https://redirect.github.com/withastro/starlight/compare/@astrojs/starlight@0.27.1...@astrojs/starlight@0.28.0) ##### Minor Changes - [#​1923](https://redirect.github.com/withastro/starlight/pull/1923) [`5269aad`](https://redirect.github.com/withastro/starlight/commit/5269aad928773ae08b35ba8e19c0f2832d0d2c89) Thanks [@​HiDeoo](https://redirect.github.com/HiDeoo)! - Overhauls the built-in localization system which is now powered by the [`i18next`](https://www.i18next.com/) library and available to use anywhere in your documentation website. See the [“Using UI translations”](https://starlight.astro.build/guides/i18n/#using-ui-translations) guide to learn more about how to access built-in UI labels or your own custom strings in your project. Plugin authors can also use the new [`injectTranslations()`](https://starlight.astro.build/reference/plugins/#injecttranslations) helper to add or update translation strings. ⚠️ **BREAKING CHANGE:** The `Astro.props.labels` props has been removed from the props passed down to custom component overrides. If you are relying on `Astro.props.labels` (for example to read a built-in UI label), you will need to update your code to use the new [`Astro.locals.t()`](https://starlight.astro.build/guides/i18n/#using-ui-translations) helper instead. </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://redirect.github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4xMzAuMCIsInVwZGF0ZWRJblZlciI6IjM4LjEzMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbImF1dG9tZXJnZSIsInJlbm92YXRlL2NvbnRhaW5lciIsInR5cGUvbWlub3IiXX0=-->
Chart Docs
News
- To add new authors, add their username in the
authors.tsfile insrc/content/docs/news/authors.ts. - News Posts must have these fields in the
frontmatter:titleslug(must start withnews/)dateauthors(The key in theauthorsobject insrc/content/docs/news/authors.ts)
Supported Code Block Languages
Check upstream docs
🧞 Commands
All commands are run from the root of the project, from a terminal:
| Command | Action |
|---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:4321 |
npm run dev-windows |
Starts local dev server on windows machines |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally, before deploying |
npm run astro ... |
Run CLI commands like astro add, astro check |
npm run astro -- --help |
Get help using the Astro CLI |
Starlight looks for .md or .mdx files in the src/content/docs/ directory. Each file is exposed as a route based on its file name.
Images can be added to src/assets/ and embedded in Markdown with a relative link.
Static assets, like favicons, can be placed in the public/ directory.
👀 Want to learn more?
Check out Starlight’s docs, read the Astro documentation, or jump into the Astro Discord server.