Archived
Template
1
Fork 0

Add Starlight integration

This commit is contained in:
Korbs 2024-01-31 06:58:51 -05:00
parent b8eb4420f4
commit 5abad03578
No known key found for this signature in database

View file

@ -1,4 +1,5 @@
import { defineConfig } from 'astro/config' import { defineConfig } from 'astro/config'
import starlight from '@astrojs/starlight'
// import node from '@astrojs/node' // import node from '@astrojs/node'
import astroFontPicker from 'astro-font-picker' import astroFontPicker from 'astro-font-picker'
import vue from '@astrojs/vue' import vue from '@astrojs/vue'
@ -8,7 +9,7 @@ import Compress from "astro-compress"
export default defineConfig({ export default defineConfig({
site: 'https://fluxnodes.net', site: 'https://fluxnodes.net',
trailingSlash: "ignore", trailingSlash: "ignore",
output: 'server', // output: 'server',
// adapter: node({ // adapter: node({
// mode: 'standalone', // mode: 'standalone',
// }), // }),
@ -16,7 +17,28 @@ export default defineConfig({
astroFontPicker(), astroFontPicker(),
astroI18next(), astroI18next(),
Compress(), Compress(),
vue() vue(),
starlight({
title: 'Flux Support',
tableOfContents: false, // If you need this in an article, add this: https://github.com/withastro/starlight/blob/main/docs/src/content/docs/reference/plugins.md?plain=1#L4-L5
lastUpdated: true, // Staff must set "lastUpdated" date in the article file
titleDelimiter: " - ", // Flux Support " - " Article Title
components: {
Header: './src/components/global/Header.astro',
PageFrame: './src/components/PageFrame.astro',
Pagination: './src/components/starlight/Pagination.astro',
},
customCss: [
'./src/styles/Starlight.scss',
'./src/styles/Header.scss',
],
sidebar: [
{
label: 'Account',
autogenerate: { directory: 'support/account' },
},
],
})
], ],
server: { server: {
port: 2000, port: 2000,