mcltspice/docs/astro.config.mjs
Ryan Malloy f2c18982ae Add Starlight docs site with full tool reference
Astro/Starlight documentation at docs/ with 21 pages:
- Getting started (prerequisites, Claude Code setup, first simulation)
- Tutorials (filter design, Monte Carlo yield)
- Reference (all 37 tools, 5 resources, 7 prompts)
- Concepts (LTspice on Linux, simulation types)

Docker infrastructure with dev/prod compose overlays, Caddy
reverse proxy for mcltspice.warehack.ing, and Makefile targets.

Includes patch for Starlight 0.37 head schema default bug.
2026-02-13 01:06:17 -07:00

81 lines
2.8 KiB
JavaScript

import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import tailwindcss from '@tailwindcss/vite';
export default defineConfig({
site: 'https://mcltspice.warehack.ing',
telemetry: false,
devToolbar: { enabled: false },
integrations: [
starlight({
title: 'mcltspice',
tagline: 'LTspice circuit simulation via MCP',
social: [
{ icon: 'external', label: 'Gitea', href: 'https://git.supported.systems/MCP/mcltspice' },
{ icon: 'external', label: 'PyPI', href: 'https://pypi.org/project/mcltspice/' },
],
editLink: {
baseUrl: 'https://git.supported.systems/MCP/mcltspice/_edit/main/docs/',
},
customCss: ['./src/styles/custom.css'],
sidebar: [
{
label: 'Getting Started',
items: [
{ label: 'Overview', slug: 'getting-started' },
{ label: 'Prerequisites', slug: 'getting-started/prerequisites' },
{ label: 'Claude Code Setup', slug: 'getting-started/claude-code' },
{ label: 'First Simulation', slug: 'getting-started/first-simulation' },
],
},
{
label: 'Tutorials',
badge: { text: 'Learn', variant: 'tip' },
items: [
{ label: 'Overview', slug: 'tutorials' },
{ label: 'Design a Filter', slug: 'tutorials/design-a-filter' },
{ label: 'Monte Carlo Yield', slug: 'tutorials/monte-carlo-yield' },
],
},
{
label: 'Reference',
collapsed: false,
items: [
{ label: 'Overview', slug: 'reference' },
{ label: 'Simulation', slug: 'reference/simulation' },
{ label: 'Waveform', slug: 'reference/waveform' },
{ label: 'Signal Analysis', slug: 'reference/signal-analysis' },
{ label: 'Noise', slug: 'reference/noise' },
{ label: 'Stability & Power', slug: 'reference/stability-power' },
{ label: 'Schematic & Netlist', slug: 'reference/schematic-netlist' },
{ label: 'Library & Templates', slug: 'reference/library-templates' },
{ label: 'Resources', slug: 'reference/resources' },
{ label: 'Prompts', slug: 'reference/prompts' },
],
},
{
label: 'Concepts',
collapsed: true,
items: [
{ label: 'LTspice on Linux', slug: 'concepts/ltspice-on-linux' },
{ label: 'Simulation Types', slug: 'concepts/simulation-types' },
],
},
],
}),
],
vite: {
plugins: [tailwindcss()],
server: {
host: '0.0.0.0',
...(process.env.VITE_HMR_HOST && {
hmr: {
host: process.env.VITE_HMR_HOST,
protocol: 'wss',
clientPort: 443,
},
}),
},
},
});