forked from AvaloniaUI/avalonia-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
181 lines (177 loc) · 5.11 KB
/
Copy pathdocusaurus.config.js
File metadata and controls
181 lines (177 loc) · 5.11 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
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 lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Avalonia UI',
tagline: 'Developer Documentation Portal',
favicon: 'img/favicon.ico',
url: 'https://docs.avaloniaui.net',
baseUrl: '/',
organizationName: 'avaloniaui', // Usually your GitHub org/user name.
projectName: 'avalonia', // Usually your repo name.
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl: 'https://github.com/AvaloniaUI/avalonia-docs/tree/main',
//includeCurrentVersion: false,
//lastVersion: '0.10.x',
versions: {
current: {
label: "11.0.0",
banner: "none"
},
"0.10.x": {
banner: "none"
}
}
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
plugins: [
require.resolve('docusaurus-plugin-image-zoom'),
require.resolve("@cmfcmf/docusaurus-search-local"),
[
'@docusaurus/plugin-client-redirects',
require("./redirects"),
],
[
"@gracefullight/docusaurus-plugin-microsoft-clarity",
{ projectId: "hqhy3ac3l1" },
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// Replace with your project's social card
image: 'img/social-card.png',
announcementBar: {
id: 'support_us',
content:
'⭐️ If you like Avalonia, give it a star on <a target="_blank" rel="noopener noreferrer" href="https://github.com/avaloniaui/avalonia">GitHub</a> and follow us on <a target="_blank" rel="noopener noreferrer" href="https://twitter.com/AvaloniaUI">Twitter</a>',
backgroundColor: '#335EEA',
textColor: '#ffffff',
isCloseable: false,
},
colorMode: {
defaultMode: 'light',
disableSwitch: false,
respectPrefersColorScheme: true,
},
docs: {
sidebar: {
hideable: true,
autoCollapseCategories: true
}
},
zoom: {
selector: '.markdown :not(em) > img',
background: {
light: 'rgb(196, 196, 196)',
dark: 'rgb(22, 28, 45)'
},
config: {
// options you can specify via https://github.com/francoischalifour/medium-zoom#usage
margin: 50,
}
},
navbar: {
title: 'Avalonia',
logo: {
alt: 'Avalonia Logo',
src: 'img/purple-border-gradient-icon.png',
srcDark: "img/white-border-gradient-icon.png"
},
items: [
{
type: 'docsVersionDropdown',
position: 'left',
},
{
type: 'search',
position: 'right',
},
{
href: 'https://github.com/avaloniaui/avalonia',
position: 'right',
className: 'navbar-social-link navbar-github-logo',
'aria-label': 'GitHub repository',
},
{
href: 'https://twitter.com/AvaloniaUI',
position: 'right',
className: 'navbar-social-link navbar-twitter-logo',
'aria-label': 'Twitter account',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Tutorial',
to: '/docs/next/get-started/test-drive/introduction',
},
],
},
{
title: 'Community',
items: [
{
label: 'Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/avaloniaui',
},
{
label: 'Telegram',
href: 'https://t.me/Avalonia',
},
{
label: 'Twitter',
href: 'https://twitter.com/avaloniaui',
},
],
},
{
title: 'More',
items: [
{
label: 'Blog',
href: 'https://avaloniaui.net/Blog',
},
{
label: 'GitHub',
href: 'https://github.com/avaloniaui/avalonia',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} AvaloniaUI OÜ (14839404)`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
additionalLanguages: ['csharp'],
},
}),
};
module.exports = config;