ispmail-workaround-org/astro.config.mjs

67 lines
2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// @ts-check
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import sitemap from "@astrojs/sitemap";
import matomo from "astro-matomo";
import remarkSmartypants from "remark-smartypants";
// https://astro.build/config
export default defineConfig({
site: "https://workaround.org",
integrations: [
starlight({
lastUpdated: true,
title: "ISPmail Guide",
social: [
{ icon: "github", label: "GitHub", href: "https://github.com/Signum/workaround-astro-starlight" },
{ icon: "matrix", label: "Matrix", href: "https://riot.im/app/#/room/#ispmail:matrix.org" },
],
// https://expressive-code.com/key-features/word-wrap/#configuration
components: {
Footer: "./src/components/Footer.astro",
},
customCss: ["./src/styles/custom.css"],
sidebar: [
{
label: "ISPmail for Debian 13",
// slug: "ispmail-bookworm",
autogenerate: { directory: "ispmail-trixie" },
},
{
label: "ISPmail for Debian 12",
// slug: "ispmail-bookworm",
autogenerate: { directory: "ispmail-bookworm" },
},
{
label: "Misc articles",
autogenerate: { directory: "articles" },
},
],
logo: {
light: "./src/assets/logo.svg",
dark: "./src/assets/logo-dark.svg",
replacesTitle: true,
},
}),
// https://github.com/felix-berlin/astro-matomo
matomo({
enabled: import.meta.env.PROD, // Only load in production
host: "https://matomo.workaround.org/",
setCookieDomain: "*.workaround.org",
trackerUrl: "js/", // defaults to matomo.php
srcUrl: "js/", // defaults to matomo.js
siteId: 1,
heartBeatTimer: 5,
disableCookies: true,
debug: false,
}),
sitemap(),
],
markdown: {
remarkPlugins: [
// remove the substitution of -- to
[remarkSmartypants, { dashes: false }],
],
},
});