feat(brand): wire anhh-* tokens, fonts, ~/ vite alias, WHP sidebar
This commit is contained in:
@@ -1,26 +1,64 @@
|
||||
// @ts-check
|
||||
import { defineConfig } from 'astro/config';
|
||||
import starlight from '@astrojs/starlight';
|
||||
import sitemap from '@astrojs/sitemap';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
integrations: [
|
||||
starlight({
|
||||
title: 'My Docs',
|
||||
social: [{ icon: 'github', label: 'GitHub', href: 'https://github.com/withastro/starlight' }],
|
||||
sidebar: [
|
||||
{
|
||||
label: 'Guides',
|
||||
items: [
|
||||
// Each item here is one entry in the navigation menu.
|
||||
{ label: 'Example Guide', slug: 'guides/example' },
|
||||
],
|
||||
},
|
||||
{
|
||||
label: 'Reference',
|
||||
items: [{ autogenerate: { directory: 'reference' } }],
|
||||
},
|
||||
],
|
||||
}),
|
||||
],
|
||||
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({
|
||||
title: 'An Honest Host KB',
|
||||
description: 'Customer documentation for WHP and other An Honest Host services.',
|
||||
logo: {
|
||||
src: './src/assets/logo.svg',
|
||||
replacesTitle: false,
|
||||
},
|
||||
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' } }],
|
||||
},
|
||||
{
|
||||
label: 'Reference',
|
||||
items: [{ autogenerate: { directory: 'whp/reference' } }],
|
||||
},
|
||||
{
|
||||
label: 'Add-ons',
|
||||
items: [{ autogenerate: { directory: 'whp/add-ons' } }],
|
||||
},
|
||||
],
|
||||
},
|
||||
// Future products only appear once they have content.
|
||||
],
|
||||
pagefind: true,
|
||||
lastUpdated: true,
|
||||
}),
|
||||
sitemap(),
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user