-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathmappings.js
498 lines (446 loc) · 13.4 KB
/
mappings.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
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
/*
* Copyright (C) 2018-present Arctic Ice Studio <development@arcticicestudio.com>
* Copyright (C) 2018-present Sven Greb <development@svengreb.de>
*
* Project: Nord Docs
* Repository: https://github.com/arcticicestudio/nord-docs
* License: MIT
*/
/**
* @file Provides route mapping constants.
* @author Arctic Ice Studio <development@arcticicestudio.com>
* @author Sven Greb <development@svengreb.de>
* @since 0.1.0
*/
const {
BLOG,
COMMUNITY,
DOCS,
DOCS_COLORS_AND_PALETTES,
DOCS_SWATCHES,
DOCS_USAGE,
LANDING,
PORTS,
ROOT
} = require("./constants");
/**
* The root route mapping.
*
* @constant {string}
* @since 0.1.0
*/
const ROUTE_ROOT = ROOT;
/**
* The route mapping for the `blog` page.
*
* @constant {string}
* @since 0.1.0
*/
const ROUTE_BLOG = ROUTE_ROOT + BLOG;
/**
* The route mapping for the `community` page.
*
* @constant {string}
* @since 0.3.0
*/
const ROUTE_COMMUNITY = ROUTE_ROOT + COMMUNITY;
/**
* The route mapping for the `docs` page.
*
* @constant {string}
* @since 0.1.0
*/
const ROUTE_DOCS = ROUTE_ROOT + DOCS;
/**
* The route mapping for the docs page of the "Nord Atom UI" port project.
*
* @constant {string}
* @since 0.19.0
*/
const ROUTE_DOCS_PORTS_ATOM_UI = `${ROUTE_ROOT}${DOCS}/${PORTS}/atom-ui`;
/**
* The route mapping for the configuration docs page of the "Nord Atom UI" port project.
*
* @constant {string}
* @since 0.19.0
*/
const ROUTE_DOCS_PORTS_ATOM_UI_CONFIGURATION = `${ROUTE_DOCS_PORTS_ATOM_UI}/configuration`;
/**
* The route mapping for the development docs page of the "Nord Atom UI" port project.
*
* @constant {string}
* @since 0.19.0
*/
const ROUTE_DOCS_PORTS_ATOM_UI_DEVELOPMENT = `${ROUTE_DOCS_PORTS_ATOM_UI}/development`;
/**
* The route mapping for the installation docs page of the "Nord Atom UI" port project.
*
* @constant {string}
* @since 0.19.0
*/
const ROUTE_DOCS_PORTS_ATOM_UI_INSTALLATION = `${ROUTE_DOCS_PORTS_ATOM_UI}/installation`;
/**
* The route mapping for the language and package support docs page of the "Nord Atom UI" port project.
*
* @constant {string}
* @since 0.19.0
*/
const ROUTE_DOCS_PORTS_ATOM_UI_SUPPORT = `${ROUTE_DOCS_PORTS_ATOM_UI}/support`;
/**
* The route mapping for the troubleshooting guide docs page of the "Nord Atom UI" port project.
*
* @constant {string}
* @since 0.19.0
*/
const ROUTE_DOCS_PORTS_ATOM_UI_TROUBLESHOOTING = `${ROUTE_DOCS_PORTS_ATOM_UI}/troubleshooting`;
/**
* The route mapping for the docs page of the "Nord dircolors" port project.
*
* @constant {string}
* @since 0.18.0
*/
const ROUTE_DOCS_PORTS_DIRCOLORS = `${ROUTE_ROOT}${DOCS}/${PORTS}/dircolors`;
/**
* The route mapping for the installation docs page of the "Nord dircolors" port project.
*
* @constant {string}
* @since 0.18.0
*/
const ROUTE_DOCS_PORTS_DIRCOLORS_INSTALLATION = `${ROUTE_DOCS_PORTS_DIRCOLORS}/installation`;
/**
* The route mapping for the theme plugin support docs page of the "Nord dircolors" port project.
*
* @constant {string}
* @since 0.18.0
*/
const ROUTE_DOCS_PORTS_DIRCOLORS_TYPE_SUPPORT = `${ROUTE_DOCS_PORTS_DIRCOLORS}/type-support`;
/**
* The route mapping for the docs page of the "Nord Emacs" port project.
*
* @constant {string}
* @since 0.17.0
*/
const ROUTE_DOCS_PORTS_EMACS = `${ROUTE_ROOT}${DOCS}/${PORTS}/emacs`;
/**
* The route mapping for the configuration docs page of the "Nord Emacs" port project.
*
* @constant {string}
* @since 0.17.0
*/
const ROUTE_DOCS_PORTS_EMACS_CONFIGURATION = `${ROUTE_DOCS_PORTS_EMACS}/configuration`;
/**
* The route mapping for the development docs page of the "Nord Emacs" port project.
*
* @constant {string}
* @since 0.17.0
*/
const ROUTE_DOCS_PORTS_EMACS_DEVELOPMENT = `${ROUTE_DOCS_PORTS_EMACS}/development`;
/**
* The route mapping for the installation docs page of the "Nord Emacs" port project.
*
* @constant {string}
* @since 0.17.0
*/
const ROUTE_DOCS_PORTS_EMACS_INSTALLATION = `${ROUTE_DOCS_PORTS_EMACS}/installation`;
/**
* The route mapping for the language and package support docs page of the "Nord Emacs" port project.
*
* @constant {string}
* @since 0.17.0
*/
const ROUTE_DOCS_PORTS_EMACS_SUPPORT = `${ROUTE_DOCS_PORTS_EMACS}/support`;
/**
* The route mapping for the troubleshooting guide docs page of the "Nord Emacs" port project.
*
* @constant {string}
* @since 0.17.0
*/
const ROUTE_DOCS_PORTS_EMACS_TROUBLESHOOTING = `${ROUTE_DOCS_PORTS_EMACS}/troubleshooting`;
/**
* The route mapping for the docs page of the "Nord JetBrains" port project.
*
* @constant {string}
* @since 0.12.0
*/
const ROUTE_DOCS_PORTS_JETBRAINS = `${ROUTE_ROOT}${DOCS}/${PORTS}/jetbrains`;
/**
* The route mapping for the development docs page of the "Nord JetBrains" port project.
*
* @constant {string}
* @since 0.12.0
*/
const ROUTE_DOCS_PORTS_JETBRAINS_DEVELOPMENT = `${ROUTE_DOCS_PORTS_JETBRAINS}/development`;
/**
* The route mapping for the installation docs page of the "Nord JetBrains" port project.
*
* @constant {string}
* @since 0.12.0
*/
const ROUTE_DOCS_PORTS_JETBRAINS_INSTALLATION = `${ROUTE_DOCS_PORTS_JETBRAINS}/installation`;
/**
* The route mapping for the language and plugin support docs page of the "Nord JetBrains" port project.
*
* @constant {string}
* @since 0.12.0
*/
const ROUTE_DOCS_PORTS_JETBRAINS_SUPPORT = `${ROUTE_DOCS_PORTS_JETBRAINS}/support`;
/**
* The route mapping for the troubleshooting guide docs page of the "Nord JetBrains" port project.
*
* @constant {string}
* @since 0.12.0
*/
const ROUTE_DOCS_PORTS_JETBRAINS_TROUBLESHOOTING = `${ROUTE_DOCS_PORTS_JETBRAINS}/troubleshooting`;
/**
* The route mapping for the docs page of the "Nord tmux" port project.
*
* @constant {string}
* @since 0.16.0
*/
const ROUTE_DOCS_PORTS_TMUX = `${ROUTE_ROOT}${DOCS}/${PORTS}/tmux`;
/**
* The route mapping for the theme configuration docs page of the "Nord tmux" port project.
*
* @constant {string}
* @since 0.16.0
*/
const ROUTE_DOCS_PORTS_TMUX_CONFIGURATION = `${ROUTE_DOCS_PORTS_TMUX}/configuration`;
/**
* The route mapping for the installation docs page of the "Nord tmux" port project.
*
* @constant {string}
* @since 0.16.0
*/
const ROUTE_DOCS_PORTS_TMUX_INSTALLATION = `${ROUTE_DOCS_PORTS_TMUX}/installation`;
/**
* The route mapping for the theme plugin support docs page of the "Nord tmux" port project.
*
* @constant {string}
* @since 0.16.0
*/
const ROUTE_DOCS_PORTS_TMUX_PLUGIN_SUPPORT = `${ROUTE_DOCS_PORTS_TMUX}/plugin-support`;
/**
* The route mapping for the docs page of the "Nord Vim" port project.
*
* @constant {string}
* @since 0.13.0
*/
const ROUTE_DOCS_PORTS_VIM = `${ROUTE_ROOT}${DOCS}/${PORTS}/vim`;
/**
* The route mapping for the theme configuration docs page of the "Nord Vim" port project.
*
* @constant {string}
* @since 0.13.0
*/
const ROUTE_DOCS_PORTS_VIM_CONFIGURATION = `${ROUTE_DOCS_PORTS_VIM}/configuration`;
/**
* The route mapping for the theme customization docs page of the "Nord Vim" port project.
*
* @constant {string}
* @since 0.13.0
*/
const ROUTE_DOCS_PORTS_VIM_CUSTOMIZATION = `${ROUTE_DOCS_PORTS_VIM}/customization`;
/**
* The route mapping for the installation docs page of the "Nord Vim" port project.
*
* @constant {string}
* @since 0.13.0
*/
const ROUTE_DOCS_PORTS_VIM_INSTALLATION = `${ROUTE_DOCS_PORTS_VIM}/installation`;
/**
* The route mapping for the docs page of the "Nord Visual Studio Code" port project.
*
* @constant {string}
* @since 0.15.0
*/
const ROUTE_DOCS_PORTS_VISUAL_STUDIO_CODE = `${ROUTE_ROOT}${DOCS}/${PORTS}/visual-studio-code`;
/**
* The route mapping for the theme customization docs page of the "Nord Visual Studio Code" port project.
*
* @constant {string}
* @since 0.15.0
*/
const ROUTE_DOCS_PORTS_VISUAL_STUDIO_CODE_CUSTOMIZATION = `${ROUTE_DOCS_PORTS_VISUAL_STUDIO_CODE}/customization`;
/**
* The route mapping for the development docs page of the "Nord Visual Studio Code" port project.
*
* @constant {string}
* @since 0.15.0
*/
const ROUTE_DOCS_PORTS_VISUAL_STUDIO_CODE_DEVELOPMENT = `${ROUTE_DOCS_PORTS_VISUAL_STUDIO_CODE}/development`;
/**
* The route mapping for the installation docs page of the "Nord Visual Studio Code" port project.
*
* @constant {string}
* @since 0.15.0
*/
const ROUTE_DOCS_PORTS_VISUAL_STUDIO_CODE_INSTALLATION = `${ROUTE_DOCS_PORTS_VISUAL_STUDIO_CODE}/installation`;
/**
* The route mapping for the `docs` page about Nord's colors and palettes.
*
* @constant {string}
* @since 0.11.0
*/
const ROUTE_DOCS_COLOR_AND_PALETTES = `${ROUTE_ROOT}${DOCS}/${DOCS_COLORS_AND_PALETTES}`;
/**
* The route mapping for the `docs` page about Nord's color swatches.
*
* @constant {string}
* @since 0.11.0
*/
const ROUTE_DOCS_SWATCHES = `${ROUTE_ROOT}${DOCS}/${DOCS_SWATCHES}`;
/**
* The route mapping for the `docs` page about Nord's installation and usage.
*
* @constant {string}
* @since 0.11.0
*/
const ROUTE_DOCS_USAGE = `${ROUTE_ROOT}${DOCS}/${DOCS_USAGE}`;
/**
* The route mapping for the landing page.
* Alias that will be redirected to `${ROUTE_ROOT}`.
*
* @constant {string}
* @since 0.1.0
*/
const ROUTE_LANDING = ROUTE_ROOT + LANDING;
/**
* The route mapping for the port projects page.
*
* @constant {string}
* @since 0.3.0
*/
const ROUTE_PORTS = ROUTE_ROOT + PORTS;
/**
* The route mapping for the "Nord Atom UI" port project page.
*
* @constant {string}
* @since 0.19.0
*/
const ROUTE_PORTS_ATOM_UI = `${ROUTE_ROOT}/${PORTS}/atom-ui`;
/**
* The route mapping for the "Nord dircolors" port project page.
*
* @constant {string}
* @since 0.18.0
*/
const ROUTE_PORTS_DIRCOLORS = `${ROUTE_ROOT}/${PORTS}/dircolors`;
/**
* The route mapping for the "Nord Emacs" port project page.
*
* @constant {string}
* @since 0.17.0
*/
const ROUTE_PORTS_EMACS = `${ROUTE_ROOT}/${PORTS}/emacs`;
/**
* The route mapping for the "Nord JetBrains" port project page.
*
* @constant {string}
* @since 0.12.0
*/
const ROUTE_PORTS_JETBRAINS = `${ROUTE_ROOT}/${PORTS}/jetbrains`;
/**
* The route mapping for the "Nord tmux" port project page.
*
* @constant {string}
* @since 0.16.0
*/
const ROUTE_PORTS_TMUX = `${ROUTE_ROOT}/${PORTS}/tmux`;
/**
* The route mapping for the "Nord Vim" port project page.
*
* @constant {string}
* @since 0.13.0
*/
const ROUTE_PORTS_VIM = `${ROUTE_ROOT}/${PORTS}/vim`;
/**
* The route mapping for the "Nord Visual Studio Code" port project page.
*
* @constant {string}
* @since 0.15.0
*/
const ROUTE_PORTS_VISUAL_STUDIO_CODE = `${ROUTE_ROOT}/${PORTS}/visual-studio-code`;
/**
* The per-route unique `id` attribute values of sections components.
*
* @constant {Object}
* @since 0.6.0
*/
const SECTION_COMPONENT_IDS = {
[ROUTE_COMMUNITY]: ["hero", "chat-channels", "content"],
[ROUTE_DOCS]: ["hero", "contents"],
[ROUTE_DOCS_PORTS_ATOM_UI]: ["hero", "contents"],
[ROUTE_DOCS_PORTS_DIRCOLORS]: ["hero", "contents"],
[ROUTE_DOCS_PORTS_EMACS]: ["hero", "contents"],
[ROUTE_DOCS_PORTS_JETBRAINS]: ["hero", "contents"],
[ROUTE_DOCS_PORTS_TMUX]: ["hero", "contents"],
[ROUTE_DOCS_PORTS_VIM]: ["hero", "contents"],
[ROUTE_PORTS]: ["hero", "search"],
[ROUTE_PORTS_ATOM_UI]: ["hero", "introduction", "ui-elements", "package-support", "configurations", "setup"],
[ROUTE_PORTS_DIRCOLORS]: ["hero", "introduction", "setup"],
[ROUTE_PORTS_EMACS]: ["hero", "introduction", "syntax", "editor-details", "configurations", "setup"],
[ROUTE_PORTS_JETBRAINS]: ["hero", "introduction", "syntax", "editor-details", "ui-elements", "setup"],
[ROUTE_PORTS_TMUX]: ["hero", "introduction", "ui-elements", "plugin-support", "configurations", "setup"],
[ROUTE_PORTS_VIM]: ["hero", "introduction", "syntax", "editor-details", "plugin-support", "configurations", "setup"],
[ROUTE_PORTS_VISUAL_STUDIO_CODE]: ["hero", "introduction", "syntax", "editor-details", "ui-elements", "setup"],
[ROUTE_ROOT]: [
"hero",
"palettes-modularity",
"palettes-contrast",
"ports",
"swatches",
"syntax-highlighting",
"community"
]
};
module.exports = {
ROUTE_BLOG,
ROUTE_COMMUNITY,
ROUTE_DOCS_COLOR_AND_PALETTES,
ROUTE_DOCS_PORTS_ATOM_UI,
ROUTE_DOCS_PORTS_ATOM_UI_CONFIGURATION,
ROUTE_DOCS_PORTS_ATOM_UI_DEVELOPMENT,
ROUTE_DOCS_PORTS_ATOM_UI_INSTALLATION,
ROUTE_DOCS_PORTS_ATOM_UI_SUPPORT,
ROUTE_DOCS_PORTS_ATOM_UI_TROUBLESHOOTING,
ROUTE_DOCS_PORTS_DIRCOLORS,
ROUTE_DOCS_PORTS_DIRCOLORS_INSTALLATION,
ROUTE_DOCS_PORTS_DIRCOLORS_TYPE_SUPPORT,
ROUTE_DOCS_PORTS_EMACS,
ROUTE_DOCS_PORTS_EMACS_CONFIGURATION,
ROUTE_DOCS_PORTS_EMACS_DEVELOPMENT,
ROUTE_DOCS_PORTS_EMACS_INSTALLATION,
ROUTE_DOCS_PORTS_EMACS_SUPPORT,
ROUTE_DOCS_PORTS_EMACS_TROUBLESHOOTING,
ROUTE_DOCS_PORTS_JETBRAINS_DEVELOPMENT,
ROUTE_DOCS_PORTS_JETBRAINS_INSTALLATION,
ROUTE_DOCS_PORTS_JETBRAINS_SUPPORT,
ROUTE_DOCS_PORTS_JETBRAINS_TROUBLESHOOTING,
ROUTE_DOCS_PORTS_JETBRAINS,
ROUTE_DOCS_PORTS_TMUX_CONFIGURATION,
ROUTE_DOCS_PORTS_TMUX_INSTALLATION,
ROUTE_DOCS_PORTS_TMUX_PLUGIN_SUPPORT,
ROUTE_DOCS_PORTS_TMUX,
ROUTE_DOCS_PORTS_VIM_CONFIGURATION,
ROUTE_DOCS_PORTS_VIM_CUSTOMIZATION,
ROUTE_DOCS_PORTS_VIM_INSTALLATION,
ROUTE_DOCS_PORTS_VIM,
ROUTE_DOCS_PORTS_VISUAL_STUDIO_CODE_CUSTOMIZATION,
ROUTE_DOCS_PORTS_VISUAL_STUDIO_CODE_DEVELOPMENT,
ROUTE_DOCS_PORTS_VISUAL_STUDIO_CODE_INSTALLATION,
ROUTE_DOCS_PORTS_VISUAL_STUDIO_CODE,
ROUTE_DOCS_SWATCHES,
ROUTE_DOCS_USAGE,
ROUTE_DOCS,
ROUTE_LANDING,
ROUTE_PORTS_ATOM_UI,
ROUTE_PORTS_DIRCOLORS,
ROUTE_PORTS_EMACS,
ROUTE_PORTS_JETBRAINS,
ROUTE_PORTS_TMUX,
ROUTE_PORTS_VIM,
ROUTE_PORTS_VISUAL_STUDIO_CODE,
ROUTE_PORTS,
ROUTE_ROOT,
SECTION_COMPONENT_IDS
};