@astrojs/starlight 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/404.astro CHANGED
@@ -6,7 +6,10 @@ import Page from './layout/Page.astro';
6
6
  import type { StarlightDocsEntry } from './utils/routing';
7
7
  import { useTranslations } from './utils/translations';
8
8
 
9
- const { lang = 'en', dir = 'ltr', locale } = config.defaultLocale || {};
9
+ const { lang = 'en', dir = 'ltr' } = config.defaultLocale || {};
10
+ let locale = config.defaultLocale?.locale;
11
+ if (locale === 'root') locale = undefined;
12
+
10
13
  const entryMeta = { dir, lang, locale };
11
14
  const t = useTranslations(locale);
12
15
 
@@ -34,6 +37,6 @@ const entry = userEntry || fallbackEntry;
34
37
  const { Content, headings } = await entry.render();
35
38
  ---
36
39
 
37
- <Page {headings} entry={entry} slug={entry.slug} {...entryMeta} {entryMeta}>
40
+ <Page {headings} entry={entry} id={entry.id} slug={entry.slug} {...entryMeta} {entryMeta}>
38
41
  <Content />
39
42
  </Page>
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @astrojs/starlight
2
2
 
3
+ ## 0.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#300](https://github.com/withastro/starlight/pull/300) [`377a25d`](https://github.com/withastro/starlight/commit/377a25dc4c51c060e751aeba4d3f946a41de907a) Thanks [@cbontems](https://github.com/cbontems)! - Fix broken link on 404 page when `defaultLocale: 'root'` is set in `astro.config.mjs`
8
+
9
+ - [#289](https://github.com/withastro/starlight/pull/289) [`dffca46`](https://github.com/withastro/starlight/commit/dffca461633940847e9177913053885c5e8b5f29) Thanks [@RyanRBrown](https://github.com/RyanRBrown)! - Fix saturation of purple text in light theme
10
+
11
+ - [#301](https://github.com/withastro/starlight/pull/301) [`d47639d`](https://github.com/withastro/starlight/commit/d47639d50b53fa691c1d9b0f30f82ebf7f6ddf7e) Thanks [@delucis](https://github.com/delucis)! - Enable inline stylesheets for Astro versions ≥2.6.0
12
+
3
13
  ## 0.4.0
4
14
 
5
15
  ### Minor Changes
package/index.ts CHANGED
@@ -55,6 +55,7 @@ export default function StarlightIntegration(
55
55
  ? {}
56
56
  : { theme: 'css-variables' },
57
57
  },
58
+ build: { inlineStylesheets: 'auto' },
58
59
  experimental: { assets: true, inlineStylesheets: 'auto' },
59
60
  };
60
61
  updateConfig(newConfig);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrojs/starlight",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Build beautiful, high-performance documentation websites with Astro",
5
5
  "keywords": [
6
6
  "docs",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^18.15.11",
34
- "astro": "^2.5.0"
34
+ "astro": "^2.7.3"
35
35
  },
36
36
  "dependencies": {
37
37
  "@astrojs/mdx": "^0.19.7",
package/style/props.css CHANGED
@@ -135,7 +135,7 @@
135
135
  --sl-color-blue-high: hsl(var(--sl-hue-blue), 80%, 30%);
136
136
  --sl-color-blue: hsl(var(--sl-hue-blue), 90%, 60%);
137
137
  --sl-color-blue-low: hsl(var(--sl-hue-blue), 88%, 90%);
138
- --sl-color-purple-high: hsl(var(--sl-hue-purple), 39%, 30%);
138
+ --sl-color-purple-high: hsl(var(--sl-hue-purple), 90%, 30%);
139
139
  --sl-color-purple: hsl(var(--sl-hue-purple), 90%, 60%);
140
140
  --sl-color-purple-low: hsl(var(--sl-hue-purple), 80%, 90%);
141
141
  --sl-color-red-high: hsl(var(--sl-hue-red), 80%, 30%);