Skip to content

Commit 9f5ffa0

Browse files
committed
Started updating docusuarus config to include sidebar versions
1 parent dba9547 commit 9f5ffa0

File tree

1 file changed

+169
-45
lines changed

1 file changed

+169
-45
lines changed

docusaurus.config.js

Lines changed: 169 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -136,32 +136,104 @@ const config = {
136136
],
137137

138138
plugins: [
139-
process.env.RSDOCTOR === 'true' && [
140-
'rsdoctor',
139+
[
140+
'@docusaurus/plugin-content-docs',
141+
{
142+
id: '1secure',
143+
path: 'docs/1secure',
144+
routeBasePath: 'docs/1secure',
145+
sidebarPath: 'sidebars/sidebar.js',
146+
editUrl: 'https://github.com/netwrix/docs/tree/main/packages/create-docusaurus/templates/shared/',
147+
exclude: ['**/CLAUDE.md'],
148+
versions: {
149+
current: {
150+
label: 'Current',
151+
},
152+
},
153+
},
154+
],
155+
[
156+
'@docusaurus/plugin-content-docs',
157+
{
158+
id: 'accessanalyzer12_0',
159+
path: 'docs/accessanalyzer/12.0',
160+
routeBasePath: 'docs/accessanalyzer/12.0',
161+
sidebarPath: 'sidebars/sidebar.js',
162+
editUrl: 'https://github.com/netwrix/docs/tree/main/packages/create-docusaurus/templates/shared/',
163+
exclude: ['**/CLAUDE.md'],
164+
versions: {
165+
current: {
166+
label: '12.0',
167+
},
168+
},
169+
},
170+
],
171+
[
172+
'@docusaurus/plugin-content-docs',
173+
{
174+
id: 'accessanalyzer11_6',
175+
path: 'docs/accessanalyzer/11.6',
176+
routeBasePath: 'docs/accessanalyzer/11.6',
177+
sidebarPath: 'sidebars/sidebar.js',
178+
editUrl: 'https://github.com/netwrix/docs/tree/main/packages/create-docusaurus/templates/shared/',
179+
exclude: ['**/CLAUDE.md'],
180+
versions: {
181+
previous: {
182+
label: '11.6',
183+
},
184+
},
185+
},
186+
],
187+
[
188+
'@docusaurus/plugin-content-docs',
189+
{
190+
id: 'activitymonitor8_0',
191+
path: 'docs/activitymonitor/8.0',
192+
routeBasePath: 'docs/activitymonitor/8.0',
193+
sidebarPath: 'sidebars/sidebar.js',
194+
editUrl: 'https://github.com/netwrix/docs/tree/main/packages/create-docusaurus/templates/shared/',
195+
exclude: ['**/CLAUDE.md'],
196+
versions: {
197+
current: {
198+
label: '8.0',
199+
},
200+
},
201+
},
202+
],
203+
[
204+
'@docusaurus/plugin-content-docs',
141205
{
142-
rsdoctorOptions: {
143-
mode: 'lite', // or 'full' for more detailed analysis
206+
id: 'activitymonitor7_1',
207+
path: 'docs/activitymonitor/7.1',
208+
routeBasePath: 'docs/activitymonitor/7.1',
209+
sidebarPath: 'sidebars/sidebar.js',
210+
editUrl: 'https://github.com/netwrix/docs/tree/main/packages/create-docusaurus/templates/shared/',
211+
exclude: ['**/CLAUDE.md'],
212+
versions: {
213+
previous: {
214+
label: '7.1',
215+
},
144216
},
145217
},
146218
],
147-
// Product configurations
148-
...discoveredProducts.map(product => [
219+
[
149220
'@docusaurus/plugin-content-docs',
150221
{
151-
id: product.id,
152-
path: `docs/${product.id}`,
153-
routeBasePath: `docs/${product.id}`,
154-
sidebarPath: getSidebarPath(product.id, product.versions.length > 0 ? product.versions[0] : null),
222+
id: 'accessinformationcenter12_0',
223+
path: 'docs/accessinformationcenter/12.0',
224+
routeBasePath: 'docs/accessinformationcenter/12.0',
225+
sidebarPath: 'sidebars/sidebar.js',
155226
editUrl: 'https://github.com/netwrix/docs/tree/main/packages/create-docusaurus/templates/shared/',
156227
exclude: ['**/CLAUDE.md'],
157228
versions: {
158229
current: {
159-
label: product.label,
230+
label: '12.0',
160231
},
161232
},
162233
},
163-
]),
164-
].filter(Boolean),
234+
],
235+
236+
],
165237

166238
themeConfig:
167239
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
@@ -192,20 +264,32 @@ const config = {
192264
to: '/docs/1secure',
193265
},
194266
{
195-
label: 'Access Analyzer',
196-
to: '/docs/accessanalyzer',
267+
label: 'Access Analyzer - 12.0',
268+
to: '/docs/accessanalyzer/12.0',
269+
},
270+
{
271+
label: 'Access Analyzer - 11.6',
272+
to: '/docs/accessanalyzer/11.6',
197273
},
198274
{
199-
label: 'Activity Monitor',
200-
to: '/docs/activitymonitor',
275+
label: 'Activity Monitor - 12.0',
276+
to: '/docs/activitymonitor/12.0',
201277
},
202278
{
203-
label: 'Auditor',
204-
to: '/docs/auditor',
279+
label: 'Activity Monitor - 11.6',
280+
to: '/docs/activitymonitor/11.6',
205281
},
206282
{
207-
label: 'Threat Manager',
208-
to: '/docs/threatmanager',
283+
label: 'Auditor - 10.7',
284+
to: '/docs/auditor/10.7',
285+
},
286+
{
287+
label: 'Auditor - 10.6',
288+
to: '/docs/auditor/10.6',
289+
},
290+
{
291+
label: 'Threat Manager - 3.0',
292+
to: '/docs/threatmanager/3.0',
209293
},
210294
],
211295
},
@@ -215,28 +299,48 @@ const config = {
215299
position: 'left',
216300
items: [
217301
{
218-
label: 'Access Information Center',
219-
to: '/docs/accessinformationcenter',
302+
label: 'Access Information Center - 11.1',
303+
to: '/docs/accessinformationcenter/11.1',
220304
},
221305
{
222-
label: 'Group ID',
223-
to: '/docs/groupid',
306+
label: 'Group ID - 11.1',
307+
to: '/docs/groupid/11.1',
224308
},
225309
{
226-
label: 'Password Policy Enforcer',
227-
to: '/docs/passwordpolicyenforcer',
310+
label: 'Group ID - 11.0',
311+
to: '/docs/groupid/11.0',
228312
},
229313
{
230-
label: 'Password Reset',
231-
to: '/docs/passwordreset',
314+
label: 'Password Policy Enforcer - 11.0',
315+
to: '/docs/passwordpolicyenforcer/11.0',
232316
},
233317
{
234-
label: 'Password Secure',
235-
to: '/docs/passwordsecure',
318+
label: 'Password Policy Enforcer - 10.2',
319+
to: '/docs/passwordpolicyenforcer/10.2',
236320
},
237321
{
238-
label: 'Privilege Secure',
239-
to: '/docs/privilegesecure',
322+
label: 'Password Reset - 3.3',
323+
to: '/docs/passwordreset/3.3',
324+
},
325+
{
326+
label: 'Password Reset - 3.23',
327+
to: '/docs/passwordreset/3.23',
328+
},
329+
{
330+
label: 'Password Secure - 9.2',
331+
to: '/docs/passwordsecure/9.2',
332+
},
333+
{
334+
label: 'Password Secure - 9.1',
335+
to: '/docs/passwordsecure/9.1',
336+
},
337+
{
338+
label: 'Privilege Secure - 4.2',
339+
to: '/docs/privilegesecure/4.2',
340+
},
341+
{
342+
label: 'Privilege Secure - 4.1',
343+
to: '/docs/privilegesecure/4.1',
240344
},
241345
],
242346
},
@@ -246,8 +350,12 @@ const config = {
246350
position: 'left',
247351
items: [
248352
{
249-
label: 'Change Tracker',
250-
to: '/docs/changetracker',
353+
label: 'Change Tracker - 8.1',
354+
to: '/docs/changetracker/8.1',
355+
},
356+
{
357+
label: 'Change Tracker - 8.0',
358+
to: '/docs/changetracker/8.0',
251359
},
252360
{
253361
label: 'StrongPoint for NetSuite',
@@ -266,12 +374,16 @@ const config = {
266374
to: '/docs/strongpointsalesforceflashlight',
267375
},
268376
{
269-
label: 'Data Classification',
270-
to: '/docs/dataclassification',
377+
label: 'Data Classification - 5.7',
378+
to: '/docs/dataclassification/5.7',
379+
},
380+
{
381+
label: 'Data Classification - 5.6.2',
382+
to: '/docs/dataclassification/5.6.2',
271383
},
272384
{
273-
label: 'Recovery for Active Directory',
274-
to: '/docs/recoveryforactivedirectory',
385+
label: 'Recovery for Active Directory - 2.6',
386+
to: '/docs/recoveryforactivedirectory/2.6',
275387
},
276388
],
277389
},
@@ -281,20 +393,32 @@ const config = {
281393
position: 'left',
282394
items: [
283395
{
284-
label: 'Endpoint Protector',
285-
to: '/docs/endpointprotector',
396+
label: 'Endpoint Protector - 5.9.4.2',
397+
to: '/docs/endpointprotector/5.9.4.2',
398+
},
399+
{
400+
label: 'Endpoint Protector - 5.9.4',
401+
to: '/docs/endpointprotector/5.9.4',
286402
},
287403
{
288404
label: 'PolicyPak',
289405
to: '/docs/policypak',
290406
},
291407
{
292-
label: 'Threat Prevention',
293-
to: '/docs/threatprevention',
408+
label: 'Threat Prevention - 7.5',
409+
to: '/docs/threatprevention/7.5',
410+
},
411+
{
412+
label: 'Threat Prevention - 7.4',
413+
to: '/docs/threatprevention/7.4',
414+
},
415+
{
416+
label: 'UserCube - 6.2',
417+
to: '/docs/usercube/6.2',
294418
},
295419
{
296-
label: 'UserCube',
297-
to: '/docs/usercube',
420+
label: 'UserCube - 6.1',
421+
to: '/docs/usercube/6.1',
298422
},
299423
{
300424
label: 'UserCube SaaS',

0 commit comments

Comments
 (0)