Skip to content

Commit aeb8eba

Browse files
committed
Updated sidebar references in docusaurus config
1 parent 6ebcc10 commit aeb8eba

File tree

5 files changed

+118
-43
lines changed

5 files changed

+118
-43
lines changed

docusaurus.config.js

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ const config = {
178178
id: 'accessanalyzer11_6',
179179
path: 'docs/accessanalyzer/11.6',
180180
routeBasePath: 'docs/accessanalyzer/11.6',
181-
sidebarPath: require.resolve('./sidebars/sidebar.js'),
181+
sidebarPath: require.resolve('./sidebars/accessanalyzer/11.6.js'),
182182
editUrl: 'https://github.com/netwrix/docs/tree/main/',
183183
exclude: ['**/CLAUDE.md'],
184184
versions: {
@@ -195,7 +195,7 @@ const config = {
195195
id: 'accessinformationcenter12_0',
196196
path: 'docs/accessinformationcenter/12.0',
197197
routeBasePath: 'docs/accessinformationcenter/12.0',
198-
sidebarPath: require.resolve('./sidebars/sidebar.js'),
198+
sidebarPath: require.resolve('./sidebars/accessinformationcenter/12.0.js'),
199199
editUrl: 'https://github.com/netwrix/docs/tree/main/',
200200
exclude: ['**/CLAUDE.md'],
201201
versions: {
@@ -228,7 +228,7 @@ const config = {
228228
id: 'activitymonitor8_0',
229229
path: 'docs/activitymonitor/8.0',
230230
routeBasePath: 'docs/activitymonitor/8.0',
231-
sidebarPath: require.resolve('./sidebars/sidebar.js'),
231+
sidebarPath: require.resolve('./sidebars/activitymonitor/8.0.js'),
232232
editUrl: 'https://github.com/netwrix/docs/tree/main/',
233233
exclude: ['**/CLAUDE.md'],
234234
versions: {
@@ -244,7 +244,7 @@ const config = {
244244
id: 'activitymonitor7_1',
245245
path: 'docs/activitymonitor/7.1',
246246
routeBasePath: 'docs/activitymonitor/7.1',
247-
sidebarPath: require.resolve('./sidebars/sidebar.js'),
247+
sidebarPath: require.resolve('./sidebars/activitymonitor/7.1.js'),
248248
editUrl: 'https://github.com/netwrix/docs/tree/main/',
249249
exclude: ['**/CLAUDE.md'],
250250
versions: {
@@ -261,7 +261,7 @@ const config = {
261261
id: 'auditor10_7',
262262
path: 'docs/auditor/10.7',
263263
routeBasePath: 'docs/auditor/10.7',
264-
sidebarPath: require.resolve('./sidebars/sidebar.js'),
264+
sidebarPath: require.resolve('./sidebars/auditor/10.7.js'),
265265
editUrl: 'https://github.com/netwrix/docs/tree/main/',
266266
exclude: ['**/CLAUDE.md'],
267267
versions: {
@@ -277,7 +277,7 @@ const config = {
277277
id: 'auditor10_6',
278278
path: 'docs/auditor/10.6',
279279
routeBasePath: 'docs/auditor/10.6',
280-
sidebarPath: require.resolve('./sidebars/sidebar.js'),
280+
sidebarPath: require.resolve('./sidebars/auditor/10.6.js'),
281281
editUrl: 'https://github.com/netwrix/docs/tree/main/',
282282
exclude: ['**/CLAUDE.md'],
283283
versions: {
@@ -294,7 +294,7 @@ const config = {
294294
id: 'changetracker8_1',
295295
path: 'docs/changetracker/8.1',
296296
routeBasePath: 'docs/changetracker/8.1',
297-
sidebarPath: require.resolve('./sidebars/sidebar.js'),
297+
sidebarPath: require.resolve('./sidebars/changetracker/8.1.js'),
298298
editUrl: 'https://github.com/netwrix/docs/tree/main/',
299299
exclude: ['**/CLAUDE.md'],
300300
versions: {
@@ -310,7 +310,7 @@ const config = {
310310
id: 'changetracker8_0',
311311
path: 'docs/changetracker/8.0',
312312
routeBasePath: 'docs/changetracker/8.0',
313-
sidebarPath: require.resolve('./sidebars/sidebar.js'),
313+
sidebarPath: require.resolve('./sidebars/changetracker/8.0.js'),
314314
editUrl: 'https://github.com/netwrix/docs/tree/main/',
315315
exclude: ['**/CLAUDE.md'],
316316
versions: {
@@ -327,7 +327,7 @@ const config = {
327327
id: 'dataclassification5_7',
328328
path: 'docs/dataclassification/5.7',
329329
routeBasePath: 'docs/dataclassification/5.7',
330-
sidebarPath: require.resolve('./sidebars/sidebar.js'),
330+
sidebarPath: require.resolve('./sidebars/dataclassification/5.7.js'),
331331
editUrl: 'https://github.com/netwrix/docs/tree/main/',
332332
exclude: ['**/CLAUDE.md'],
333333
versions: {
@@ -343,7 +343,7 @@ const config = {
343343
id: 'dataclassification5_6_2',
344344
path: 'docs/dataclassification/5.6.2',
345345
routeBasePath: 'docs/dataclassification/5.6.2',
346-
sidebarPath: require.resolve('./sidebars/sidebar.js'),
346+
sidebarPath: require.resolve('./sidebars/dataclassification/5.6.2.js'),
347347
editUrl: 'https://github.com/netwrix/docs/tree/main/',
348348
exclude: ['**/CLAUDE.md'],
349349
versions: {
@@ -360,7 +360,7 @@ const config = {
360360
id: 'endpointprotector5_9_4_2',
361361
path: 'docs/endpointprotector/5.9.4.2',
362362
routeBasePath: 'docs/endpointprotector/5.9.4.2',
363-
sidebarPath: require.resolve('./sidebars/sidebar.js'),
363+
sidebarPath: require.resolve('./sidebars/endpointprotector/5.9.4.2.js'),
364364
editUrl: 'https://github.com/netwrix/docs/tree/main/',
365365
exclude: ['**/CLAUDE.md'],
366366
versions: {
@@ -376,7 +376,7 @@ const config = {
376376
id: 'endpointprotector5_9_4',
377377
path: 'docs/endpointprotector/5.9.4',
378378
routeBasePath: 'docs/endpointprotector/5.9.4',
379-
sidebarPath: require.resolve('./sidebars/sidebar.js'),
379+
sidebarPath: require.resolve('./sidebars/endpointprotector/5.9.4.js'),
380380
editUrl: 'https://github.com/netwrix/docs/tree/main/',
381381
exclude: ['**/CLAUDE.md'],
382382
versions: {
@@ -426,7 +426,7 @@ const config = {
426426
id: 'passwordpolicyenforcer11_0',
427427
path: 'docs/passwordpolicyenforcer/11.0',
428428
routeBasePath: 'docs/passwordpolicyenforcer/11.0',
429-
sidebarPath: require.resolve('./sidebars/sidebar.js'),
429+
sidebarPath: require.resolve('./sidebars/passwordpolicyenforcer/11.0.js'),
430430
editUrl: 'https://github.com/netwrix/docs/tree/main/',
431431
exclude: ['**/CLAUDE.md'],
432432
versions: {
@@ -442,7 +442,7 @@ const config = {
442442
id: 'passwordpolicyenforcer10_2',
443443
path: 'docs/passwordpolicyenforcer/10.2',
444444
routeBasePath: 'docs/passwordpolicyenforcer/10.2',
445-
sidebarPath: require.resolve('./sidebars/sidebar.js'),
445+
sidebarPath: require.resolve('./sidebars/passwordpolicyenforcer/10.2.js'),
446446
editUrl: 'https://github.com/netwrix/docs/tree/main/',
447447
exclude: ['**/CLAUDE.md'],
448448
versions: {
@@ -459,7 +459,7 @@ const config = {
459459
id: 'passwordreset3_3',
460460
path: 'docs/passwordreset/3.3',
461461
routeBasePath: 'docs/passwordreset/3.3',
462-
sidebarPath: require.resolve('./sidebars/sidebar.js'),
462+
sidebarPath: require.resolve('./sidebars/passwordreset/3.3.js'),
463463
editUrl: 'https://github.com/netwrix/docs/tree/main/',
464464
exclude: ['**/CLAUDE.md'],
465465
versions: {
@@ -475,7 +475,7 @@ const config = {
475475
id: 'passwordreset3_23',
476476
path: 'docs/passwordreset/3.23',
477477
routeBasePath: 'docs/passwordreset/3.23',
478-
sidebarPath: require.resolve('./sidebars/sidebar.js'),
478+
sidebarPath: require.resolve('./sidebars/passwordreset/3.23.js'),
479479
editUrl: 'https://github.com/netwrix/docs/tree/main/',
480480
exclude: ['**/CLAUDE.md'],
481481
versions: {
@@ -492,7 +492,7 @@ const config = {
492492
id: 'passwordsecure9_2',
493493
path: 'docs/passwordsecure/9.2',
494494
routeBasePath: 'docs/passwordsecure/9.2',
495-
sidebarPath: require.resolve('./sidebars/sidebar.js'),
495+
sidebarPath: require.resolve('./sidebars/passwordsecure/9.2.js'),
496496
editUrl: 'https://github.com/netwrix/docs/tree/main/',
497497
exclude: ['**/CLAUDE.md'],
498498
versions: {
@@ -508,7 +508,7 @@ const config = {
508508
id: 'passwordsecure9_1',
509509
path: 'docs/passwordsecure/9.1',
510510
routeBasePath: 'docs/passwordsecure/9.1',
511-
sidebarPath: require.resolve('./sidebars/sidebar.js'),
511+
sidebarPath: require.resolve('./sidebars/passwordsecure/9.1.js'),
512512
editUrl: 'https://github.com/netwrix/docs/tree/main/',
513513
exclude: ['**/CLAUDE.md'],
514514
versions: {
@@ -525,7 +525,7 @@ const config = {
525525
id: 'privilegesecure4_2',
526526
path: 'docs/privilegesecure/4.2',
527527
routeBasePath: 'docs/privilegesecure/4.2',
528-
sidebarPath: require.resolve('./sidebars/sidebar.js'),
528+
sidebarPath: require.resolve('./sidebars/privilegesecure/4.2.js'),
529529
editUrl: 'https://github.com/netwrix/docs/tree/main/',
530530
exclude: ['**/CLAUDE.md'],
531531
versions: {
@@ -541,7 +541,7 @@ const config = {
541541
id: 'privilegesecure4_1',
542542
path: 'docs/privilegesecure/4.1',
543543
routeBasePath: 'docs/privilegesecure/4.1',
544-
sidebarPath: require.resolve('./sidebars/sidebar.js'),
544+
sidebarPath: require.resolve('./sidebars/privilegesecure/4.1.js'),
545545
editUrl: 'https://github.com/netwrix/docs/tree/main/',
546546
exclude: ['**/CLAUDE.md'],
547547
versions: {
@@ -558,7 +558,7 @@ const config = {
558558
id: 'recoveryforactivedirectory2_6',
559559
path: 'docs/recoveryforactivedirectory/2.6',
560560
routeBasePath: 'docs/recoveryforactivedirectory/2.6',
561-
sidebarPath: require.resolve('./sidebars/sidebar.js'),
561+
sidebarPath: require.resolve('./sidebars/recoveryforactivedirectory/2.6.js'),
562562
editUrl: 'https://github.com/netwrix/docs/tree/main/',
563563
exclude: ['**/CLAUDE.md'],
564564
versions: {
@@ -575,7 +575,7 @@ const config = {
575575
id: 'threatmanager3_0',
576576
path: 'docs/threatmanager/3.0',
577577
routeBasePath: 'docs/threatmanager/3.0',
578-
sidebarPath: require.resolve('./sidebars/sidebar.js'),
578+
sidebarPath: require.resolve('./sidebars/threatmanager/3.0.js'),
579579
editUrl: 'https://github.com/netwrix/docs/tree/main/',
580580
exclude: ['**/CLAUDE.md'],
581581
versions: {
@@ -625,7 +625,7 @@ const config = {
625625
id: 'identitymanager6_2',
626626
path: 'docs/identitymanager/6.2',
627627
routeBasePath: 'docs/identitymanager/6.2',
628-
sidebarPath: require.resolve('./sidebars/sidebar.js'),
628+
sidebarPath: require.resolve('./sidebars/identitymanager/6.2.js'),
629629
editUrl: 'https://github.com/netwrix/docs/tree/main/',
630630
exclude: ['**/CLAUDE.md'],
631631
versions: {
@@ -641,7 +641,7 @@ const config = {
641641
id: 'identitymanager6_1',
642642
path: 'docs/identitymanager/6.1',
643643
routeBasePath: 'docs/identitymanager/6.1',
644-
sidebarPath: require.resolve('./sidebars/sidebar.js'),
644+
sidebarPath: require.resolve('./sidebars/identitymanager/6.1.js'),
645645
editUrl: 'https://github.com/netwrix/docs/tree/main/',
646646
exclude: ['**/CLAUDE.md'],
647647
versions: {
@@ -675,7 +675,7 @@ const config = {
675675
id: 'platgovnetsuite',
676676
path: 'docs/platgovnetsuite',
677677
routeBasePath: 'docs/platgovnetsuite',
678-
sidebarPath: require.resolve('./sidebars/sidebar.js'),
678+
sidebarPath: require.resolve('./sidebars/platgovnetsuite.js'),
679679
editUrl: 'https://github.com/netwrix/docs/tree/main/',
680680
exclude: ['**/CLAUDE.md'],
681681
versions: {
@@ -691,7 +691,7 @@ const config = {
691691
id: 'platgovsalesforce',
692692
path: 'docs/platgovsalesforce',
693693
routeBasePath: 'docs/platgovsalesforce',
694-
sidebarPath: require.resolve('./sidebars/sidebar.js'),
694+
sidebarPath: require.resolve('./sidebars/platgovsalesforce.js'),
695695
editUrl: 'https://github.com/netwrix/docs/tree/main/',
696696
exclude: ['**/CLAUDE.md'],
697697
versions: {
@@ -707,7 +707,7 @@ const config = {
707707
id: 'platgovnetsuiteflashlight',
708708
path: 'docs/platgovnetsuiteflashlight',
709709
routeBasePath: 'docs/platgovnetsuiteflashlight',
710-
sidebarPath: require.resolve('./sidebars/sidebar.js'),
710+
sidebarPath: require.resolve('./sidebars/platgovnetsuiteflashlight.js'),
711711
editUrl: 'https://github.com/netwrix/docs/tree/main/',
712712
exclude: ['**/CLAUDE.md'],
713713
versions: {
@@ -723,7 +723,7 @@ const config = {
723723
id: 'platgovsalesforceflashlight',
724724
path: 'docs/platgovsalesforceflashlight',
725725
routeBasePath: 'docs/platgovsalesforceflashlight',
726-
sidebarPath: require.resolve('./sidebars/sidebar.js'),
726+
sidebarPath: require.resolve('./sidebars/platgovsalesforceflashlight.js'),
727727
editUrl: 'https://github.com/netwrix/docs/tree/main/',
728728
exclude: ['**/CLAUDE.md'],
729729
versions: {
@@ -740,7 +740,7 @@ const config = {
740740
id: 'identitymanager_saas',
741741
path: 'docs/identitymanager/saas',
742742
routeBasePath: 'docs/identitymanager/saas',
743-
sidebarPath: require.resolve('./sidebars/sidebar.js'),
743+
sidebarPath: require.resolve('./sidebars/identitymanager/saas.js'),
744744
editUrl: 'https://github.com/netwrix/docs/tree/main/',
745745
exclude: ['**/CLAUDE.md'],
746746
versions: {

finished_versions.txt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
accessanalyzer/11.6
2+
accessinformationcenter/11.6
3+
accessinformationcenter/12.0
4+
activitymonitor/7.1
5+
activitymonitor/8.0
6+
auditor/10.6
7+
auditor/10.7
8+
changetracker/8.0
9+
changetracker/8.1
10+
dataclassification/5.6.2
11+
dataclassification/5.7
12+
endpointprotector/5.9.4
13+
endpointprotector/5.9.4.2
14+
identitymanager/6.1
15+
identitymanager/6.2
16+
identitymanager/saas
17+
passwordpolicyenforcer/10.2
18+
passwordpolicyenforcer/11.0
19+
passwordreset/3.23
20+
passwordreset/3.3
21+
passwordsecure/9.1
22+
passwordsecure/9.2
23+
platgovnetsuite
24+
platgovnetsuiteflashlight
25+
platgovsalesforce
26+
platgovsalesforceflashlight
27+
privilegesecure/4.1
28+
privilegesecure/4.2
29+
recoveryforactivedirectory/2.6
30+
threatmanager/3.0

versions.txt renamed to incomplete_versions.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
accessanalyzer/11.6
21
accessanalyzer/12.0
32
directorymanager/11.0
43
directorymanager/11.1

run_all_restructures.sh

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
#!/bin/bash
2+
3+
# Script to run restructure_docs.sh for all items in finished_versions.txt
4+
# Usage: ./run_all_restructures.sh
5+
6+
# Check if finished_versions.txt exists
7+
if [ ! -f "finished_versions.txt" ]; then
8+
echo "Error: finished_versions.txt not found!"
9+
exit 1
10+
fi
11+
12+
# Check if restructure_docs.sh exists
13+
if [ ! -f "restructure_docs.sh" ]; then
14+
echo "Error: restructure_docs.sh not found!"
15+
exit 1
16+
fi
17+
18+
# Read each line from finished_versions.txt
19+
while IFS= read -r item || [ -n "$item" ]; do
20+
# Skip empty lines
21+
if [ -z "$item" ]; then
22+
continue
23+
fi
24+
25+
# Construct the arguments
26+
arg1="restructure/${item}/file-mappings.csv"
27+
arg2="docs/${item}"
28+
29+
# Check if the file-mappings.csv exists
30+
if [ ! -f "$arg1" ]; then
31+
echo "Warning: $arg1 not found, skipping $item"
32+
continue
33+
fi
34+
35+
# Check if the docs directory exists
36+
if [ ! -d "$arg2" ]; then
37+
echo "Warning: $arg2 directory not found, skipping $item"
38+
continue
39+
fi
40+
41+
echo "Processing: $item"
42+
echo " Running: ./restructure_docs.sh \"$arg1\" \"$arg2\""
43+
44+
# Run the restructure_docs.sh script
45+
./restructure_docs.sh "$arg1" "$arg2"
46+
47+
# Check if the command was successful
48+
if [ $? -eq 0 ]; then
49+
echo " ✓ Successfully processed $item"
50+
else
51+
echo " ✗ Error processing $item"
52+
fi
53+
54+
echo ""
55+
done < finished_versions.txt
56+
57+
echo "All items processed."

0 commit comments

Comments
 (0)