-
Notifications
You must be signed in to change notification settings - Fork 40
/
docusaurus.config.ts
116 lines (107 loc) · 2.57 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
import type * as Preset from "@docusaurus/preset-classic";
import type { Config } from "@docusaurus/types";
import { themes as prismThemes } from "prism-react-renderer";
import { ProvidePlugin } from "webpack";
const config: Config = {
title: "roblox-ts",
tagline: "A TypeScript-to-Luau Compiler for Roblox",
favicon: "img/roblox-ts.svg",
// Set the production url of your site here
url: "https://roblox-ts.com",
// 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: "roblox-ts", // Usually your GitHub org/user name.
projectName: "roblox-ts", // 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"],
},
plugins: [
() => ({
name: "Webpack Config",
configureWebpack(config, isServer, utils, content) {
return {
resolve: {
fallback: {
path: require.resolve("path-browserify"),
},
},
plugins: [
new ProvidePlugin({
process: "process/browser.js",
}),
],
};
},
}),
],
presets: [
[
"classic",
{
docs: {
sidebarPath: "./sidebars.ts",
editUrl: "https://github.com/roblox-ts/roblox-ts.com/blob/master/",
},
theme: {
customCss: "./src/css/custom.css",
},
blog: false,
} satisfies Preset.Options,
],
],
themeConfig: {
colorMode: {
defaultMode: "dark",
},
navbar: {
title: "roblox-ts",
logo: {
alt: "roblox-ts",
src: "img/roblox-ts.svg",
},
items: [
{
type: "docSidebar",
sidebarId: "docs",
position: "left",
label: "Docs",
},
{
label: "Playground",
to: "playground/",
position: "left",
},
{
label: "Packages",
href: "https://www.npmjs.com/org/rbxts",
position: "left",
},
{
href: "https://discord.roblox-ts.com",
className: "header-discord-link",
position: "right",
},
{
href: "https://github.com/roblox-ts/roblox-ts",
className: "header-github-link",
position: "right",
},
],
},
prism: {
theme: prismThemes.vsLight,
darkTheme: prismThemes.vsDark,
additionalLanguages: ["lua", "bash"],
},
} satisfies Preset.ThemeConfig,
};
export default config;