Skip to content

Commit 157153c

Browse files
fix(docs): restore /docs entrypoint and correct docs links
1 parent 65a66c5 commit 157153c

3 files changed

Lines changed: 51 additions & 13 deletions

File tree

astro.config.mjs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,29 @@ export default defineConfig({
2020
{
2121
label: 'Getting Started',
2222
items: [
23-
{ label: 'Introduction', link: '/docs/' },
24-
{ label: 'Installation', link: '/docs/getting-started/installation/' },
25-
{ label: 'Configuration', link: '/docs/getting-started/configuration/' },
23+
{ label: 'Introduction', link: '/' },
24+
{ label: 'Installation', link: '/getting-started/installation/' },
25+
{ label: 'Configuration', link: '/getting-started/configuration/' },
2626
],
2727
},
2828
{
2929
label: 'Guides',
3030
items: [
31-
{ label: 'Your First Agent', link: '/docs/guides/first-agent/' },
32-
{ label: 'Customization', link: '/docs/guides/customization/' },
31+
{ label: 'Your First Agent', link: '/guides/first-agent/' },
32+
{ label: 'Customization', link: '/guides/customization/' },
3333
],
3434
},
3535
{
3636
label: 'Reference',
3737
items: [
38-
{ label: 'Scripts', link: '/docs/reference/scripts/' },
39-
{ label: 'Docker', link: '/docs/reference/docker/' },
40-
{ label: 'Environment Variables', link: '/docs/reference/environment/' },
38+
{ label: 'Scripts', link: '/reference/scripts/' },
39+
{ label: 'Docker', link: '/reference/docker/' },
40+
{ label: 'Environment Variables', link: '/reference/environment/' },
4141
],
4242
},
4343
{
4444
label: 'Contributing',
45-
link: '/docs/contributing/',
45+
link: '/contributing/',
4646
},
4747
],
4848
head: [

src/content/docs/index.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ openclaw onboard
4040

4141
<CardGrid>
4242
<Card title="Installation" icon="rocket">
43-
[Detailed installation guide](/docs/getting-started/installation/)
43+
[Detailed installation guide](/getting-started/installation/)
4444
</Card>
4545
<Card title="Configuration" icon="setting">
46-
[Configure your environment](/docs/getting-started/configuration/)
46+
[Configure your environment](/getting-started/configuration/)
4747
</Card>
4848
<Card title="First Agent" icon="pencil">
49-
[Create your first agent](/docs/guides/first-agent/)
49+
[Create your first agent](/guides/first-agent/)
5050
</Card>
5151
<Card title="Reference" icon="open-book">
52-
[Scripts and Docker reference](/docs/reference/scripts/)
52+
[Scripts and Docker reference](/reference/scripts/)
5353
</Card>
5454
</CardGrid>

src/pages/docs.astro

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
import Layout from '../layouts/Layout.astro';
3+
---
4+
5+
<Layout title="ClawHalla Docs">
6+
<main class="min-h-screen bg-dark text-gray-200 px-4 py-16">
7+
<section class="max-w-4xl mx-auto">
8+
<h1 class="font-heading text-4xl md:text-5xl font-bold mb-4">
9+
<span class="text-primary">ClawHalla</span> Documentation
10+
</h1>
11+
<p class="text-gray-400 mb-10">
12+
Start here, then continue to the full Starlight sections.
13+
</p>
14+
15+
<div class="grid md:grid-cols-2 gap-4">
16+
<a href="/getting-started/installation/" class="p-5 rounded-lg border border-dark-200 hover:border-primary/40 transition-colors">
17+
<h2 class="font-heading text-xl text-primary mb-1">Installation</h2>
18+
<p class="text-gray-400 text-sm">Install ClawHalla and run your first onboarding.</p>
19+
</a>
20+
21+
<a href="/getting-started/configuration/" class="p-5 rounded-lg border border-dark-200 hover:border-primary/40 transition-colors">
22+
<h2 class="font-heading text-xl text-primary mb-1">Configuration</h2>
23+
<p class="text-gray-400 text-sm">Set environment variables and onboarding preferences.</p>
24+
</a>
25+
26+
<a href="/guides/first-agent/" class="p-5 rounded-lg border border-dark-200 hover:border-primary/40 transition-colors">
27+
<h2 class="font-heading text-xl text-primary mb-1">Your First Agent</h2>
28+
<p class="text-gray-400 text-sm">Bring your first OpenClaw agent online.</p>
29+
</a>
30+
31+
<a href="/reference/scripts/" class="p-5 rounded-lg border border-dark-200 hover:border-primary/40 transition-colors">
32+
<h2 class="font-heading text-xl text-primary mb-1">Reference</h2>
33+
<p class="text-gray-400 text-sm">Scripts, Docker, and environment variable reference.</p>
34+
</a>
35+
</div>
36+
</section>
37+
</main>
38+
</Layout>

0 commit comments

Comments
 (0)