-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
145 lines (137 loc) · 3.53 KB
/
docusaurus.config.js
File metadata and controls
145 lines (137 loc) · 3.53 KB
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
// @ts-check
/** @type {import('@docusaurus/types').Config} */
import { themes as prismThemes } from "prism-react-renderer";
const lightLogo = "img/tcadmin-logo.png";
const darkLogo = "img/TCAdmin_White.png";
const config = {
title: "TCAdmin Documentation",
tagline: "TCAdmin Documentation",
favicon: "img/cropped-tcadmin-favicon-32x32.png",
url: "https://docs.tcadmin.com",
baseUrl: "/",
organizationName: "TotalControlAdmin",
projectName: "tcadmin-docs",
onBrokenLinks: "throw",
onBrokenAnchors: "ignore",
markdown: {
hooks: {
onBrokenMarkdownLinks: "warn",
},
},
i18n: {
defaultLocale: "en",
locales: ["en"],
},
presets: [
[
"classic",
{
docs: {
routeBasePath: "/",
sidebarPath: "./sidebars.js",
showLastUpdateTime: true,
editUrl:
"https://github.com/TotalControlAdmin/tcadmin-docs/blob/master/",
lastVersion: "2",
onlyIncludeVersions: ["2", "3"], // v3 hidden until public release
includeCurrentVersion: false,
versions: {
"2": {
label: "V2",
},
"3": {
label: "V3",
banner: "none",
},
},
},
blog: false,
theme: {
customCss: "./src/css/custom.css",
},
},
],
],
themes: ["docusaurus-theme-search-typesense"],
themeConfig: {
image: "img/tcadmin-logo.png",
typesense: {
typesenseCollectionName: "tcadmin-docs",
typesenseServerConfig: {
nodes: [
{
host: "typesense.tcadmin.k8s.ovh.alexr03.dev",
port: 443,
protocol: "https",
},
],
apiKey: "fzpKd6Esfg47mr8Nh9f4Km1Kbbi1OiFM",
},
contextualSearch: true,
},
navbar: {
title: "",
logo: {
alt: "TCAdmin Docs",
src: lightLogo,
srcDark: darkLogo,
},
items: [
{
type: "docSidebar",
sidebarId: "tutorialSidebar",
position: "left",
label: "Documentation",
},
{
type: "docsVersionDropdown",
position: "left",
},
{
href: "https://github.com/TotalControlAdmin/tcadmin-docs",
position: "right",
className: "header-github-link",
"aria-label": "GitHub repository",
},
{
href: "https://discord.com/invite/ptN2pGf",
position: "right",
className: "header-discord-link",
"aria-label": "Discord",
},
{
href: "https://www.tcadmin.com/",
position: "right",
className: "header-website-link",
"aria-label": "TCAdmin Website",
},
{
href: "https://clients.tcadmin.com/billing/clientarea.php",
position: "right",
className: "header-billing-link",
"aria-label": "Client Area",
},
{
href: "https://community.tcadmin.com",
position: "right",
className: "header-forum-link",
"aria-label": "Community Forum",
},
],
},
footer: {
style: "dark",
links: [],
copyright: `Copyright © ${new Date().getFullYear()} TCADMIN.COM, ALL RIGHTS RESERVED.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
additionalLanguages: ["php", "cshtml", "csharp"],
},
colorMode: {
respectPrefersColorScheme: true,
},
},
};
export default config;