diff --git a/www/astro.config.mjs b/www/astro.config.mjs index 0d7e4c1..8f4e515 100644 --- a/www/astro.config.mjs +++ b/www/astro.config.mjs @@ -2,9 +2,55 @@ import starlight from "@astrojs/starlight"; import { defineConfig } from "astro/config"; export default defineConfig({ + site: "https://simple-stack.dev", integrations: [ starlight({ title: "Simple Stack 🌱", + head: [ + // Open Graph + { + tag: "meta", + attrs: { property: "og:type", content: "website" }, + }, + { + tag: "meta", + attrs: { property: "og:site_name", content: "Simple Stack" }, + }, + { + tag: "meta", + attrs: { property: "og:locale", content: "en_US" }, + }, + // Twitter Card + { + tag: "meta", + attrs: { name: "twitter:card", content: "summary" }, + }, + // JSON-LD: WebSite + Organization + { + tag: "script", + attrs: { type: "application/ld+json" }, + content: JSON.stringify({ + "@context": "https://schema.org", + "@graph": [ + { + "@type": "WebSite", + name: "Simple Stack", + url: "https://simple-stack.dev", + description: + "Lightweight developer tools for Astro, React, and Vite. Includes a reactive store, scoped IDs, and DOM query utilities.", + }, + { + "@type": "Organization", + name: "Simple Stack", + url: "https://simple-stack.dev", + sameAs: [ + "https://github.com/bholmesdev/simple-stack", + ], + }, + ], + }), + }, + ], social: [ { icon: "github", diff --git a/www/public/robots.txt b/www/public/robots.txt new file mode 100644 index 0000000..3214756 --- /dev/null +++ b/www/public/robots.txt @@ -0,0 +1,4 @@ +User-agent: * +Allow: / + +Sitemap: https://simple-stack.dev/sitemap-index.xml diff --git a/www/src/content/docs/form/client.md b/www/src/content/docs/form/client.md index 884c722..da5c377 100644 --- a/www/src/content/docs/form/client.md +++ b/www/src/content/docs/form/client.md @@ -3,6 +3,11 @@ title: Add client validation description: Add client validation to your forms sidebar: order: 3 +head: + - tag: meta + attrs: + name: robots + content: noindex, follow --- :::caution diff --git a/www/src/content/docs/form/index.mdx b/www/src/content/docs/form/index.mdx index 3e1654e..d14d188 100644 --- a/www/src/content/docs/form/index.mdx +++ b/www/src/content/docs/form/index.mdx @@ -4,6 +4,11 @@ description: The simple way to validate forms in your fullstack app. sidebar: label: Get started order: 1 +head: + - tag: meta + attrs: + name: robots + content: noindex, follow --- import { Tabs, TabItem } from '@astrojs/starlight/components'; diff --git a/www/src/content/docs/form/parse.md b/www/src/content/docs/form/parse.md index 35116f9..113c228 100644 --- a/www/src/content/docs/form/parse.md +++ b/www/src/content/docs/form/parse.md @@ -3,6 +3,11 @@ title: Parse form requests description: Validate forms server-side sidebar: order: 2 +head: + - tag: meta + attrs: + name: robots + content: noindex, follow --- :::caution diff --git a/www/src/content/docs/index.mdx b/www/src/content/docs/index.mdx index 1e6d15c..799b08b 100644 --- a/www/src/content/docs/index.mdx +++ b/www/src/content/docs/index.mdx @@ -1,13 +1,13 @@ --- -title: Simple stack 🌱 -description: A suite of tools built for Astro to simplify your workflow. +title: Simple Stack - Lightweight Tools for Astro, React & Vite +description: Simple Stack provides lightweight developer tools including a reactive store with selectors, build-time scoped IDs, and DOM query utilities for Astro components. tableOfContents: false head: - tag: title - content: Simple stack 🌱 + content: Simple Stack - Lightweight Tools for Astro, React & Vite --- -A collection of tools I've built to **make web development simpler.** +Simple Stack is a collection of lightweight developer tools that **make web development simpler.** It includes a reactive store with selector support, a Vite plugin for build-time scoped IDs, and a DOM query library for Astro components. To be honest, there isn't a "story" connecting these packages together (I'm no TanStack). But they follow a common theme: solve a simple use case without too many features. diff --git a/www/src/content/docs/stream.md b/www/src/content/docs/stream.md index 5c734fb..e444b57 100644 --- a/www/src/content/docs/stream.md +++ b/www/src/content/docs/stream.md @@ -1,6 +1,11 @@ --- title: Simple stream 🌊 description: Suspend Astro components with fallback content. Like React Server Components, but Just HTML ™️ +head: + - tag: meta + attrs: + name: robots + content: noindex, follow --- :::caution