omni-pca-docs/astro.config.mjs
Ryan Malloy 9855211cd0 URLs: github -> git.supported.systems/warehack.ing/{omni-pca,omni-pca-docs}
astro.config.mjs                                editLink baseUrl + GitHub social link
  README.md                                       all references
  src/content/docs/changelog.md                   release tag URL
  src/content/docs/reference/library-api.md      'see github' note
  src/content/docs/reference/protocol.mdx         opcodes.py source link
  src/content/docs/tutorials/dev-stack.md         git clone command
  src/content/docs/how-to/install-in-home-assistant.md  HACS custom-repo URL + manual git clone

Build: 23 pages clean.
2026-05-10 17:47:04 -06:00

90 lines
2.3 KiB
JavaScript

// @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://git.supported.systems/warehack.ing/omni-pca',
},
],
editLink: {
// Placeholder — update once the docs repo lives somewhere on GitHub.
baseUrl: 'https://git.supported.systems/warehack.ing/omni-pca-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',
},
},
});