mcnanovna-docs/astro.config.mjs
Ryan Malloy 6314313e1f Migrate to warehack.ing deployment convention
Single compose file with profiles, standardized Makefile targets,
.dockerignore for lean builds, production domain mcnanovna.warehack.ing.
2026-03-06 18:19:48 -07:00

92 lines
3.0 KiB
JavaScript

import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
export default defineConfig({
site: 'https://mcnanovna.warehack.ing',
telemetry: false,
devToolbar: { enabled: false },
integrations: [
starlight({
title: 'mcnanovna',
description: 'MCP servers for NanoVNA control and antenna positioner automation',
logo: {
dark: './src/assets/logo-dark.svg',
light: './src/assets/logo-light.svg',
replacesTitle: false,
},
social: {
github: 'https://git.supported.systems/warehack.ing/mcnanovna',
},
sidebar: [
{
label: 'Getting Started',
items: [
{ label: 'Introduction', slug: '' },
{ label: 'Quick Start', slug: 'getting-started/quickstart' },
{ label: 'Installation', slug: 'getting-started/installation' },
],
},
{
label: 'mcnanovna',
items: [
{ label: 'Overview', slug: 'mcnanovna/overview' },
{ label: 'Tool Reference', slug: 'mcnanovna/tools' },
{ label: 'Prompts', slug: 'mcnanovna/prompts' },
{ label: 'Multi-VNA Coordination', slug: 'mcnanovna/multi-vna' },
{ label: 'Web UI', slug: 'mcnanovna/webui' },
],
},
{
label: 'mcpositioner',
items: [
{ label: 'Overview', slug: 'mcpositioner/overview' },
{ label: 'Tool Reference', slug: 'mcpositioner/tools' },
{ label: 'Prompts', slug: 'mcpositioner/prompts' },
],
},
{
label: 'Hardware',
items: [
{ label: 'Positioner Build', slug: 'hardware/positioner-build' },
{ label: 'Wiring Diagram', slug: 'hardware/wiring' },
{ label: 'Firmware', slug: 'hardware/firmware' },
{ label: 'VNA Trigger Wiring', slug: 'hardware/trigger-wiring' },
{ label: 'VNA External Clock', slug: 'hardware/external-clock' },
],
},
{
label: 'Tutorials',
items: [
{ label: '3D Pattern Measurement', slug: 'tutorials/pattern-measurement' },
{ label: 'VNA Calibration', slug: 'tutorials/calibration' },
{ label: 'Antenna Analysis', slug: 'tutorials/antenna-analysis' },
{ label: 'Multi-VNA Basics', slug: 'tutorials/multi-vna-basics' },
],
},
{
label: 'Reference',
items: [
{ label: 'HTTP API (ESP32)', slug: 'reference/http-api' },
{ label: 'Pattern Formats', slug: 'reference/pattern-formats' },
{ label: 'Ham Bands', slug: 'reference/ham-bands' },
],
},
],
customCss: ['./src/styles/custom.css'],
}),
],
vite: {
server: {
host: '0.0.0.0',
// Only configure HMR for reverse proxy when explicitly set
...(process.env.VITE_HMR_HOST && {
hmr: {
host: process.env.VITE_HMR_HOST,
protocol: 'wss',
clientPort: 443,
},
}),
},
},
});