@@ -104,93 +104,83 @@ const config = {
104104 }
105105 ] ,
106106
107- plugins : [
108- [
109- '@docusaurus/plugin-client-redirects' ,
110- {
111- redirects : [
112- {
113- to : 'https://help-archive.quali.com/help versions/All Versions Help/Content/Versions.htm' ,
114- from : [ '/help versions/All Versions Help/Content/Versions.htm' , '/help%20versions/All%20Versions%20Help/Content/Versions.htm' ] ,
115- } ,
116- {
117- to : 'https://help-archive.quali.com/Online Help/0.0/TestShell/Content/TSS/TSS.htm' ,
118- from : [ '/2022.1.0.1858/ST/' , '/2022.2.0.1470/ST/' , '/2023.1.0.655/ST/' , '/2023.2.0.1763/ST/' , '/2023.3.0.979/ST/' , '/2024.1.0.2480/ST/' , '/2024.1.0.2508/ST/' , '/2024.1.0.2515/ST/' , '/2024.1.0.2534/ST/' , '/2024.1.0.2540/ST/' , '/2024.1.0.2596/ST/' , '/2024.1.0.2603/ST/' , '/2024.1.0.2624/ST/' , '/2024.1.0.2634/ST/' , '/2024.1.0.2650/ST/' , '/2024.1.0.2653/ST/' , '/2024.1.0.2669/ST/' , '/2024.1.0.2682/ST/' ] ,
119- } ,
120- {
121- to : 'https://help-archive.quali.com/Online Help/0.0/TestShell/Content/TSR/Tst-Run.htm' ,
122- from : [ '/2022.1.0.1858/RUN/' , '/2022.2.0.1470/RUN/' , '/2023.1.0.655/RUN/' , '/2023.2.0.1763/RUN/' , '/2023.3.0.979/RUN/' , '/2024.1.0.2480/RUN/' , '/2024.1.0.2508/RUN/' , '/2024.1.0.2515/RUN/' , '/2024.1.0.2534/RUN/' , '/2024.1.0.2540/RUN/' , '/2024.1.0.2596/RUN/' , '/2024.1.0.2603/RUN/' , '/2024.1.0.2624/RUN/' , '/2024.1.0.2634/RUN/' , '/2024.1.0.2650/RUN/' , '/2024.1.0.2653/RUN/' , '/2024.1.0.2669/RUN/' , '/2024.1.0.2682/RUN/' ] ,
123- } ,
124- {
125- to : '/' ,
126- from : [
127- '/Online%20Help/2022.1.0.1858/Portal/' ,
128- '/Online%20Help/2022.2.0.1470/Portal/' ,
129- '/Online%20Help/2023.1.0.655/Portal/' ,
130- '/Online%20Help/2023.2.0.1763/Portal/' ,
131- '/Online%20Help/2023.3.0.979/Portal/' ,
132- '/Online%20Help/2024.1.0.2480/Portal/' ,
133- '/Online%20Help/2024.1.0.2508/Portal/' ,
134- '/Online%20Help/2024.1.0.2515/Portal/' ,
135- '/Online%20Help/2024.1.0.2534/Portal/' ,
136- '/Online%20Help/2024.1.0.2540/Portal/' ,
137- '/Online%20Help/2024.1.0.2596/Portal/' ,
138- '/Online%20Help/2024.1.0.2603/Portal/' ,
139- '/Online%20Help/2024.1.0.2624/Portal/' ,
140- '/Online%20Help/2024.1.0.2634/Portal/' ,
141- '/Online%20Help/2024.1.0.2650/Portal/' ,
142- '/Online%20Help/2024.1.0.2653/Portal/' ,
143- '/Online%20Help/2024.1.0.2669/Portal/' ,
144- '/Online%20Help/2024.1.0.2682/Portal/' ,
145- ] ,
146- } ,
147- ] ,
148- createRedirects ( existingPath ) {
149- var versions = [ "0.0" , "2022.1" , "2022.1.0.1858" , "2022.2" , "2022.2.0.1470" , "2023.1" , "2023.1.0.655" , "2023.2" , "2023.2.0.1763" , "2023.3" , "2023.3.0.979" , "2024.1" , "2024.1.0.2480" , "2024.1.0.2508" , "2024.1.0.2515" , "2024.1.0.2534" , "2024.1.0.2540" , "2024.1.0.2596" , "2024.1.0.2603" , "2024.1.0.2624" , "2024.1.0.2634" , "2024.1.0.2650" , "2024.1.0.2653" , "2024.1.0.2669" , "2024.1.0.2682" ] ;
107+ // plugins: [
108+ // [
109+ // '@docusaurus/plugin-client-redirects',
110+ // {
111+ // redirects: [
112+ // {
113+ // to: 'https://help-archive.quali.com/help versions/All Versions Help/Content/Versions.htm',
114+ // from: ['/help versions/All Versions Help/Content/Versions.htm', '/help%20versions/All%20Versions%20Help/Content/Versions.htm'],
115+ // },
116+ // {
117+ // to: 'https://help-archive.quali.com/Online Help/0.0/TestShell/Content/TSS/TSS.htm',
118+ // from: ['/2022.1.0.1858/ST/', '/2022.2.0.1470/ST/', '/2023.1.0.655/ST/', '/2023.2.0.1763/ST/', '/2023.3.0.979/ST/', '/2024.1.0.2480/ST/', '/2024.1.0.2508/ST/', '/2024.1.0.2515/ST/'],
119+ // },
120+ // {
121+ // to: 'https://help-archive.quali.com/Online Help/0.0/TestShell/Content/TSR/Tst-Run.htm',
122+ // from: ['/2022.1.0.1858/RUN/', '/2022.2.0.1470/RUN/', '/2023.1.0.655/RUN/', '/2023.2.0.1763/RUN/', '/2023.3.0.979/RUN/', '/2024.1.0.2480/RUN/', '/2024.1.0.2508/RUN/', '/2024.1.0.2515/RUN/'],
123+ // },
124+ // {
125+ // to: '/',
126+ // from: [
127+ // '/Online%20Help/2022.1.0.1858/Portal/',
128+ // '/Online%20Help/2022.2.0.1470/Portal/',
129+ // '/Online%20Help/2023.1.0.655/Portal/',
130+ // '/Online%20Help/2023.2.0.1763/Portal/',
131+ // '/Online%20Help/2023.3.0.979/Portal/',
132+ // '/Online%20Help/2024.1.0.2480/Portal/',
133+ // '/Online%20Help/2024.1.0.2508/Portal/',
134+ // '/Online%20Help/2024.1.0.2515/Portal/',
135+ // ],
136+ // },
137+ // ],
138+ // createRedirects(existingPath) {
139+ // var versions = ["0.0", "2022.1", "2022.1.0.1858", "2022.2", "2022.2.0.1470", "2023.1", "2023.1.0.655", "2023.2", "2023.2.0.1763", "2023.3", "2023.3.0.979", "2024.1", "2024.1.0.2480", "2024.1.0.2508", "2024.1.0.2515"];
150140
151- if ( existingPath . startsWith ( '/portal/inventory/inventory-dashboard' ) ) {
152- return versions . map ( version => `/${ version } /Portal/Inventory` ) ;
153- }
154- else if ( existingPath . startsWith ( '/portal/sandboxes/sandbox-workspac.md ' ) ) {
155- return versions . flatMap ( version => [ `/${ version } /Portal/EnvironmentWorkspace` , `/${ version } /Portal/ReservationWorkspace` ] ) ;
156- }
157- else if ( existingPath . startsWith ( '/portal/blueprints/blueprint-catalog' ) ) {
158- return versions . map ( version => `/${ version } /Portal/EnvironmentsCatalog` ) ;
159- }
160- else if ( existingPath . startsWith ( '/portal/sandboxes/sandboxes-dashboard' ) ) {
161- return versions . flatMap ( version => [ `/${ version } /Portal/ReservationsList` , `/${ version } /Portal/ReservationsTimeline` ] ) ;
162- }
163- else if ( existingPath . startsWith ( '/portal/job-scheduling/job-scheduling-dashboard' ) ) {
164- return versions . map ( version => `/${ version } /Portal/Scheduler` ) ;
165- }
166- else if ( existingPath . startsWith ( '/admin/cloudshell-manage-dashboard/manage-dashboard-overview' ) ) {
167- return versions . map ( version => `/${ version } /Portal/Manage` ) ;
168- }
169- else if ( existingPath . startsWith ( '/admin/cloudshell-manage-dashboard/manage-app-templates/index.md ' ) ) {
170- return versions . map ( version => `/${ version } /Portal/ManageApps` ) ;
171- }
172- else if ( existingPath . startsWith ( '/intro/features/apps-overview' ) ) {
173- return versions . map ( version => `/${ version } /Portal/UsingApps` ) ;
174- }
175- else if ( existingPath . startsWith ( '/portal/sandboxes/saved-sandboxes/index.md ' ) ) {
176- return versions . map ( version => `/${ version } /Portal/SaveSandbox` ) ;
177- }
178- else if ( existingPath . startsWith ( '/portal/sandboxes/sandbox-save-and-restore-overview' ) ) {
179- return versions . map ( version => `/${ version } /Portal/SaveSandboxOverview` ) ;
180- }
181- else if ( existingPath . startsWith ( '/admin/setting-up-cloudshell/cloudshell-resource-management-client' ) ) {
182- return versions . map ( version => `/${ version } /RM` ) ;
183- }
184- else if ( existingPath . startsWith ( '/help-versions-archive' ) ) {
185- return "/help%20versions/"
186- }
141+ // if (existingPath.startsWith('/portal/inventory/inventory-dashboard')) {
142+ // return versions.map(version => `/${version}/Portal/Inventory`);
143+ // }
144+ // else if (existingPath.startsWith('/portal/sandboxes/sandbox-workspace ')) {
145+ // return versions.flatMap(version => [`/${version}/Portal/EnvironmentWorkspace`, `/${version}/Portal/ReservationWorkspace`]);
146+ // }
147+ // else if (existingPath.startsWith('/portal/blueprints/blueprint-catalog')) {
148+ // return versions.map(version => `/${version}/Portal/EnvironmentsCatalog`);
149+ // }
150+ // else if (existingPath.startsWith('/portal/sandboxes/sandboxes-dashboard')) {
151+ // return versions.flatMap(version => [`/${version}/Portal/ReservationsList`, `/${version}/Portal/ReservationsTimeline`]);
152+ // }
153+ // else if (existingPath.startsWith('/portal/job-scheduling/job-scheduling-dashboard')) {
154+ // return versions.map(version => `/${version}/Portal/Scheduler`);
155+ // }
156+ // else if (existingPath.startsWith('/admin/cloudshell-manage-dashboard/manage-dashboard-overview')) {
157+ // return versions.map(version => `/${version}/Portal/Manage`);
158+ // }
159+ // else if (existingPath.startsWith('/admin/cloudshell-manage-dashboard/manage-app-templates')) {
160+ // return versions.map(version => `/${version}/Portal/ManageApps`);
161+ // }
162+ // else if (existingPath.startsWith('/intro/features/apps-overview')) {
163+ // return versions.map(version => `/${version}/Portal/UsingApps`);
164+ // }
165+ // else if (existingPath.startsWith('/portal/sandboxes/saved-sandboxes')) {
166+ // return versions.map(version => `/${version}/Portal/SaveSandbox`);
167+ // }
168+ // else if (existingPath.startsWith('/portal/sandboxes/sandbox-save-and-restore-overview')) {
169+ // return versions.map(version => `/${version}/Portal/SaveSandboxOverview`);
170+ // }
171+ // else if (existingPath.startsWith('/admin/setting-up-cloudshell/cloudshell-resource-management-client')) {
172+ // return versions.map(version => `/${version}/RM`);
173+ // }
174+ // else if (existingPath.startsWith('/help-versions-archive')) {
175+ // return "/help%20versions/"
176+ // }
187177
188178
189- return undefined ; // Return a falsy value: no redirect created
190- } ,
191- } ,
192- ] ,
193- ] ,
179+ // return undefined; // Return a falsy value: no redirect created
180+ // },
181+ // },
182+ // ],
183+ // ],
194184
195185 themeConfig :
196186 /** @type {import('@docusaurus/preset-classic').ThemeConfig } */
0 commit comments