From b7f82a4085eed463f8ca1402dcb68ee60f494e71 Mon Sep 17 00:00:00 2001 From: HiDeoo <494699+HiDeoo@users.noreply.github.com> Date: Mon, 29 Jan 2024 10:48:10 +0100 Subject: [PATCH 1/3] docs: fix `disable404Route` description (#1431) --- docs/src/content/docs/ko/reference/configuration.mdx | 2 +- docs/src/content/docs/reference/configuration.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/content/docs/ko/reference/configuration.mdx b/docs/src/content/docs/ko/reference/configuration.mdx index ef6251bb71f..59784c34c8a 100644 --- a/docs/src/content/docs/ko/reference/configuration.mdx +++ b/docs/src/content/docs/ko/reference/configuration.mdx @@ -522,7 +522,7 @@ starlight({ **타입:** `boolean` **기본값:** `false` -Starlight의 기본 [404 페이지](https://docs.astro.build/ko/core-concepts/astro-pages/#사용자-정의-404-오류-페이지) 삽입을 비활성화합니다. 프로젝트에서 사용자 정의 `src/pages/404.astro` 경로를 사용하려면 이 옵션을 `false`로 설정하세요. +Starlight의 기본 [404 페이지](https://docs.astro.build/ko/core-concepts/astro-pages/#사용자-정의-404-오류-페이지) 삽입을 비활성화합니다. 프로젝트에서 사용자 정의 `src/pages/404.astro` 경로를 사용하려면 이 옵션을 `true`로 설정하세요. ### `components` diff --git a/docs/src/content/docs/reference/configuration.mdx b/docs/src/content/docs/reference/configuration.mdx index 22ad68886e0..5b34b402593 100644 --- a/docs/src/content/docs/reference/configuration.mdx +++ b/docs/src/content/docs/reference/configuration.mdx @@ -519,7 +519,7 @@ For example, this page is titled “Configuration Reference” and this site is **type:** `boolean` **default:** `false` -Disables injecting Starlight's default [404 page](https://docs.astro.build/en/core-concepts/astro-pages/#custom-404-error-page). To use a custom `src/pages/404.astro` route in your project, set this option to `false`. +Disables injecting Starlight's default [404 page](https://docs.astro.build/en/core-concepts/astro-pages/#custom-404-error-page). To use a custom `src/pages/404.astro` route in your project, set this option to `true`. ### `components` From 275f87fd7fc676b9ab323354078c06894e0832c7 Mon Sep 17 00:00:00 2001 From: Abdelhalim Jean <22223193+abdelhalimjean@users.noreply.github.com> Date: Mon, 29 Jan 2024 10:03:41 +0000 Subject: [PATCH 2/3] fix : font not rendered properly on firefox #1419 (#1420) Co-authored-by: Chris Swithinbank --- .changeset/cuddly-lions-warn.md | 5 +++++ packages/starlight/style/props.css | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/cuddly-lions-warn.md diff --git a/.changeset/cuddly-lions-warn.md b/.changeset/cuddly-lions-warn.md new file mode 100644 index 00000000000..f4165bcf71a --- /dev/null +++ b/.changeset/cuddly-lions-warn.md @@ -0,0 +1,5 @@ +--- +"@astrojs/starlight": patch +--- + +Fix rare `font-family` issue if users have a font installed with a name of `""` diff --git a/packages/starlight/style/props.css b/packages/starlight/style/props.css index 421abc17364..be9bbb9d74a 100644 --- a/packages/starlight/style/props.css +++ b/packages/starlight/style/props.css @@ -87,8 +87,8 @@ 'Segoe UI Symbol', 'Noto Color Emoji'; --sl-font-system-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; - --__sl-font: var(--sl-font, ''), var(--sl-font-system); - --__sl-font-mono: var(--sl-font-mono, ''), var(--sl-font-system-mono); + --__sl-font: var(--sl-font, var(--sl-font-system)), var(--sl-font-system); + --__sl-font-mono: var(--sl-font-mono, var(--sl-font-system-mono)), var(--sl-font-system-mono); /** Key layout values */ --sl-nav-height: 3.5rem; From a0af7cc696da987a76edab96cdd2329779e87724 Mon Sep 17 00:00:00 2001 From: Kevin Zuniga Cuellar <46791833+kevinzunigacuellar@users.noreply.github.com> Date: Mon, 29 Jan 2024 06:07:30 -0500 Subject: [PATCH 3/3] extend config options to pagefind (#1365) Co-authored-by: Chris Swithinbank --- .changeset/silver-dots-guess.md | 5 +++++ package.json | 2 +- packages/starlight/components/Search.astro | 18 +++++++++++++++++- 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 .changeset/silver-dots-guess.md diff --git a/.changeset/silver-dots-guess.md b/.changeset/silver-dots-guess.md new file mode 100644 index 00000000000..f5ea3506687 --- /dev/null +++ b/.changeset/silver-dots-guess.md @@ -0,0 +1,5 @@ +--- +'@astrojs/starlight': patch +--- + +Correctly format Pagefind search result links when `trailingSlash: 'never'` is used diff --git a/package.json b/package.json index 1d7e1870b86..40eee078c13 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ { "name": "/_astro/*.js", "path": "examples/basics/dist/_astro/*.js", - "limit": "22 kB" + "limit": "22.5 kB" }, { "name": "/_astro/*.css", diff --git a/packages/starlight/components/Search.astro b/packages/starlight/components/Search.astro index 2b5f3ac495e..ec53fc3e8b8 100644 --- a/packages/starlight/components/Search.astro +++ b/packages/starlight/components/Search.astro @@ -1,6 +1,7 @@ --- import '@pagefind/default-ui/css/ui.css'; import Icon from '../user-components/Icon.astro'; +import project from 'virtual:starlight/project-context'; import type { Props } from '../props'; const { labels } = Astro.props; @@ -15,7 +16,10 @@ const pagefindTranslations = { }; --- - +