// @ts-check import { defineConfig } from 'astro/config'; import starlight from '@astrojs/starlight'; import icon from 'astro-icon'; // https://astro.build/config export default defineConfig({ site: 'https://hai-omni-pro-ii.l.warehack.ing', telemetry: false, devToolbar: { enabled: false }, integrations: [ icon({ include: { lucide: ['*'], }, }), starlight({ title: 'HAI Omni Pro II — omni-pca docs', description: 'Reverse-engineered Python library and Home Assistant integration for HAI/Leviton Omni Pro II home automation panels.', logo: { src: './src/assets/logo.svg', replacesTitle: false, }, favicon: '/favicon.svg', customCss: ['./src/styles/theme.css'], social: [ { icon: 'github', label: 'GitHub', href: 'https://github.com/rsp2k/omni-pca', }, ], editLink: { // Placeholder — update once the docs repo lives somewhere on GitHub. baseUrl: 'https://github.com/rsp2k/hai-omni-docs/edit/main/', }, lastUpdated: true, pagination: true, sidebar: [ { label: 'Start here', collapsed: false, items: [ { label: 'Overview', slug: '' }, { label: 'Quick start', slug: 'start/quickstart' }, ], }, { label: 'Tutorials', collapsed: true, items: [{ autogenerate: { directory: 'tutorials' } }], }, { label: 'How-to guides', collapsed: true, items: [{ autogenerate: { directory: 'how-to' } }], }, { label: 'Reference', collapsed: false, items: [ { label: 'Protocol', slug: 'reference/protocol' }, { label: 'File format', slug: 'reference/file-format' }, { label: 'Library API', slug: 'reference/library-api' }, { label: 'HA entities', slug: 'reference/ha-entities' }, { label: 'HA services', slug: 'reference/ha-services' }, ], }, { label: 'Explanation', collapsed: false, items: [ { label: 'Two non-public quirks', slug: 'explanation/quirks' }, { label: 'Architecture', slug: 'explanation/architecture' }, { label: 'The PC Access bug', slug: 'explanation/pc-access-bug' }, ], }, { label: 'Journey', slug: 'journey' }, { label: 'Changelog', slug: 'changelog' }, ], }), ], vite: { server: { host: '0.0.0.0', }, }, });