adds starlight docs
This commit is contained in:
37
docs/astro.config.mjs
Normal file
37
docs/astro.config.mjs
Normal file
@@ -0,0 +1,37 @@
|
||||
import { defineConfig } from 'astro/config';
|
||||
import starlight from '@astrojs/starlight';
|
||||
import tailwind from '@astrojs/tailwind';
|
||||
|
||||
import svelte from "@astrojs/svelte";
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
integrations: [starlight({
|
||||
title: 'Docs with Tailwind',
|
||||
logo: {
|
||||
light: '/src/assets/logo_dark.svg',
|
||||
dark: '/src/assets/logo_light.svg',
|
||||
replacesTitle: true
|
||||
},
|
||||
social: {
|
||||
github: 'https://github.com/flomp/wanderer'
|
||||
},
|
||||
sidebar: [{
|
||||
label: 'Guides',
|
||||
items: [
|
||||
// Each item here is one entry in the navigation menu.
|
||||
{
|
||||
label: 'Example Guide',
|
||||
link: '/guides/example/'
|
||||
}]
|
||||
}, {
|
||||
label: 'Reference',
|
||||
autogenerate: {
|
||||
directory: 'reference'
|
||||
}
|
||||
}],
|
||||
customCss: ['./src/tailwind.css', '@fontsource/ibm-plex-sans/400.css', '@fontsource/ibm-plex-sans/600.css', '@fontsource/ibm-plex-mono/400.css', '@fontsource/ibm-plex-mono/600.css']
|
||||
}), tailwind({
|
||||
applyBaseStyles: false
|
||||
}), svelte()]
|
||||
});
|
||||
Reference in New Issue
Block a user