-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
60 lines (59 loc) · 2.35 KB
/
Copy pathastro.config.mjs
File metadata and controls
60 lines (59 loc) · 2.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// @ts-check
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
// https://astro.build/config
export default defineConfig({
site: "https://dataprivacystack.org",
// Allow the public Dev Tunnel host to reach the dev/preview server
// (Vite blocks unknown hosts by default).
vite: {
server: { allowedHosts: true },
preview: { allowedHosts: true },
},
integrations: [
starlight({
title: "Data Privacy Stack",
description:
"Open-source building blocks for detecting, anonymizing, and protecting sensitive data.",
logo: {
src: "./src/assets/inkey-icon.svg",
replacesTitle: false,
},
favicon: "/favicon.png",
social: [
{ icon: "github", label: "GitHub", href: "https://github.com/data-privacy-stack" },
],
customCss: ["./src/styles/tokens.css"],
head: [
{
// Default to dark regardless of OS; only an explicit toggle overrides it.
tag: "script",
content:
'try{var t=localStorage.getItem("starlight-theme");if(t!=="light"&&t!=="dark"){t="light";localStorage.setItem("starlight-theme",t)}document.documentElement.dataset.theme=t}catch(e){}',
},
{ tag: "link", attrs: { rel: "preconnect", href: "https://fonts.googleapis.com" } },
{ tag: "link", attrs: { rel: "preconnect", href: "https://fonts.gstatic.com", crossorigin: true } },
{ tag: "link", attrs: { rel: "icon", type: "image/svg+xml", href: "/inkey-icon.svg?v=asset4" } },
{ tag: "link", attrs: { rel: "apple-touch-icon", href: "/apple-touch-icon.png?v=2" } },
{
tag: "link",
attrs: {
rel: "stylesheet",
href: "https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap",
},
},
{ tag: "script", attrs: { type: "text/javascript", src: "/clarity-consent.js", defer: true } },
],
// The marketing home lives at src/pages/index.astro (outside Starlight).
// Everything below is Starlight-managed content with nav + search.
sidebar: [
{
label: "Blog",
items: [{ autogenerate: { directory: "blog" } }],
},
// Back to the main site
{ label: "← Data Privacy Stack", link: "/" },
],
}),
],
});