Files
nxdns/website/astro.config.ts
T
mokhtar 93e2683e71
Gates / frontend (push) Failing after 8m6s
Gates / package (push) Skipped
Gates / container (push) Skipped
Gates / test (push) Successful in 2m38s
Gates / test-aarch64 (push) Successful in 8m52s
CI / gates (push) Failing after 11m33s
website: nxdns.sh on astro and starlight, with the docs and 0.0.24 screenshots
2026-10-21 17:03:01 +02:00

32 lines
1.3 KiB
TypeScript

import { defineConfig } from "astro/config";
import { unified } from "@astrojs/markdown-remark";
import starlight from "@astrojs/starlight";
import { docsSidebarGroups } from "./src/lib/docs-sidebar";
import { remarkRepoLinks } from "./src/lib/remark-repo-links";
import { repoUrl } from "./src/lib/forge";
import { readRelease } from "./src/lib/repo";
export default defineConfig({
site: "https://nxdns.sh",
trailingSlash: "always",
markdown: { processor: unified({ remarkPlugins: [remarkRepoLinks] }) },
vite: { define: { __NXDNS_RELEASE__: JSON.stringify(readRelease()) } },
integrations: [
starlight({
title: "nxdns",
description: "A DNS sinkhole for your LAN.",
favicon: "/favicon.svg",
// ZON is Zig's literal syntax; Shiki ships no grammar under its own name.
expressiveCode: { shiki: { langAlias: { zon: "zig" } } },
social: [{ icon: "seti:git", label: "Source", href: repoUrl }],
customCss: ["./src/styles/fonts.css", "./src/styles/tokens.css", "./src/styles/starlight.css"],
components: {
SiteTitle: "./src/components/starlight/SiteTitle.astro",
ThemeProvider: "./src/components/starlight/ThemeProvider.astro",
ThemeSelect: "./src/components/starlight/ThemeSelect.astro",
},
sidebar: [{ label: "Overview", link: "/docs/" }, ...docsSidebarGroups(), { label: "Changelog", link: "/changelog/" }],
}),
],
});