omni-pca-docs/astro.config.mjs
Ryan Malloy 0e6f75d2f7 Domain: hai-omni-pro-ii.l.warehack.ing (local subdomain pattern)
The .l.warehack.ing subdomain is the convention for the user's local
services. DNS for hai-omni-pro-ii.l.warehack.ing already resolves to
the host; caddy-docker-proxy picks up the new caddy label and routes
appropriately.

Patched .env, .env.example, docker-compose.yml, README.md,
astro.config.mjs.

Container rebuilt and restarted; verified caddy-docker-proxy is
serving 200 OK with 33051 bytes of rendered HTML on the internal
network, and the host-level Caddy issues a 308 redirect to https://
on the new hostname.
2026-05-10 17:06:35 -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://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',
},
},
});