withastro/starlight (@astrojs/starlight)
### [`v0.16.0`](https://togithub.com/withastro/starlight/blob/HEAD/packages/starlight/CHANGELOG.md#0160)
[Compare Source](https://togithub.com/withastro/starlight/compare/@astrojs/starlight@0.15.4...@astrojs/starlight@0.16.0)
##### Minor Changes
- [#1383](https://togithub.com/withastro/starlight/pull/1383) [`490c6ef`](https://togithub.com/withastro/starlight/commit/490c6eff34ab408c4f55777b7b0caa16787dd3d4) Thanks [@delucis](https://togithub.com/delucis)! - Refactors Starlight’s internal virtual module system for components to avoid circular references
This is a change to an internal API.
If you were importing the internal `virtual:starlight/components` module, this no longer exists.
Update your imports to use the individual virtual modules now available for each component, for example `virtual:starlight/components/EditLink`.
- [#1151](https://togithub.com/withastro/starlight/pull/1151) [`134292d`](https://togithub.com/withastro/starlight/commit/134292ddd89683007d7de25545d39738a82c626c) Thanks [@kevinzunigacuellar](https://togithub.com/kevinzunigacuellar)! - Fixes sidebar auto-generation issue when a file and a directory, located at the same level, have identical names.
For example, `src/content/docs/guides.md` and `src/content/docs/guides/example.md` will now both be included and `src/content/docs/guides.md` is treated in the same way a `src/content/docs/guides/index.md` file would be.
- [#1386](https://togithub.com/withastro/starlight/pull/1386) [`0163634`](https://togithub.com/withastro/starlight/commit/0163634abb8578ce7a3d7ceea36432e98ea70e78) Thanks [@delucis](https://togithub.com/delucis)! - Tightens `line-height` on `` titles to fix regression from original design
If you want to preserve the previous `line-height`, you can add the following custom CSS to your site:
```css
.sl-link-card a {
line-height: 1.6;
}
```
- [#1376](https://togithub.com/withastro/starlight/pull/1376) [`8398432`](https://togithub.com/withastro/starlight/commit/8398432aa4a0f38e2dd4452dfcdf7033c5713334) Thanks [@delucis](https://togithub.com/delucis)! - Tweaks vertical spacing in Markdown content styles.
This is a subtle change to Starlight’s default content styling that should improve most sites:
- Default vertical spacing between content items is reduced from `1.5rem` to `1rem`.
- Spacing before headings is now relative to font size, meaning higher-level headings have slightly more spacing and lower-level headings slightly less.
The overall impact is to tighten up content that belongs together and improve the visual hierarchy of headings to break up sections.
Although this is a subtle change, we recommend visually inspecting your site in case this impacts layout of any custom CSS or components.
If you want to preserve the previous spacing, you can add the following custom CSS to your site:
```css
/* Restore vertical spacing to match Starlight v0.15 and below. */
.sl-markdown-content
:not(a, strong, em, del, span, input, code)
+ :not(a, strong, em, del, span, input, code, :where(.not-content *)) {
margin-top: 1.5rem;
}
.sl-markdown-content
:not(h1, h2, h3, h4, h5, h6)
+ :is(h1, h2, h3, h4, h5, h6):not(:where(.not-content *)) {
margin-top: 2.5rem;
}
```
- [#1372](https://togithub.com/withastro/starlight/pull/1372) [`773880d`](https://togithub.com/withastro/starlight/commit/773880de87b79bf3107dbc32df29a86dd11e4e6f) Thanks [@HiDeoo](https://togithub.com/HiDeoo)! - Updates the table of contents highlighting styles to prevent UI shifts when scrolling through a page.
If you want to preserve the previous, buggy styling, you can add the following custom CSS to your site:
```css
starlight-toc a[aria-current='true'],
starlight-toc a[aria-current='true']:hover,
starlight-toc a[aria-current='true']:focus {
font-weight: 600;
color: var(--sl-color-text-invert);
background-color: var(--sl-color-text-accent);
}
```
### [`v0.15.4`](https://togithub.com/withastro/starlight/blob/HEAD/packages/starlight/CHANGELOG.md#0154)
[Compare Source](https://togithub.com/withastro/starlight/compare/@astrojs/starlight@0.15.3...@astrojs/starlight@0.15.4)
##### Patch Changes
- [#1378](https://togithub.com/withastro/starlight/pull/1378) [`0f4a31d`](https://togithub.com/withastro/starlight/commit/0f4a31da4b6d384c569e8556dcc559dc8bfbfebd) Thanks [@delucis](https://togithub.com/delucis)! - Updates dependencies: `@astrojs/mdx`, `@astrojs/sitemap`, and `astro-expressive-code`
### [`v0.15.3`](https://togithub.com/withastro/starlight/blob/HEAD/packages/starlight/CHANGELOG.md#0153)
[Compare Source](https://togithub.com/withastro/starlight/compare/@astrojs/starlight@0.15.2...@astrojs/starlight@0.15.3)
##### Patch Changes
- [#1303](https://togithub.com/withastro/starlight/pull/1303) [`3eefd21`](https://togithub.com/withastro/starlight/commit/3eefd21f2267648b17bc2d6874350fd5dd8bbcb2) Thanks [@lilnasy](https://togithub.com/lilnasy)! - chore: fix type errors in Starlight internals
- [#1351](https://togithub.com/withastro/starlight/pull/1351) [`932c022`](https://togithub.com/withastro/starlight/commit/932c0229d7d8d55f30161ccc36c908140c1f252a) Thanks [@roberto-butti](https://togithub.com/roberto-butti)! - Adds Italian translation for `search.devWarning` UI
- [#1298](https://togithub.com/withastro/starlight/pull/1298) [`c7e995c`](https://togithub.com/withastro/starlight/commit/c7e995cb018179789b5ee45bae5fdd9c20309945) Thanks [@kevinzunigacuellar](https://togithub.com/kevinzunigacuellar)! - Fixes incorrect sorting behavior for some autogenerated sidebars
- [#1347](https://togithub.com/withastro/starlight/pull/1347) [`8994d00`](https://togithub.com/withastro/starlight/commit/8994d007266e0bd8e6116b306ccd9e24c9710411) Thanks [@kevinzunigacuellar](https://togithub.com/kevinzunigacuellar)! - Refactor `getLastUpdated` to use `node:child_process` instead of `execa`.
- [#1353](https://togithub.com/withastro/starlight/pull/1353) [`90fe8da`](https://togithub.com/withastro/starlight/commit/90fe8da15c8eb227817c2232345ac359aef6bab5) Thanks [@delucis](https://togithub.com/delucis)! - Fixes sidebar scrollbar hiding behind navbar
### [`v0.15.2`](https://togithub.com/withastro/starlight/blob/HEAD/packages/starlight/CHANGELOG.md#0152)
[Compare Source](https://togithub.com/withastro/starlight/compare/@astrojs/starlight@0.15.1...@astrojs/starlight@0.15.2)
##### Patch Changes
- [#1254](https://togithub.com/withastro/starlight/pull/1254) [`e9659e8`](https://togithub.com/withastro/starlight/commit/e9659e869cd0c9ad0b7388397b0fff8e2a9db27a) Thanks [@Pukimaa](https://togithub.com/Pukimaa)! - Adds Open Collective social link icon
- [#1295](https://togithub.com/withastro/starlight/pull/1295) [`c3732a9`](https://togithub.com/withastro/starlight/commit/c3732a9bb5cb7907f00a3ed5e65534f48a5ff6b9) Thanks [@juchym](https://togithub.com/juchym)! - Improve Ukrainian UI translations
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ 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.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
^0.15.1
->^0.16.0
Release Notes
withastro/starlight (@astrojs/starlight)
### [`v0.16.0`](https://togithub.com/withastro/starlight/blob/HEAD/packages/starlight/CHANGELOG.md#0160) [Compare Source](https://togithub.com/withastro/starlight/compare/@astrojs/starlight@0.15.4...@astrojs/starlight@0.16.0) ##### Minor Changes - [#1383](https://togithub.com/withastro/starlight/pull/1383) [`490c6ef`](https://togithub.com/withastro/starlight/commit/490c6eff34ab408c4f55777b7b0caa16787dd3d4) Thanks [@delucis](https://togithub.com/delucis)! - Refactors Starlight’s internal virtual module system for components to avoid circular references This is a change to an internal API. If you were importing the internal `virtual:starlight/components` module, this no longer exists. Update your imports to use the individual virtual modules now available for each component, for example `virtual:starlight/components/EditLink`. - [#1151](https://togithub.com/withastro/starlight/pull/1151) [`134292d`](https://togithub.com/withastro/starlight/commit/134292ddd89683007d7de25545d39738a82c626c) Thanks [@kevinzunigacuellar](https://togithub.com/kevinzunigacuellar)! - Fixes sidebar auto-generation issue when a file and a directory, located at the same level, have identical names. For example, `src/content/docs/guides.md` and `src/content/docs/guides/example.md` will now both be included and `src/content/docs/guides.md` is treated in the same way a `src/content/docs/guides/index.md` file would be. - [#1386](https://togithub.com/withastro/starlight/pull/1386) [`0163634`](https://togithub.com/withastro/starlight/commit/0163634abb8578ce7a3d7ceea36432e98ea70e78) Thanks [@delucis](https://togithub.com/delucis)! - Tightens `line-height` on `Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ 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.
This PR has been generated by Mend Renovate. View repository job log here.