Skip to content

Commit b382ac4

Browse files
[Docs Site] Bump @astrojs/starlight from 0.34.1 to 0.34.3 (#22514)
* [Docs Site] Bump @astrojs/starlight from 0.34.1 to 0.34.3 Bumps [@astrojs/starlight](https://github.com/withastro/starlight/tree/HEAD/packages/starlight) from 0.34.1 to 0.34.3. - [Release notes](https://github.com/withastro/starlight/releases) - [Changelog](https://github.com/withastro/starlight/blob/main/packages/starlight/CHANGELOG.md) - [Commits](https://github.com/withastro/starlight/commits/@astrojs/[email protected]/packages/starlight) --- updated-dependencies: - dependency-name: "@astrojs/starlight" dependency-version: 0.34.3 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * update patch --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Kian Newman-Hazel <[email protected]>
1 parent 97542f9 commit b382ac4

File tree

4 files changed

+54
-19
lines changed

4 files changed

+54
-19
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"@astrojs/react": "4.2.5",
3333
"@astrojs/rss": "4.0.11",
3434
"@astrojs/sitemap": "3.4.0",
35-
"@astrojs/starlight": "0.34.1",
35+
"@astrojs/starlight": "0.34.3",
3636
"@astrojs/starlight-docsearch": "0.6.0",
3737
"@astrojs/starlight-tailwind": "4.0.1",
3838
"@cloudflare/vitest-pool-workers": "0.8.30",

patches/@astrojs+starlight+0.34.1.patch

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
diff --git a/node_modules/@astrojs/starlight/components/SidebarSublist.astro b/node_modules/@astrojs/starlight/components/SidebarSublist.astro
2-
index a027f56..7e372d7 100644
2+
index a027f56..639be81 100644
33
--- a/node_modules/@astrojs/starlight/components/SidebarSublist.astro
44
+++ b/node_modules/@astrojs/starlight/components/SidebarSublist.astro
55
@@ -4,6 +4,7 @@ import type { SidebarEntry } from '../utils/routing/types';
66
import Icon from '../user-components/Icon.astro';
77
import Badge from '../user-components/Badge.astro';
88
import SidebarRestorePoint from './SidebarRestorePoint.astro';
9-
+import SidebarIcon from "~/components/SidebarIcon.astro"
9+
+import SidebarIcon from "~/components/SidebarIcon.astro";
1010

1111
interface Props {
1212
sublist: SidebarEntry[];
@@ -45,15 +45,3 @@ index 6d173df..61eed80 100644
4545
{label}
4646
</a>
4747
</li>
48-
diff --git a/node_modules/@astrojs/starlight/utils/git.ts b/node_modules/@astrojs/starlight/utils/git.ts
49-
index 1536fac..94876b1 100644
50-
--- a/node_modules/@astrojs/starlight/utils/git.ts
51-
+++ b/node_modules/@astrojs/starlight/utils/git.ts
52-
@@ -72,6 +72,7 @@ export function getAllNewestCommitDate(rootPath: string, docsPath: string): [str
53-
{
54-
cwd: repoRoot,
55-
encoding: 'utf-8',
56-
+ maxBuffer: 10 * 1024 * 1024,
57-
}
58-
);
59-
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
diff --git a/node_modules/@astrojs/starlight/components/SidebarSublist.astro b/node_modules/@astrojs/starlight/components/SidebarSublist.astro
2+
index a027f56..639be81 100644
3+
--- a/node_modules/@astrojs/starlight/components/SidebarSublist.astro
4+
+++ b/node_modules/@astrojs/starlight/components/SidebarSublist.astro
5+
@@ -4,6 +4,7 @@ import type { SidebarEntry } from '../utils/routing/types';
6+
import Icon from '../user-components/Icon.astro';
7+
import Badge from '../user-components/Badge.astro';
8+
import SidebarRestorePoint from './SidebarRestorePoint.astro';
9+
+import SidebarIcon from "~/components/SidebarIcon.astro";
10+
11+
interface Props {
12+
sublist: SidebarEntry[];
13+
@@ -24,7 +25,7 @@ const { sublist, nested } = Astro.props;
14+
class:list={[{ large: !nested }, entry.attrs.class]}
15+
{...entry.attrs}
16+
>
17+
- <span>{entry.label}</span>
18+
+ <span>{entry.icon && <SidebarIcon {...entry.icon} />}{entry.label}</span>
19+
{entry.badge && (
20+
<Badge
21+
variant={entry.badge.variant}
22+
diff --git a/node_modules/@astrojs/starlight/user-components/Tabs.astro b/node_modules/@astrojs/starlight/user-components/Tabs.astro
23+
index 6d173df..61eed80 100644
24+
--- a/node_modules/@astrojs/starlight/user-components/Tabs.astro
25+
+++ b/node_modules/@astrojs/starlight/user-components/Tabs.astro
26+
@@ -3,10 +3,11 @@ import Icon from './Icon.astro';
27+
import { processPanels } from './rehype-tabs';
28+
29+
interface Props {
30+
+ IconComponent?: typeof Icon;
31+
syncKey?: string;
32+
}
33+
34+
-const { syncKey } = Astro.props;
35+
+const { syncKey, IconComponent = Icon } = Astro.props;
36+
const panelHtml = await Astro.slots.render('default');
37+
const { html, panels } = processPanels(panelHtml);
38+
39+
@@ -84,7 +85,7 @@ if (isSynced) {
40+
aria-selected={idx === 0 ? 'true' : 'false'}
41+
tabindex={idx !== 0 ? -1 : 0}
42+
>
43+
- {icon && <Icon name={icon} />}
44+
+ {icon && <IconComponent name={icon} />}
45+
{label}
46+
</a>
47+
</li>

0 commit comments

Comments
 (0)