Skip to content

Commit fcaf5cd

Browse files
committed
fix: correct base path handling for sidebar and hero links
1 parent ea13a04 commit fcaf5cd

2 files changed

Lines changed: 24 additions & 26 deletions

File tree

astro.config.mjs

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,45 +16,45 @@ export default defineConfig({
1616
{
1717
label: 'Getting Started',
1818
items: [
19-
{ label: 'Installation', slug: 'getting-started/installation' },
20-
{ label: 'First Session', slug: 'getting-started/first-session' },
21-
{ label: 'Key Concepts', slug: 'getting-started/key-concepts' },
22-
{ label: 'Quick Wins', slug: 'getting-started/quick-wins' },
19+
{ label: 'Installation', link: '/getting-started/installation/' },
20+
{ label: 'First Session', link: '/getting-started/first-session/' },
21+
{ label: 'Key Concepts', link: '/getting-started/key-concepts/' },
22+
{ label: 'Quick Wins', link: '/getting-started/quick-wins/' },
2323
],
2424
},
2525
{
2626
label: 'Guides',
2727
items: [
28-
{ label: 'Writing CLAUDE.md', slug: 'guides/claude-md' },
29-
{ label: 'Workflow Patterns', slug: 'guides/workflow-patterns' },
30-
{ label: 'Context Management', slug: 'guides/context-management' },
31-
{ label: 'Effective Prompting', slug: 'guides/effective-prompting' },
32-
{ label: 'Agentic Engineering', slug: 'guides/agentic-engineering' },
28+
{ label: 'Writing CLAUDE.md', link: '/guides/claude-md/' },
29+
{ label: 'Workflow Patterns', link: '/guides/workflow-patterns/' },
30+
{ label: 'Context Management', link: '/guides/context-management/' },
31+
{ label: 'Effective Prompting', link: '/guides/effective-prompting/' },
32+
{ label: 'Agentic Engineering', link: '/guides/agentic-engineering/' },
3333
],
3434
},
3535
{
3636
label: 'Skills',
3737
items: [
38-
{ label: 'Overview', slug: 'skills/overview' },
39-
{ label: 'Using Skills', slug: 'skills/using-skills' },
40-
{ label: 'Creating Skills', slug: 'skills/creating-skills' },
41-
{ label: 'Distributing Skills', slug: 'skills/distributing-skills' },
38+
{ label: 'Overview', link: '/skills/overview/' },
39+
{ label: 'Using Skills', link: '/skills/using-skills/' },
40+
{ label: 'Creating Skills', link: '/skills/creating-skills/' },
41+
{ label: 'Distributing Skills', link: '/skills/distributing-skills/' },
4242
],
4343
},
4444
{
4545
label: 'Agents',
4646
items: [
47-
{ label: 'Overview', slug: 'agents/overview' },
48-
{ label: 'Creating Agents', slug: 'agents/creating-agents' },
49-
{ label: 'Agent Patterns', slug: 'agents/patterns' },
47+
{ label: 'Overview', link: '/agents/overview/' },
48+
{ label: 'Creating Agents', link: '/agents/creating-agents/' },
49+
{ label: 'Agent Patterns', link: '/agents/patterns/' },
5050
],
5151
},
5252
{
5353
label: 'Reference',
5454
items: [
55-
{ label: 'Glossary', slug: 'reference/glossary' },
56-
{ label: 'Links & Resources', slug: 'reference/links' },
57-
{ label: 'Common Pitfalls', slug: 'reference/common-pitfalls' },
55+
{ label: 'Glossary', link: '/reference/glossary/' },
56+
{ label: 'Links & Resources', link: '/reference/links/' },
57+
{ label: 'Common Pitfalls', link: '/reference/common-pitfalls/' },
5858
],
5959
},
6060
],

docs/index.mdx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ hero:
66
tagline: Skills, agents, and guides for agentic engineering. Get your team productive with Claude Code — fast.
77
actions:
88
- text: Get Started
9-
link: /getting-started/installation/
9+
link: /Claude-Code/getting-started/installation/
1010
icon: right-arrow
1111
variant: primary
1212
- text: View on GitHub
@@ -17,27 +17,25 @@ hero:
1717

1818
import { LinkCard, CardGrid } from '@astrojs/starlight/components';
1919

20-
export const base = import.meta.env.BASE_URL;
21-
2220
<CardGrid>
2321
<LinkCard
2422
title="Getting Started"
25-
href={`${base}getting-started/installation/`}
23+
href="/Claude-Code/getting-started/installation/"
2624
description="Install Claude Code, run your first session, and get productive in 10 minutes."
2725
/>
2826
<LinkCard
2927
title="Guides"
30-
href={`${base}guides/claude-md/`}
28+
href="/Claude-Code/guides/claude-md/"
3129
description="Write effective CLAUDE.md files, master workflow patterns, and level up to agentic engineering."
3230
/>
3331
<LinkCard
3432
title="Skills"
35-
href={`${base}skills/overview/`}
33+
href="/Claude-Code/skills/overview/"
3634
description="Install, create, and distribute reusable knowledge packages."
3735
/>
3836
<LinkCard
3937
title="Agents"
40-
href={`${base}agents/overview/`}
38+
href="/Claude-Code/agents/overview/"
4139
description="Build autonomous subprocesses for code review, testing, and more."
4240
/>
4341
</CardGrid>

0 commit comments

Comments
 (0)