-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
115 lines (112 loc) · 2.97 KB
/
astro.config.mjs
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
// import mdx from "@astrojs/mdx";
import expressiveCode from "astro-expressive-code";
// import remarkToc from "remark-toc";
// import rehypeMinifyHtml from "remark-rehype";
import mdx from "@astrojs/mdx";
const site = "https://docs.sugarai.dev/";
// https://astro.build/config
export default defineConfig({
site: "http://docs.sugarai.dev",
integrations: [
starlight({
title: "Sugar AI Docs",
social: {
github: "https://github.com/SugarAI-HQ/docs",
discord: "https://discord.com/invite/WRu3KXqz",
},
favicon: "/public/images/sugar-ai/favicon.png",
editLink: {
baseUrl: "https://github.com/SugarAI-HQ/docs/edit/main/",
},
logo: {
light: "/public/images/sugar-ai/logo-transparent.png",
dark: "/public/images/sugar-ai/logo-transparent.png",
replacesTitle: true,
},
head: [
{
tag: "title",
content: "Sugar AI Documentation",
},
{
tag: "meta",
attrs: {
property: "og:image",
content: "/public/images/sugar-ai/logo-transparent.png",
},
},
{
tag: "meta",
attrs: {
property: "twitter:image",
content: site + "/images/sugar-ai/logo-transparent.png",
},
},
{
tag: "script",
attrs: {
src: "https://www.googletagmanager.com/gtag/js?id=G-YZK0C1NR0Y",
async: true,
},
},
{
tag: "script",
content: `window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-YZK0C1NR0Y');`,
},
],
sidebar: [
{
label: "Get Started",
autogenerate: {
directory: "guides",
},
// items: [
// // Each item here is one entry in the navigation menu.
// { label: "Get Started", link: "/guides/get-started/" },
// ],
},
{
label: "Key Features",
autogenerate: {
directory: "key-features",
},
},
{
label: "Integrations",
autogenerate: {
directory: "integrations",
},
},
{
label: "Deployment",
autogenerate: {
directory: "deployment",
},
},
],
}),
// expressiveCode(),
// mdx({
// syntaxHighlight: "shiki",
// shikiConfig: {
// theme: "dracula",
// },
// remarkPlugins: [remarkToc],
// rehypePlugins: [rehypeMinifyHtml],
// remarkRehype: {
// footnoteLabel: "Footnotes",
// },
// gfm: false,
// }),
// partytown({
// config: {
// forward: ["dataLayer.push"],
// },
// }),
],
});