-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocusaurus.config.ts
196 lines (188 loc) · 6.38 KB
/
docusaurus.config.ts
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
import type { Config } from "@docusaurus/types";
import type * as Preset from "@docusaurus/preset-classic";
const config: Config = {
title: "Resonate",
tagline: " dead simple programming model for modern applications",
favicon: "img/favicon.ico",
// Set the production url of your site here
url: "https://blog.resonatehq.io",
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: "/",
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: "resonatehq", // Usually your GitHub org/user name.
projectName: "blog", // Usually your repo name.
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
// Even if you don't use internationalization, you can use this field to set
// useful metadata like html lang. For example, if your site is Chinese, you
// may want to replace "en" with "zh-Hans".
i18n: {
defaultLocale: "en",
locales: ["en"],
},
presets: [
[
"@docusaurus/preset-classic",
{
blog: {
routeBasePath: "/", // Serve the docs at the site's root (ref: https://docusaurus.io/docs/next/docs-introduction#home-page-docs)
// sidebarPath: '',
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
// editUrl: '',
blogSidebarCount: "ALL",
blogSidebarTitle: "Posts",
},
docs: false,
theme: {
customCss: [
"./static/css/custom.css",
"./static/css/boxicons.min.css",
],
},
gtag: {
trackingID: "G-0660YY8LZF",
anonymizeIP: true,
},
} satisfies Preset.Options,
],
],
scripts: [
{
src: "/scripts/fullstory.js",
async: true,
},
{
src: "https://widget.kapa.ai/kapa-widget.bundle.js",
"data-website-id": "0f3cf17e-47fa-427a-b0fd-464d33f0bb16",
"data-project-name": "Ask Echo",
"data-project-color": "#1b1b1b",
"data-project-logo": "/img/echo-square.png",
"data-user-analytics-fingerprint-enabled": "true",
"data-button-text": "Ask Echo",
"data-modal-override-open-class-ask-ai": "ask-echo",
"data-modal-override-open-class-search": "search-echo",
"data-modal-title-ask-ai": "Echo your Resonate HQ AI developer assistant",
"data-modal-title-search": "Search Resonate HQ",
"data-modal-disclaimer":
"I am Echo, Resonate HQ's AI developer assistant. I have access to all of Resonate HQ's information corpus. Responses are generated by combining sources to provide the best possible answer. However, sometimes I may make a mistake, so please use your best judgement. Help me improve by providing a thumbs up or thumbs down after each response.",
"data-modal-ask-ai-input-placeholder":
"Ask me a question about Resonate HQ",
"data-modal-open-on-command-k": "true",
"data-modal-example-questions": [
"What is Resonate HQ?",
"How do I get started with Resonate?",
"What is DST?",
"Example application code in TypeScript?",
],
"data-modal-example-questions-title": "For example...",
"data-search-mode-enabled": "true",
"data-switch-show-icons": "true",
"data-switch-color": "#1b1b1b",
"data-button-height": "7.5rem",
"data-button-width": "5.7rem",
"data-button-text-color": "#efefef",
"data-button-image-height": "5.5rem",
"data-button-image-width": "5.5rem",
//"data-modal-full-screen": "true",
async: true,
},
{
src: "/scripts/cookiebanner.js",
async: true,
},
],
themeConfig: {
image: "img/echo.png", // used for link previews
colorMode: {
defaultMode: "light",
disableSwitch: true,
respectPrefersColorScheme: false,
},
announcementBar: {
id: "python-sdk-waiting-list",
content:
'<div class="waiting-list-announcement"><a class="cta-link" href="https://resonatehq.io/webinars" target="_blank" rel="noopener noreferrer">RSVP to our next community event!</a> 🚀</div>',
isCloseable: false,
backgroundColor: "#18181B",
textColor: "#efefef",
},
navbar: {
title: "Resonate",
logo: {
alt: "Resonate Logo",
src: "img/echo-logo.svg",
href: "https://www.resonatehq.io",
target: "_self",
width: 40,
},
items: [
{
to: "https://docs.resonatehq.io",
label: "Docs",
position: "right",
target: "_self",
},
{
to: "https://blog.resonatehq.io",
label: "Blog",
position: "right",
target: "_self",
},
{
to: "https://resonatehq.io/subscribe",
label: "Subscribe",
position: "right",
target: "_self",
},
{
href: "https://resonatehq.io/discord",
html: '<i class="bx bx-md bxl-discord"></i>',
position: "right",
},
{
href: "https://github.com/resonatehq/resonate",
html: '<i class="bx bx-md bxl-github"></i>',
position: "right",
},
],
},
footer: {
style: "light",
links: [
{
html: `
<a href="https://twitter.com/resonatehqio" target="_blank" rel="noopener noreferrer" aria-label="Resonate Twitter">
<i class="bx bx-sm bxl-twitter"></i>
</a>
`,
},
{
html: `
<a href="https://resonatehq.io/discord" target="_blank" rel="noopener noreferrer" aria-label="Resonate HQ Discord">
<i class="bx bx-sm bxl-discord"></i>
</a>
`,
},
{
html: `
<a href="https://github.com/resonatehq" target="_blank" rel="noopener noreferrer" aria-label="Resonate GitHub">
<i class="bx bx-sm bxl-github"></i>
</a>
`,
},
{
html: `
<a href="https://www.linkedin.com/company/resonatehqio" target="_blank" rel="noopener noreferrer" aria-label="Resonate HQ LinkedIn">
<i class="bx bx-sm bxl-linkedin"></i>
</a>
`,
},
],
copyright: `Copyright © ${new Date().getFullYear()} ResonateHQ, Inc.`,
},
} satisfies Preset.ThemeConfig,
};
export default config;