This repository has no description
1// @ts-check
2import { defineConfig } from "astro/config";
3import starlight from "@astrojs/starlight";
4
5export default defineConfig({
6 site: "https://docs.tangled.org",
7 integrations: [
8 starlight({
9 title: "Tangled Docs",
10 titleDelimiter: "·",
11 description:
12 "Documentation for Tangled — decentralized code collaboration built on the AT Protocol.",
13 favicon: "/favicon.svg",
14 head: [
15 {
16 tag: "link",
17 attrs: { rel: "apple-touch-icon", href: "/apple-touch-icon.png" },
18 },
19 ],
20 logo: {
21 light: "./src/assets/logotype-light.svg",
22 dark: "./src/assets/logotype-dark.svg",
23 replacesTitle: true,
24 },
25 social: [
26 {
27 icon: "seti:git",
28 label: "Source",
29 href: "https://tangled.org/@tangled.org/core",
30 },
31 ],
32 editLink: {
33 baseUrl: "https://tangled.org/@tangled.org/core/blob/master/docs/",
34 },
35 customCss: [
36 "./src/styles/tangled.css",
37 "./src/styles/custom.css",
38 "./src/styles/sidebar-icons.css",
39 ],
40 components: {
41 SocialIcons: "./src/components/HeaderLinks.astro",
42 },
43 expressiveCode: {
44 // same palettes as the appview's chroma stylesheet
45 themes: ["catppuccin-macchiato", "catppuccin-latte"],
46 styleOverrides: {
47 borderRadius: "0.25rem",
48 borderColor: "var(--sl-color-gray-5)",
49 },
50 },
51 sidebar: [
52 {
53 label: "Getting started",
54 items: [
55 { slug: "quick-start", attrs: { "data-icon": "rocket" } },
56 { slug: "why-atproto", attrs: { "data-icon": "at-sign" } },
57 { slug: "sites", attrs: { "data-icon": "globe" } },
58 { slug: "troubleshooting", attrs: { "data-icon": "life-buoy" } },
59 ],
60 },
61 {
62 label: "Knots",
63 items: [
64 {
65 label: "What are knots?",
66 slug: "knots",
67 attrs: { "data-icon": "server" },
68 },
69 {
70 label: "Self-hosting a knot",
71 slug: "knots/self-hosting",
72 attrs: { "data-icon": "hard-drive" },
73 },
74 ],
75 },
76 {
77 label: "Spindles",
78 items: [
79 {
80 label: "What are spindles?",
81 slug: "spindles",
82 attrs: { "data-icon": "workflow" },
83 },
84 { slug: "spindles/workflows", attrs: { "data-icon": "play" } },
85 {
86 slug: "spindles/self-hosting",
87 attrs: { "data-icon": "hard-drive" },
88 },
89 { slug: "spindles/secrets", attrs: { "data-icon": "key-round" } },
90 {
91 slug: "spindles/architecture",
92 attrs: { "data-icon": "network" },
93 },
94 ],
95 },
96 {
97 label: "Reference",
98 items: [
99 { slug: "reference/webhooks", attrs: { "data-icon": "webhook" } },
100 { slug: "reference/bobbin", attrs: { "data-icon": "cable" } },
101 {
102 slug: "reference/migrations",
103 attrs: { "data-icon": "arrow-up-circle" },
104 },
105 ],
106 },
107 {
108 label: "Contributing",
109 items: [
110 { slug: "contributing/hacking", attrs: { "data-icon": "hammer" } },
111 {
112 slug: "contributing/guide",
113 attrs: { "data-icon": "git-pull-request" },
114 },
115 ],
116 },
117 ],
118 }),
119 ],
120});