forked from gptscript-ai/gptscript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocusaurus.config.js
102 lines (96 loc) · 2.66 KB
/
docusaurus.config.js
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
// @ts-check
// `@type` JSDoc annotations allow editor autocompletion and type checking
// (when paired with `@ts-check`).
// There are various equivalent ways to declare your Docusaurus config.
// See: https://docusaurus.io/docs/api/docusaurus-config
import { themes as prismThemes } from "prism-react-renderer";
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "GPTScript Docs",
tagline: "Welcome to the GPTScript Docs",
favicon: "img/favicon.ico",
baseUrl: "/",
url: "https://docs.gptscript.ai",
organizationName: "gptscript-ai",
projectName: "gptscript",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
trailingSlash: false,
i18n: {
defaultLocale: "en",
locales: ["en"],
},
presets: [
[
"classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: "./sidebars.js",
editUrl: "https://github.com/gptscript-ai/gptscript/tree/main/docs/",
routeBasePath: "/", // Serve the docs at the site's root
},
theme: {
customCss: "./src/css/custom.css",
},
blog: false,
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// Replace with your project's social card
image: "img/docusaurus-social-card.jpg",
navbar: {
title: "GPTScript",
style: "dark",
logo: {
alt: "GPTScript Logo",
src: "img/logo.svg",
},
items: [
{
href: "https://github.com/gptscript-ai/gptscript",
label: "GitHub",
position: "right",
},
{
href: "https://discord.gg/9sSf4UyAMC",
label: "Discord",
position: "right",
},
{
href: "mailto:[email protected]?subject=Reaching out from GPTScript Docs",
label: "Contact Us",
position: "right",
},
],
},
footer: {
style: "dark",
links: [
{
label: "GitHub",
to: "https://github.com/gptscript-ai/gptscript",
},
{
label: "Discord",
to: "https://discord.gg/9sSf4UyAMC",
},
],
copyright: `Copyright © ${new Date().getFullYear()} Acorn Labs, Inc`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: ["cue", "docker"],
},
algolia: {
apiKey: "c886c827d4057d15ab11efbc59b94a49",
appId: "CLLI98NP9G",
indexName: "gptscript",
},
}),
};
export default config;