From 5b1b488c302452527c4a1b890a440ef3ae50cca8 Mon Sep 17 00:00:00 2001 From: Houston (Bot) Date: Mon, 20 Nov 2023 13:51:37 -0800 Subject: [ci] release (#1079) Co-authored-by: github-actions[bot] --- .changeset/dull-lamps-train.md | 5 -- .changeset/fair-ligers-help.md | 5 -- .changeset/kind-boats-train.md | 5 -- .changeset/red-camels-beam.md | 5 -- .changeset/sharp-tables-march.md | 25 ---------- .changeset/spotty-parrots-doubt.md | 5 -- .changeset/sweet-berries-begin.md | 38 --------------- .changeset/tasty-ladybugs-return.md | 5 -- .changeset/thick-boxes-fail.md | 5 -- examples/basics/package.json | 2 +- examples/tailwind/package.json | 2 +- packages/starlight/CHANGELOG.md | 95 +++++++++++++++++++++++++++++++++---- packages/starlight/package.json | 2 +- pnpm-lock.yaml | 4 +- 14 files changed, 91 insertions(+), 112 deletions(-) delete mode 100644 .changeset/dull-lamps-train.md delete mode 100644 .changeset/fair-ligers-help.md delete mode 100644 .changeset/kind-boats-train.md delete mode 100644 .changeset/red-camels-beam.md delete mode 100644 .changeset/sharp-tables-march.md delete mode 100644 .changeset/spotty-parrots-doubt.md delete mode 100644 .changeset/sweet-berries-begin.md delete mode 100644 .changeset/tasty-ladybugs-return.md delete mode 100644 .changeset/thick-boxes-fail.md diff --git a/.changeset/dull-lamps-train.md b/.changeset/dull-lamps-train.md deleted file mode 100644 index d5e3fe5d..00000000 --- a/.changeset/dull-lamps-train.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@astrojs/starlight": patch ---- - -i18n(ru): added Russian aside labels translation diff --git a/.changeset/fair-ligers-help.md b/.changeset/fair-ligers-help.md deleted file mode 100644 index 52434f6c..00000000 --- a/.changeset/fair-ligers-help.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@astrojs/starlight": patch ---- - -i18n(hi): Add Hindi language support diff --git a/.changeset/kind-boats-train.md b/.changeset/kind-boats-train.md deleted file mode 100644 index 83267d88..00000000 --- a/.changeset/kind-boats-train.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/starlight': patch ---- - -Add Slack social link icon diff --git a/.changeset/red-camels-beam.md b/.changeset/red-camels-beam.md deleted file mode 100644 index 194a49a4..00000000 --- a/.changeset/red-camels-beam.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@astrojs/starlight': patch ---- - -Ignore search keyboard shortcuts for elements with contents that are editable diff --git a/.changeset/sharp-tables-march.md b/.changeset/sharp-tables-march.md deleted file mode 100644 index 2cdbecb5..00000000 --- a/.changeset/sharp-tables-march.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -'@astrojs/starlight': minor ---- - -Respect the `trailingSlash` and `build.format` Astro options when creating Starlight navigation links. - -⚠️ **Potentially breaking change:** -This change will cause small changes in link formatting for most sites. -These are unlikely to break anything, but if you care about link formatting, you may want to change some Astro settings. - -If you want to preserve Starlight’s previous behavior, set `trailingSlash: 'always'` in your `astro.config.mjs`: - -```js -import { defineConfig } from 'astro/config'; -import starlight from '@astrojs/starlight'; - -export default defineConfig({ - trailingSlash: 'always', - integrations: [ - starlight({ - // ... - }), - ], -}); -``` \ No newline at end of file diff --git a/.changeset/spotty-parrots-doubt.md b/.changeset/spotty-parrots-doubt.md deleted file mode 100644 index 92a461c0..00000000 --- a/.changeset/spotty-parrots-doubt.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@astrojs/starlight": patch ---- - -i18n(id): Add Indonesian aside labels translation diff --git a/.changeset/sweet-berries-begin.md b/.changeset/sweet-berries-begin.md deleted file mode 100644 index 2f9ffab8..00000000 --- a/.changeset/sweet-berries-begin.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -'@astrojs/starlight': minor ---- - -Adds Expressive Code as Starlight’s default code block renderer - -⚠️ **Potentially breaking change:** -This addition changes how Markdown code blocks are rendered. By default, Starlight will now use [Expressive Code](https://github.com/expressive-code/expressive-code/tree/main/packages/astro-expressive-code). -If you were already customizing how code blocks are rendered and don't want to use the [features provided by Expressive Code](https://starlight.astro.build/guides/authoring-content/#expressive-code-features), you can preserve the previous behavior by setting the new config option `expressiveCode` to `false`. - -If you had previously added Expressive Code manually to your Starlight project, you can now remove the manual set-up in `astro.config.mjs`: - -- Move your configuration to Starlight’s new `expressiveCode` option. -- Remove the `astro-expressive-code` integration. - -For example: - -```diff -import starlight from '@astrojs/starlight'; -import { defineConfig } from 'astro/config'; -- import expressiveCode from 'astro-expressive-code'; - -export default defineConfig({ - integrations: [ -- expressiveCode({ -- themes: ['rose-pine'], -- }), - starlight({ - title: 'My docs', -+ expressiveCode: { -+ themes: ['rose-pine'], -+ }, - }), - ], -}); -``` - -Note that the built-in Starlight version of Expressive Code sets some opinionated defaults that are different from the `astro-expressive-code` defaults. You may need to set some `styleOverrides` if you wish to keep styles exactly the same. diff --git a/.changeset/tasty-ladybugs-return.md b/.changeset/tasty-ladybugs-return.md deleted file mode 100644 index 1f9f843f..00000000 --- a/.changeset/tasty-ladybugs-return.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@astrojs/starlight": patch ---- - -i18n(ro): Add Romanian UI translations diff --git a/.changeset/thick-boxes-fail.md b/.changeset/thick-boxes-fail.md deleted file mode 100644 index 18b7aa87..00000000 --- a/.changeset/thick-boxes-fail.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@astrojs/starlight": minor ---- - -Add i18n support for default aside labels diff --git a/examples/basics/package.json b/examples/basics/package.json index 926d71d4..4ee1af4d 100644 --- a/examples/basics/package.json +++ b/examples/basics/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "@astrojs/starlight": "^0.12.1", + "@astrojs/starlight": "^0.13.0", "astro": "^3.2.3", "sharp": "^0.32.5" } diff --git a/examples/tailwind/package.json b/examples/tailwind/package.json index 35727482..86f40cd8 100644 --- a/examples/tailwind/package.json +++ b/examples/tailwind/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "@astrojs/starlight": "^0.12.1", + "@astrojs/starlight": "^0.13.0", "@astrojs/starlight-tailwind": "^2.0.1", "@astrojs/tailwind": "^5.0.0", "astro": "^3.2.3", diff --git a/packages/starlight/CHANGELOG.md b/packages/starlight/CHANGELOG.md index 01931083..5a5defb0 100644 --- a/packages/starlight/CHANGELOG.md +++ b/packages/starlight/CHANGELOG.md @@ -1,5 +1,82 @@ # @astrojs/starlight +## 0.13.0 + +### Minor Changes + +- [#1023](https://github.com/withastro/starlight/pull/1023) [`a3b80f7`](https://github.com/withastro/starlight/commit/a3b80f71037504f2b8d7f1a641924215091122bb) Thanks [@kevinzunigacuellar](https://github.com/kevinzunigacuellar)! - Respect the `trailingSlash` and `build.format` Astro options when creating Starlight navigation links. + + ⚠️ **Potentially breaking change:** + This change will cause small changes in link formatting for most sites. + These are unlikely to break anything, but if you care about link formatting, you may want to change some Astro settings. + + If you want to preserve Starlight’s previous behavior, set `trailingSlash: 'always'` in your `astro.config.mjs`: + + ```js + import { defineConfig } from 'astro/config'; + import starlight from '@astrojs/starlight'; + + export default defineConfig({ + trailingSlash: 'always', + integrations: [ + starlight({ + // ... + }), + ], + }); + ``` + +- [#742](https://github.com/withastro/starlight/pull/742) [`c6a4bcb`](https://github.com/withastro/starlight/commit/c6a4bcb7982c54c513f20c96a9b2aaf9ac09094b) Thanks [@hippotastic](https://github.com/hippotastic)! - Adds Expressive Code as Starlight’s default code block renderer + + ⚠️ **Potentially breaking change:** + This addition changes how Markdown code blocks are rendered. By default, Starlight will now use [Expressive Code](https://github.com/expressive-code/expressive-code/tree/main/packages/astro-expressive-code). + If you were already customizing how code blocks are rendered and don't want to use the [features provided by Expressive Code](https://starlight.astro.build/guides/authoring-content/#expressive-code-features), you can preserve the previous behavior by setting the new config option `expressiveCode` to `false`. + + If you had previously added Expressive Code manually to your Starlight project, you can now remove the manual set-up in `astro.config.mjs`: + + - Move your configuration to Starlight’s new `expressiveCode` option. + - Remove the `astro-expressive-code` integration. + + For example: + + ```diff + import starlight from '@astrojs/starlight'; + import { defineConfig } from 'astro/config'; + - import expressiveCode from 'astro-expressive-code'; + + export default defineConfig({ + integrations: [ + - expressiveCode({ + - themes: ['rose-pine'], + - }), + starlight({ + title: 'My docs', + + expressiveCode: { + + themes: ['rose-pine'], + + }, + }), + ], + }); + ``` + + Note that the built-in Starlight version of Expressive Code sets some opinionated defaults that are different from the `astro-expressive-code` defaults. You may need to set some `styleOverrides` if you wish to keep styles exactly the same. + +- [#517](https://github.com/withastro/starlight/pull/517) [`5b549cb`](https://github.com/withastro/starlight/commit/5b549cb634f51d28bf9a7f92ad0d82c1671e788a) Thanks [@liruifengv](https://github.com/liruifengv)! - Add i18n support for default aside labels + +### Patch Changes + +- [#1088](https://github.com/withastro/starlight/pull/1088) [`4fe5537`](https://github.com/withastro/starlight/commit/4fe553749a6708fdb119b12a2dbc6b10a980bde1) Thanks [@Lootjs](https://github.com/Lootjs)! - i18n(ru): added Russian aside labels translation + +- [#1083](https://github.com/withastro/starlight/pull/1083) [`e03a653`](https://github.com/withastro/starlight/commit/e03a65313365b7dbe6095727b28b4e639c446f68) Thanks [@at-the-vr](https://github.com/at-the-vr)! - i18n(hi): Add Hindi language support + +- [#1075](https://github.com/withastro/starlight/pull/1075) [`2f2adf2`](https://github.com/withastro/starlight/commit/2f2adf29f2a13d5ff0f1577207210745a5ae7405) Thanks [@russbiggs](https://github.com/russbiggs)! - Add Slack social link icon + +- [#1065](https://github.com/withastro/starlight/pull/1065) [`2d72ed6`](https://github.com/withastro/starlight/commit/2d72ed67c666b26eae44649e70aecef3db815d19) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Ignore search keyboard shortcuts for elements with contents that are editable + +- [#1081](https://github.com/withastro/starlight/pull/1081) [`f27f781`](https://github.com/withastro/starlight/commit/f27f781556d37e73d0b1d902de745b67f8e4f24d) Thanks [@farisphp](https://github.com/farisphp)! - i18n(id): Add Indonesian aside labels translation + +- [#1082](https://github.com/withastro/starlight/pull/1082) [`ce27486`](https://github.com/withastro/starlight/commit/ce27486fabd3884ed4bca9372ebd72a0597ab765) Thanks [@bogdaaamn](https://github.com/bogdaaamn)! - i18n(ro): Add Romanian UI translations + ## 0.12.1 ### Patch Changes @@ -293,16 +370,16 @@ ```css :root { - --sl-hue-accent: 234; - --sl-color-accent-low: hsl(var(--sl-hue-accent), 54%, 20%); - --sl-color-accent: hsl(var(--sl-hue-accent), 100%, 60%); - --sl-color-accent-high: hsl(var(--sl-hue-accent), 100%, 87%); + --sl-hue-accent: 234; + --sl-color-accent-low: hsl(var(--sl-hue-accent), 54%, 20%); + --sl-color-accent: hsl(var(--sl-hue-accent), 100%, 60%); + --sl-color-accent-high: hsl(var(--sl-hue-accent), 100%, 87%); } :root[data-theme='light'] { - --sl-color-accent-high: hsl(var(--sl-hue-accent), 80%, 30%); - --sl-color-accent: hsl(var(--sl-hue-accent), 90%, 60%); - --sl-color-accent-low: hsl(var(--sl-hue-accent), 88%, 90%); + --sl-color-accent-high: hsl(var(--sl-hue-accent), 80%, 30%); + --sl-color-accent: hsl(var(--sl-hue-accent), 90%, 60%); + --sl-color-accent-low: hsl(var(--sl-hue-accent), 88%, 90%); } ``` @@ -681,8 +758,8 @@ ```json { - "search.label": "Suchen", - "search.shortcutLabel": "(Drücke / zum Suchen)" + "search.label": "Suchen", + "search.shortcutLabel": "(Drücke / zum Suchen)" } ``` diff --git a/packages/starlight/package.json b/packages/starlight/package.json index 4ad3c200..e488bee7 100644 --- a/packages/starlight/package.json +++ b/packages/starlight/package.json @@ -1,6 +1,6 @@ { "name": "@astrojs/starlight", - "version": "0.12.1", + "version": "0.13.0", "description": "Build beautiful, high-performance documentation websites with Astro", "scripts": { "test": "vitest", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b712ee18..ff742fa2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -103,7 +103,7 @@ importers: examples/basics: dependencies: '@astrojs/starlight': - specifier: ^0.12.1 + specifier: ^0.13.0 version: link:../../packages/starlight astro: specifier: ^3.2.3 @@ -115,7 +115,7 @@ importers: examples/tailwind: dependencies: '@astrojs/starlight': - specifier: ^0.12.1 + specifier: ^0.13.0 version: link:../../packages/starlight '@astrojs/starlight-tailwind': specifier: ^2.0.1 -- cgit