@@ -104,83 +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/' ] ,
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" ] ;
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"];
140140
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- }
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+ // }
177177
178178
179- return undefined ; // Return a falsy value: no redirect created
180- } ,
181- } ,
182- ] ,
183- ] ,
179+ // return undefined; // Return a falsy value: no redirect created
180+ // },
181+ // },
182+ // ],
183+ // ],
184184
185185 themeConfig :
186186 /** @type {import('@docusaurus/preset-classic').ThemeConfig } */
0 commit comments