diff --git a/.gitignore b/.gitignore index 5f07a03..f1e160b 100644 --- a/.gitignore +++ b/.gitignore @@ -6,5 +6,5 @@ scripts/probe-output/ # Internal design/research docs — kept locally, not tracked -docs/ +/docs/ .coldstart/ diff --git a/site-astro/src/components/DocsSidebar.astro b/site-astro/src/components/DocsSidebar.astro new file mode 100644 index 0000000..b00f39e --- /dev/null +++ b/site-astro/src/components/DocsSidebar.astro @@ -0,0 +1,68 @@ +--- +interface Props { active: 'getting-started' | 'navigation' | 'notebook' | 'under-the-hood' } +const { active } = Astro.props; + +const groups = [ + { + id: 'getting-started', label: 'Getting started', href: '/docs/', + anchors: [ + { href: '#overview', label: 'Overview' }, + { href: '#install', label: 'Install & setup' }, + { href: '#flow', label: 'The intended flow' }, + ], + }, + { + id: 'navigation', label: 'Navigation', href: '/docs/navigation/', + anchors: [ + { href: '#find', label: 'find', code: true }, + { href: '#gs', label: 'gs', code: true }, + ], + }, + { + id: 'notebook', label: 'Notebook', href: '/docs/notebook/', + anchors: [ + { href: '#notebook', label: 'The notebook, in depth' }, + { href: '#kb-search', label: 'kb search', code: true }, + { href: '#kb-lookup', label: 'kb lookup', code: true }, + { href: '#kb-write', label: 'kb write', code: true }, + { href: '#kb-commit', label: 'kb commit', code: true }, + { href: '#kb-view', label: 'kb view', code: true }, + { href: '#kb-maint', label: 'kb status / lint / repair / render', code: true }, + { href: '#sharing', label: 'Sharing with a team' }, + ], + }, + { + id: 'under-the-hood', label: 'Under the hood', href: '/docs/under-the-hood/', + anchors: [ + { href: '#freshness', label: 'How the index stays fresh' }, + { href: '#lifecycle', label: 'Lifecycle commands' }, + { href: '#mcp', label: 'MCP tools' }, + { href: '#semantics', label: 'Bring your own semantics' }, + { href: '#languages', label: 'Supported languages' }, + ], + }, +]; +--- + + diff --git a/site-astro/src/components/Nav.astro b/site-astro/src/components/Nav.astro index 57dd83e..f0ea25c 100644 --- a/site-astro/src/components/Nav.astro +++ b/site-astro/src/components/Nav.astro @@ -1,7 +1,6 @@ --- interface Props { variant?: 'home' | 'docs' | 'blog' | 'how' } const { variant = 'docs' } = Astro.props; -const installHref = variant === 'home' ? '#install' : '/#install'; ---
+ +