-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathdocusaurus.config.js
115 lines (115 loc) · 3.96 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
103
104
105
106
107
108
109
110
111
112
113
114
115
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: "TypeScriptToLua",
organizationName: "TypeScriptToLua",
url: "https://typescripttolua.github.io",
baseUrl: "/",
favicon: "images/favicon.ico",
themeConfig: {
metadata: [
{
name: "keywords",
content: "typescript-to-lua, typescript to lua, tstl, typescript, lua, transpiler, compiler",
},
],
navbar: {
title: "TypeScriptToLua",
logo: { src: "images/logo.png" },
hideOnScroll: true,
items: [
{ to: "docs/getting-started", label: "Docs", position: "left" },
{ to: "play", label: "Playground", position: "left" },
{
href: "https://discord.gg/BWAq58Y",
className: "header-discord-link",
"aria-label": "Discord Server",
position: "right",
},
{
href: "https://github.com/TypeScriptToLua/TypeScriptToLua",
className: "header-github-link",
"aria-label": "GitHub repository",
position: "right",
},
],
},
footer: {
logo: {
alt: "TypeScriptToLua Logo",
src: "images/logo.png",
href: "https://github.com/TypeScriptToLua",
},
links: [
{
title: "Docs",
items: [
{
label: "Getting Started",
to: "docs/getting-started",
},
{
label: "Configuration",
to: "docs/configuration",
},
{
label: "Advanced",
to: "docs/advanced/compiler-annotations",
},
],
},
{
title: "Community",
items: [
{
label: "Discord",
href: "https://discord.gg/BWAq58Y",
},
],
},
{
title: "More",
items: [
{
label: "Github",
href: "https://github.com/TypeScriptToLua",
},
{
label: "Playground",
to: "play",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} TypeScriptToLua Contributors`,
},
prism: {
additionalLanguages: ["lua"],
theme: require("prism-react-renderer/themes/github"),
darkTheme: require("prism-react-renderer/themes/vsDark"),
},
algolia: {
appId: "4V397Y2OP8",
apiKey: "3f8bee8a3aa9cf31191d31230a1e8ba5",
indexName: "typescripttolua",
contextualSearch: false,
},
},
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
sidebarPath: require.resolve("./sidebars.json"),
editUrl: "https://github.com/TypeScriptToLua/TypeScriptToLua.github.io/edit/source/",
},
theme: {
customCss: require.resolve("./src/custom.scss"),
},
pages: {
include: ["index.tsx", "play/index.tsx", "benchviz/index.tsx"],
},
},
],
],
plugins: ["docusaurus-plugin-sass", require.resolve("./docusaurus-plugin")],
};