-
Notifications
You must be signed in to change notification settings - Fork 1
/
docusaurus.config.js
181 lines (168 loc) · 5.15 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
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
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const {themes} = require('prism-react-renderer');
const lightTheme = themes.github;
const darkTheme = themes.dracula;
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Xomega Docs',
tagline: 'The best .NET low-code platform for developers',
url: 'https://xomega.net',
baseUrl: '/docs/',
trailingSlash: false,
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/Xomega.ico',
organizationName: 'Xomega.Net', // Usually your GitHub org/user name.
projectName: 'Xomega.Net Docs', // Usually your repo name.
presets: [
[
'@docusaurus/preset-classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
routeBasePath: '/',
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl: 'https://github.com/Xomega-Net/Xomega.Docs/edit/master',
includeCurrentVersion: true,
lastVersion: "current",
versions: {
current: {
label: "v8.11.1",
}
}
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
plugins: [
'@ionic-internal/docusaurus-plugin-tag-manager'
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// announcementBar: {
// id: 'doc-blazor',
// content:
// 'Check out new framework documentation on Blazor. Follow us on twitter to stay tuned for additional topics.',
// isCloseable: true,
// },
docs: {
sidebar: {
autoCollapseCategories: true,
hideable: true,
}
},
colorMode: {
disableSwitch: true,
},
navbar: {
logo: {
alt: 'Xomega Logo',
src: 'img/Logo_Xomega.png',
},
items: [
{
href: 'https://xomega.net/',
position: 'left',
label: 'Home',
target: null,
className: 'xomega-link'
},
{
href: 'https://xomega.net/product/download',
position: 'left',
label: 'Download',
target: null,
className: 'xomega-link'
},
{
href: 'https://xomega.net/product/pricing',
position: 'left',
label: 'Pricing',
target: null,
className: 'xomega-link'
},
{
type: 'doc',
docId: 'platform/about',
position: 'left',
label: 'Learn',
},
{
href: 'https://xomega.net/blog',
position: 'left',
label: 'Blog',
target: null,
className: 'xomega-link'
},
{
href: 'https://xomega.net/about/contactus',
position: 'left',
label: 'Support',
target: null,
className: 'xomega-link'
},
],
},
footer: {
style: 'light',
links: [
{
html: `Copyright © ${new Date().getFullYear()} Xomega.Net. All rights reserved.`
},
{
label: 'Privacy Policy',
href: 'https://xomega.net/about/privacy'
}
]
},
prism: {
theme: themes.github,
darkTheme: themes.dracula,
additionalLanguages: ['csharp', 'cshtml', 'json'],
magicComments : [
// Remember to extend the default highlight class name as well!
{
className: 'theme-code-block-highlighted-line',
line: 'highlight-next-line',
block: {start: 'highlight-start', end: 'highlight-end'},
},
{
className: 'code-block-added-line',
line: 'added-next-line',
block: { start: 'added-lines-start', end: 'added-lines-end' }
},
{
className: 'code-block-removed-line',
line: 'removed-next-line',
block: { start: 'removed-lines-start', end: 'removed-lines-end' }
}
]
},
tagManager: {
trackingID: 'GTM-M48HDZN'
},
algolia: {
// The application ID provided by Algolia
appId: 'H48R2GFHER',
// Public API key: it is safe to commit it
apiKey: '67d1b0f74bfeb352b14796efcfc5fd72',
indexName: 'xomega',
// Optional: see doc section below
contextualSearch: true,
// Optional: Specify domains where the navigation should occur through window.location instead on history.push. Useful when our Algolia config crawls multiple documentation sites and we want to navigate with window.location.href to them.
//externalUrlRegex: 'external\\.com|domain\\.com',
// Optional: Algolia search parameters
searchParameters: {},
// Optional: path for search page that enabled by default (`false` to disable it)
searchPagePath: 'search',
//... other Algolia params
},
}),
};
module.exports = config;