Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@astrojs/react": "4.2.5",
"@astrojs/rss": "4.0.11",
"@astrojs/sitemap": "3.4.0",
"@astrojs/starlight": "0.34.1",
"@astrojs/starlight": "0.34.3",
"@astrojs/starlight-docsearch": "0.6.0",
"@astrojs/starlight-tailwind": "4.0.1",
"@cloudflare/vitest-pool-workers": "0.8.30",
Expand Down
16 changes: 2 additions & 14 deletions patches/@astrojs+starlight+0.34.1.patch
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
diff --git a/node_modules/@astrojs/starlight/components/SidebarSublist.astro b/node_modules/@astrojs/starlight/components/SidebarSublist.astro
index a027f56..7e372d7 100644
index a027f56..639be81 100644
--- a/node_modules/@astrojs/starlight/components/SidebarSublist.astro
+++ b/node_modules/@astrojs/starlight/components/SidebarSublist.astro
@@ -4,6 +4,7 @@ import type { SidebarEntry } from '../utils/routing/types';
import Icon from '../user-components/Icon.astro';
import Badge from '../user-components/Badge.astro';
import SidebarRestorePoint from './SidebarRestorePoint.astro';
+import SidebarIcon from "~/components/SidebarIcon.astro"
+import SidebarIcon from "~/components/SidebarIcon.astro";

interface Props {
sublist: SidebarEntry[];
Expand Down Expand Up @@ -45,15 +45,3 @@ index 6d173df..61eed80 100644
{label}
</a>
</li>
diff --git a/node_modules/@astrojs/starlight/utils/git.ts b/node_modules/@astrojs/starlight/utils/git.ts
index 1536fac..94876b1 100644
--- a/node_modules/@astrojs/starlight/utils/git.ts
+++ b/node_modules/@astrojs/starlight/utils/git.ts
@@ -72,6 +72,7 @@ export function getAllNewestCommitDate(rootPath: string, docsPath: string): [str
{
cwd: repoRoot,
encoding: 'utf-8',
+ maxBuffer: 10 * 1024 * 1024,
}
);

47 changes: 47 additions & 0 deletions patches/@astrojs+starlight+0.34.3.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
diff --git a/node_modules/@astrojs/starlight/components/SidebarSublist.astro b/node_modules/@astrojs/starlight/components/SidebarSublist.astro
index a027f56..639be81 100644
--- a/node_modules/@astrojs/starlight/components/SidebarSublist.astro
+++ b/node_modules/@astrojs/starlight/components/SidebarSublist.astro
@@ -4,6 +4,7 @@ import type { SidebarEntry } from '../utils/routing/types';
import Icon from '../user-components/Icon.astro';
import Badge from '../user-components/Badge.astro';
import SidebarRestorePoint from './SidebarRestorePoint.astro';
+import SidebarIcon from "~/components/SidebarIcon.astro";

interface Props {
sublist: SidebarEntry[];
@@ -24,7 +25,7 @@ const { sublist, nested } = Astro.props;
class:list={[{ large: !nested }, entry.attrs.class]}
{...entry.attrs}
>
- <span>{entry.label}</span>
+ <span>{entry.icon && <SidebarIcon {...entry.icon} />}{entry.label}</span>
{entry.badge && (
<Badge
variant={entry.badge.variant}
diff --git a/node_modules/@astrojs/starlight/user-components/Tabs.astro b/node_modules/@astrojs/starlight/user-components/Tabs.astro
index 6d173df..61eed80 100644
--- a/node_modules/@astrojs/starlight/user-components/Tabs.astro
+++ b/node_modules/@astrojs/starlight/user-components/Tabs.astro
@@ -3,10 +3,11 @@ import Icon from './Icon.astro';
import { processPanels } from './rehype-tabs';

interface Props {
+ IconComponent?: typeof Icon;
syncKey?: string;
}

-const { syncKey } = Astro.props;
+const { syncKey, IconComponent = Icon } = Astro.props;
const panelHtml = await Astro.slots.render('default');
const { html, panels } = processPanels(panelHtml);

@@ -84,7 +85,7 @@ if (isSynced) {
aria-selected={idx === 0 ? 'true' : 'false'}
tabindex={idx !== 0 ? -1 : 0}
>
- {icon && <Icon name={icon} />}
+ {icon && <IconComponent name={icon} />}
{label}
</a>
</li>