1
1
// @ts -check
2
2
// Note: type annotations allow type checking and IDEs autocompletion
3
3
4
- const lightCodeTheme = require ( ' prism-react-renderer' ) . themes . github ;
5
- const darkCodeTheme = require ( ' prism-react-renderer' ) . themes . dracula ;
4
+ const lightCodeTheme = require ( " prism-react-renderer" ) . themes . github ;
5
+ const darkCodeTheme = require ( " prism-react-renderer" ) . themes . dracula ;
6
6
const { sortSidebarItems } = require ( "./sitebar-semver-sort" ) ;
7
7
8
8
const locales = [ "en" , "zh" , "es" , "fr" , "de" ] ;
@@ -34,7 +34,12 @@ const config = {
34
34
defaultLocale : "en" ,
35
35
locales,
36
36
} ,
37
-
37
+ scripts : [
38
+ {
39
+ src : "/js/redirects.js" ,
40
+ async : false ,
41
+ } ,
42
+ ] ,
38
43
presets : [
39
44
[
40
45
"classic" ,
@@ -81,7 +86,7 @@ const config = {
81
86
apiKey : "47111d6564a2e69ee21a1d3d2f786ef3" ,
82
87
indexName : "unraid" ,
83
88
contextualSearch : true ,
84
- searchPagePath : ' search' ,
89
+ searchPagePath : " search" ,
85
90
} ,
86
91
colorMode : { defaultMode : "dark" , respectPrefersColorScheme : true } ,
87
92
docs : {
@@ -103,7 +108,11 @@ const config = {
103
108
media : "(prefers-color-scheme: light)" ,
104
109
} ,
105
110
{ name : "color-scheme" , content : "dark light" } ,
106
- { name : "keywords" , content : "Unraid, server, storage, NAS, Docker, virtualization, array, parity, data protection, file sharing, plugins, management, GUI, disk management, caching, SSD, disk encryption, security, RAID, network configuration, backups, media server, transcoding, monitoring, VMs, GPU passthrough, hardware compatibility" } ,
111
+ {
112
+ name : "keywords" ,
113
+ content :
114
+ "Unraid, server, storage, NAS, Docker, virtualization, array, parity, data protection, file sharing, plugins, management, GUI, disk management, caching, SSD, disk encryption, security, RAID, network configuration, backups, media server, transcoding, monitoring, VMs, GPU passthrough, hardware compatibility" ,
115
+ } ,
107
116
] ,
108
117
navbar : {
109
118
title : "Unraid Docs" ,
@@ -201,21 +210,21 @@ const config = {
201
210
prism : {
202
211
theme : lightCodeTheme ,
203
212
darkTheme : darkCodeTheme ,
204
- additionalLanguages : [ ' diff' , ' json' , ' bash' ] ,
213
+ additionalLanguages : [ " diff" , " json" , " bash" ] ,
205
214
} ,
206
215
zoom : {
207
- selector : ' .markdown :not(em) > img' ,
216
+ selector : " .markdown :not(em) > img" ,
208
217
background : {
209
- light : ' rgb(255, 255, 255)' ,
210
- dark : ' rgb(50, 50, 50)'
218
+ light : " rgb(255, 255, 255)" ,
219
+ dark : " rgb(50, 50, 50)" ,
211
220
} ,
212
221
config : {
213
222
// options you can specify via https://github.com/francoischalifour/medium-zoom#usage
214
- }
223
+ } ,
215
224
} ,
216
225
} ) ,
217
226
plugins : [
218
- require . resolve ( ' docusaurus-plugin-image-zoom' ) ,
227
+ require . resolve ( " docusaurus-plugin-image-zoom" ) ,
219
228
[
220
229
"@docusaurus/plugin-ideal-image" ,
221
230
{
0 commit comments