2026-05-17 10:24:47 -07:00
|
|
|
// @ts-check
|
|
|
|
|
import { defineConfig } from 'astro/config';
|
|
|
|
|
import starlight from '@astrojs/starlight';
|
2026-05-17 10:26:59 -07:00
|
|
|
import sitemap from '@astrojs/sitemap';
|
|
|
|
|
import { fileURLToPath } from 'node:url';
|
2026-05-17 10:24:47 -07:00
|
|
|
|
|
|
|
|
// https://astro.build/config
|
|
|
|
|
export default defineConfig({
|
2026-05-17 10:26:59 -07:00
|
|
|
site: 'https://kb.anhonesthost.com',
|
|
|
|
|
vite: {
|
|
|
|
|
resolve: {
|
|
|
|
|
alias: {
|
|
|
|
|
// `~` resolves to /src so partial imports are depth-independent:
|
|
|
|
|
// import SignIn from '~/content/partials/signing-in.mdx';
|
|
|
|
|
'~': fileURLToPath(new URL('./src', import.meta.url)),
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
integrations: [
|
|
|
|
|
starlight({
|
2026-05-17 16:36:46 -07:00
|
|
|
title: 'AnHonestHost KB',
|
|
|
|
|
description: 'Customer documentation for WHP and other AnHonestHost services.',
|
|
|
|
|
components: {
|
|
|
|
|
// Inline-SVG brand mark + "Knowledge Base" label.
|
|
|
|
|
// Inlining lets the SVG's currentColor follow the active theme.
|
|
|
|
|
SiteTitle: './src/components/SiteTitle.astro',
|
2026-05-17 10:26:59 -07:00
|
|
|
},
|
|
|
|
|
customCss: [
|
|
|
|
|
'@fontsource-variable/inter',
|
|
|
|
|
'@fontsource-variable/jetbrains-mono',
|
|
|
|
|
'./src/styles/anhh-tokens.css',
|
|
|
|
|
],
|
|
|
|
|
editLink: {
|
|
|
|
|
baseUrl: 'https://repo.anhonesthost.net/cloud-hosting-platform/kb-anhonesthost/_edit/main/',
|
|
|
|
|
},
|
|
|
|
|
sidebar: [
|
|
|
|
|
{
|
|
|
|
|
label: 'WHP',
|
|
|
|
|
items: [
|
|
|
|
|
{
|
|
|
|
|
label: 'Getting started',
|
|
|
|
|
items: [{ autogenerate: { directory: 'whp/getting-started' } }],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: 'How-to guides',
|
|
|
|
|
items: [{ autogenerate: { directory: 'whp/how-to' } }],
|
|
|
|
|
},
|
2026-05-17 18:40:47 -07:00
|
|
|
{
|
|
|
|
|
label: 'Site Builder',
|
|
|
|
|
badge: { text: 'Beta', variant: 'tip' },
|
|
|
|
|
items: [{ autogenerate: { directory: 'whp/site-builder' } }],
|
|
|
|
|
},
|
2026-05-17 10:26:59 -07:00
|
|
|
{
|
|
|
|
|
label: 'Reference',
|
|
|
|
|
items: [{ autogenerate: { directory: 'whp/reference' } }],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
label: 'Add-ons',
|
|
|
|
|
items: [{ autogenerate: { directory: 'whp/add-ons' } }],
|
|
|
|
|
},
|
2026-05-17 18:04:01 -07:00
|
|
|
{
|
|
|
|
|
label: 'Admin',
|
|
|
|
|
badge: { text: 'Draft', variant: 'caution' },
|
|
|
|
|
items: [{ autogenerate: { directory: 'whp/admin' } }],
|
|
|
|
|
},
|
2026-05-17 10:26:59 -07:00
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
// Future products only appear once they have content.
|
|
|
|
|
],
|
|
|
|
|
pagefind: true,
|
|
|
|
|
lastUpdated: true,
|
|
|
|
|
}),
|
|
|
|
|
sitemap(),
|
|
|
|
|
],
|
2026-05-17 10:24:47 -07:00
|
|
|
});
|