docs/astro.config.mjs
Naomi Carrigan 0dfdf303b5 feat: document eslint-config, alt-gen, and naomiai (#54)
Reviewed-on: https://codeberg.org/nhcarrigan/docs/pulls/54
Co-authored-by: Naomi Carrigan <commits@nhcarrigan.com>
Co-committed-by: Naomi Carrigan <commits@nhcarrigan.com>
2025-01-06 04:53:12 +00:00

69 lines
2.0 KiB
JavaScript

import { defineConfig } from 'astro/config';
import starlight from "@astrojs/starlight";
import { navigation } from "./src/components/navigation.ts";
export default defineConfig({
site: "https://docs.nhcarrigan.com",
integrations: [starlight({
components: {
Footer: "./src/components/Footer.astro",
ThemeSelect: "./src/components/ThemeSelect.astro",
ThemeProvider: "./src/components/ThemeProvider.astro",
},
title: "NHCarrigan Docs",
sidebar: navigation,
tableOfContents: { minHeadingLevel: 2, maxHeadingLevel: 4},
description: "This site contains all of the documentation related to NHCarrigan, its Policies, and its Projects.",
editLink: {
baseUrl: "https://codeberg.org/nhcarrigan/docs/_edit/main/",
label: "Edit this page on Codeberg"
},
lastUpdated: true,
social: {
codeberg: "https://codeberg.org/nhcarrigan",
github: "https://github.com/nhcarrigan",
discord: "https://chat.nhcarrigan.com"
},
head: [
{
tag: "script",
attrs: {
type: "text/javascript",
id: "hs-script-loader",
async: true,
defer: true,
src: "https://js.hs-scripts.com/47086586.js"
}
},
{
tag: "script",
attrs: {
type: "text/javascript",
id: "analytics",
src: "https://analytics.nhcarrigan.com/js/script.file-downloads.outbound-links.js",
defer: true,
"data-domain": "nhcarrigan.com"
}
},
{
tag: "script",
content: "window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }"
},
{
tag: "script",
attrs: {
type: "text/javascript",
id: "trees",
src: "https://widgets.tree-nation.com/js/widgets/v1/widgets.min.js?v=1.0",
defer: true
}
}
],
customCss: [
"./src/styles/style.css",
"./src/fonts/font-face.css"
],
})]
});