From 90d1f0f6159431644607bb4dd0e4807ad26c51e2 Mon Sep 17 00:00:00 2001 From: bholmesdev Date: Mon, 15 Jan 2024 08:34:28 -0500 Subject: [PATCH] fix(docs): navbar --- www/astro.config.mjs | 30 +++++++++++++++++++++++------- www/src/content/docs/index.md | 8 ++++---- 2 files changed, 27 insertions(+), 11 deletions(-) diff --git a/www/astro.config.mjs b/www/astro.config.mjs index fcac9b2..75de091 100644 --- a/www/astro.config.mjs +++ b/www/astro.config.mjs @@ -1,18 +1,34 @@ -import { defineConfig } from 'astro/config'; -import starlight from '@astrojs/starlight'; +import { defineConfig } from "astro/config"; +import starlight from "@astrojs/starlight"; export default defineConfig({ integrations: [ starlight({ - title: 'Simple Stack 🌱', + title: "Simple Stack 🌱", social: { - github: 'https://github.com/bholmesdev/simple-stack', - discord: 'https://wtw.dev/chat', + github: "https://github.com/bholmesdev/simple-stack", + discord: "https://wtw.dev/chat", }, sidebar: [ { - label: 'Packages', - autogenerate: { directory: 'packages' }, + label: "🧘‍♂️ Form", + link: "/form", + }, + { + label: "🔎 Scope", + link: "/scope", + }, + { + label: "🌊 Stream", + link: "/stream", + }, + { + label: "⏳ Partial", + link: "/partial", + badge: { + text: "WIP", + variant: "caution", + }, }, ], }), diff --git a/www/src/content/docs/index.md b/www/src/content/docs/index.md index dd64c91..10cf35f 100644 --- a/www/src/content/docs/index.md +++ b/www/src/content/docs/index.md @@ -15,10 +15,10 @@ Simple stack is a suite of tools built for [Astro](https://astro.build) to simpl Simple stack offers a growing collection of packages: -- **[🧘‍♂️ Simple form](/packages/form):** A full stack solution to validate forms with your client framework of choice. -- **[🔎 Simple scope](/packages/scope):** Get a scoped ID for any file you're in. Perfect for form label IDs and query selectors. -- **[🌊 Simple stream](/packages/stream):** Suspend Astro components with fallback content. -- **[⏳ WIP: Simple partial](/packages/partial):** Re-render just the parts that change in your Astro app. +- **[🧘‍♂️ Simple form](/form):** A full stack solution to validate forms with your client framework of choice. +- **[🔎 Simple scope](/scope):** Get a scoped ID for any file you're in. Perfect for form label IDs and query selectors. +- **[🌊 Simple stream](/stream):** Suspend Astro components with fallback content. +- **[⏳ WIP: Simple partial](/partial):** Re-render just the parts that change in your Astro app. ## Get involved