f20d6a0955
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [@astrojs/sitemap](https://docs.astro.build/en/guides/integrations-guide/sitemap/) ([source](https://redirect.github.com/withastro/astro/tree/HEAD/packages/integrations/sitemap)) | dependencies | minor | [`3.3.1` -> `3.4.0`](https://renovatebot.com/diffs/npm/@astrojs%2fsitemap/3.3.1/3.4.0) | | [astro](https://astro.build) ([source](https://redirect.github.com/withastro/astro/tree/HEAD/packages/astro)) | dependencies | minor | [`5.7.14` -> `5.8.1`](https://renovatebot.com/diffs/npm/astro/5.7.14/5.8.1) | Add the preset `:preserveSemverRanges` to your config if you don't want to pin your dependencies. --- ### Release Notes <details> <summary>withastro/astro (@​astrojs/sitemap)</summary> ### [`v3.4.0`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/integrations/sitemap/CHANGELOG.md#340) [Compare Source](https://redirect.github.com/withastro/astro/compare/@astrojs/sitemap@3.3.1...@astrojs/sitemap@3.4.0) ##### Minor Changes - [#​13753](https://redirect.github.com/withastro/astro/pull/13753) [`90293de`](https://redirect.github.com/withastro/astro/commit/90293de03320da51965f05cfa6923cbe5521f519) Thanks [@​mattyoho](https://redirect.github.com/mattyoho)! - Customize the filenames of sitemap XML files generated by the `@astro/sitemap` integration by setting `filenameBase` in the integration configuration settings. This may be useful when deploying an Astro site at a path on a domain with preexisting sitemap files. Generated sitemap files will appear at `/sitemap-0.xml` and `/sitemap-index.xml` by default, which may conflict with preexisting files. Set `filenameBase` to a custom value to avoid that if so: ```js import { defineConfig } from 'astro/config'; import sitemap from '@​astrojs/sitemap'; export default defineConfig({ site: 'https://example.com', integrations: [ sitemap({ filenameBase: 'astronomy-sitemap', }), ], }); ``` This will yield sitemap and index files as `https://example.com/astronomy-sitemap-0.xml` and `https://example.com/astronomy-sitemap-index.xml`. </details> <details> <summary>withastro/astro (astro)</summary> ### [`v5.8.1`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#581) [Compare Source](https://redirect.github.com/withastro/astro/compare/astro@5.8.0...astro@5.8.1) ##### Patch Changes - [#​13037](https://redirect.github.com/withastro/astro/pull/13037) [`de2fc9b`](https://redirect.github.com/withastro/astro/commit/de2fc9b3c406c21683b8a692fafa3cbc77ca552b) Thanks [@​nanarino](https://redirect.github.com/nanarino)! - Fixes rendering of the `popover` attribute when it has a boolean value - [#​13851](https://redirect.github.com/withastro/astro/pull/13851) [`45ae95a`](https://redirect.github.com/withastro/astro/commit/45ae95a507d5e83b5e38ce1b338c3202ab7e8d76) Thanks [@​ascorbic](https://redirect.github.com/ascorbic)! - Allows disabling default styles for responsive images This change adds a new `image.experimentalDefaultStyles` option that allows you to disable the default styles applied to responsive images. When using experimental responsive images, Astro applies default styles to ensure the images resize correctly. In most cases this is what you want – and they are applied with low specificity so your own styles override them. However in some cases you may want to disable these default styles entirely. This is particularly useful when using Tailwind 4, because it uses CSS cascade layers to apply styles, making it difficult to override the default styles. `image.experimentalDefaultStyles` is a boolean option that defaults to `true`, so you can change it in your Astro config file like this: ```js export default { image: { experimentalDefaultStyles: false, }, experimental: { responsiveImages: true, }, }; ``` - [#​13858](https://redirect.github.com/withastro/astro/pull/13858) [`cb1a168`](https://redirect.github.com/withastro/astro/commit/cb1a1681c844737477670ac42bb051bf93fae0a3) Thanks [@​florian-lefebvre](https://redirect.github.com/florian-lefebvre)! - Fixes the warning shown when client directives are used on Astro components - [#​12574](https://redirect.github.com/withastro/astro/pull/12574) [`da266d0`](https://redirect.github.com/withastro/astro/commit/da266d0578c1a603d6f57913c6fa8eefd61a354e) Thanks [@​apatel369](https://redirect.github.com/apatel369)! - Allows using server islands in mdx files - [#​13843](https://redirect.github.com/withastro/astro/pull/13843) [`fbcfa68`](https://redirect.github.com/withastro/astro/commit/fbcfa683d38f13378678c25b53cd789107752087) Thanks [@​z1haze](https://redirect.github.com/z1haze)! - Export type `AstroSession` to allow use in explicitly typed safe code. ### [`v5.8.0`](https://redirect.github.com/withastro/astro/blob/HEAD/packages/astro/CHANGELOG.md#580) [Compare Source](https://redirect.github.com/withastro/astro/compare/astro@5.7.14...astro@5.8.0) ##### Minor Changes - [#​13809](https://redirect.github.com/withastro/astro/pull/13809) [`3c3b492`](https://redirect.github.com/withastro/astro/commit/3c3b492375bd6a63f1fb6cede3685aff999be3c9) Thanks [@​ascorbic](https://redirect.github.com/ascorbic)! - Increases minimum Node.js version to 18.20.8 Node.js 18 has now reached end-of-life and should not be used. For now, Astro will continue to support Node.js 18.20.8, which is the final LTS release of Node.js 18, as well as Node.js 20 and Node.js 22 or later. We will drop support for Node.js 18 in a future release, so we recommend upgrading to Node.js 22 as soon as possible. See Astro's [Node.js support policy](https://docs.astro.build/en/upgrade-astro/#support) for more details. ⚠️ **Important note for users of Cloudflare Pages**: The current build image for Cloudflare Pages uses Node.js 18.17.1 by default, which is no longer supported by Astro. If you are using Cloudflare Pages you should [override the default Node.js version](https://developers.cloudflare.com/pages/configuration/build-image/#override-default-versions) to Node.js 22. This does not affect users of Cloudflare Workers, which uses Node.js 22 by default. ##### Patch Changes - Updated dependencies \[[`3c3b492`](https://redirect.github.com/withastro/astro/commit/3c3b492375bd6a63f1fb6cede3685aff999be3c9)]: - [@​astrojs/telemetry](https://redirect.github.com/astrojs/telemetry)[@​3](https://redirect.github.com/3).3.0 - [@​astrojs/markdown-remark](https://redirect.github.com/astrojs/markdown-remark)[@​6](https://redirect.github.com/6).3.2 </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. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://redirect.github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- 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:eyJjcmVhdGVkSW5WZXIiOiIzOS4yMzguMCIsInVwZGF0ZWRJblZlciI6IjM5LjIzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbImF1dG9tZXJnZSIsInJlbm92YXRlL2NvbnRhaW5lciIsInR5cGUvbWlub3IiXX0=-->
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.