- New splash landing page at / with hero SVG, feature cards, use-case scenarios, and quick install section - Replace Caddyfile redirect with direct index.mdx serving - Header social icons: git→Gitea source, python→PyPI (was GitHub→PyPI) - Rewrite fishing-trip, smartpot, and visualization guides as conversation-style walkthroughs with tool calls behind tabs - New beach activities guide: snorkeling, tide pooling, beachcombing, kayak/paddleboard timing - Make all examples LLM-agnostic (MCP server works with any client) - Add CSS for splash page layout and conversation blockquote styling
68 lines
1.7 KiB
JavaScript
68 lines
1.7 KiB
JavaScript
import { defineConfig } from "astro/config";
|
|
import starlight from "@astrojs/starlight";
|
|
|
|
const domain = process.env.DOMAIN || "localhost:4321";
|
|
const protocol = domain.startsWith("localhost") ? "http" : "https";
|
|
|
|
export default defineConfig({
|
|
site: `${protocol}://${domain}`,
|
|
telemetry: false,
|
|
devToolbar: { enabled: false },
|
|
integrations: [
|
|
starlight({
|
|
title: "mcnoaa-tides",
|
|
description:
|
|
"FastMCP server for NOAA CO-OPS tide predictions, water levels, and marine conditions.",
|
|
customCss: [
|
|
"@fontsource/inter/400.css",
|
|
"@fontsource/inter/600.css",
|
|
"@fontsource/jetbrains-mono/400.css",
|
|
"./src/styles/custom.css",
|
|
],
|
|
social: [
|
|
{
|
|
icon: "seti:git",
|
|
label: "Source",
|
|
href: "https://git.supported.systems/MCP/mcnoaa-tides",
|
|
},
|
|
{
|
|
icon: "seti:python",
|
|
label: "PyPI",
|
|
href: "https://pypi.org/project/mcnoaa-tides/",
|
|
},
|
|
],
|
|
sidebar: [
|
|
{
|
|
label: "Getting Started",
|
|
autogenerate: { directory: "getting-started" },
|
|
},
|
|
{
|
|
label: "How-To Guides",
|
|
autogenerate: { directory: "how-to" },
|
|
},
|
|
{
|
|
label: "Reference",
|
|
autogenerate: { directory: "reference" },
|
|
},
|
|
{
|
|
label: "Understanding",
|
|
autogenerate: { directory: "understanding" },
|
|
},
|
|
],
|
|
}),
|
|
],
|
|
vite: {
|
|
server: {
|
|
host: "0.0.0.0",
|
|
allowedHosts: [domain.split(":")[0]],
|
|
...(process.env.VITE_HMR_HOST && {
|
|
hmr: {
|
|
host: process.env.VITE_HMR_HOST,
|
|
protocol: "wss",
|
|
clientPort: 443,
|
|
},
|
|
}),
|
|
},
|
|
},
|
|
});
|