ispmail-workaround-org/astro.config.mjs
Christoph Haas 549bd2c65b
All checks were successful
/ build (push) Successful in 1m23s
fix: correct comentario domain UUID in RSS feed link
Changed from 0f111a27-fbfa-48af-8beb-ab12e612d92f to 0352e59b-fd9e-4627-af50-3e4125181cfc

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-06 00:32:13 +02:00

89 lines
2.7 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 remarkSmartypants from "remark-smartypants";
import { unified } from "@astrojs/markdown-remark";
// https://astro.build/config
export default defineConfig({
site: "https://workaround.org",
redirects: {
"/ispmail-trxie/imap/": "/ispmail-trixie/imap/",
"/ispmail-trxie/anti-spoofing-dkim-spf": "/ispmail-trixie/anti-spoofing-dkim-spf",
"/ispmail-trxie/catch-all": "/ispmail-trixie/catch-all",
"/ispmail-trxie/quotas": "/ispmail-trixie/quotas",
"/ispmail-trxie/going-live": "/ispmail-trixie/going-live",
},
integrations: [
starlight({
head: [
{
tag: "script",
attrs: {
src: "https://rybbit.workaround.org/api/script.js",
"data-site-id": "1",
async: true,
defer: true,
},
},
],
expressiveCode: {
frames: {
removeCommentsWhenCopyingTerminalFrames: false, // keep the commented lines when copying shell snippets
},
},
lastUpdated: true,
title: "ISPmail Guide",
social: [
{ icon: "seti:git", label: "Git", href: "https://git.workaround.org/chaas/ispmail-workaround-org" },
{ icon: "matrix", label: "Matrix", href: "https://riot.im/app/#/room/#ispmail:matrix.org" },
{
icon: "rss",
label: "Feed",
href: "https://comentario.workaround.org/api/rss/comments?domain=0352e59b-fd9e-4627-af50-3e4125181cfc",
},
],
// https://expressive-code.com/key-features/word-wrap/#configuration
components: {
Footer: "./src/components/Footer.astro",
// Banner: "./src/components/Banner.astro",
},
customCss: ["./src/styles/custom.css"],
sidebar: [
{
label: "ISPmail for Debian 13",
// slug: "ispmail-trixie",
items: [{ autogenerate: { directory: "ispmail-trixie" } }],
},
/*
{
label: "ISPmail for Debian 12",
// slug: "ispmail-bookworm",
items: [{ autogenerate: { directory: "ispmail-bookworm" } }],
},
*/
{
label: "Misc articles",
items: [{ autogenerate: { directory: "articles" } }],
},
],
logo: {
light: "./src/assets/logo.svg",
dark: "./src/assets/logo-dark.svg",
replacesTitle: true,
},
}),
sitemap(),
],
markdown: {
processor: unified({
remarkPlugins: [
// remove the substitution of -- to
// @ts-ignore
[remarkSmartypants, { dashes: false }],
],
}),
},
});