Skip to content

Commit 854bae9

Browse files
committed
try to remove 23.3 from sitemap
1 parent 13e030d commit 854bae9

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

docusaurus-prod.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const config = {
7575
sitemap: {
7676
lastmod: 'date',
7777
priority: 0.5,
78-
ignorePatterns: ['/tags/**'],
78+
ignorePatterns: ['/tags/**', '/2023.3/**'],
7979
filename: 'sitemap.xml',
8080
createSitemapItems: async (params) => {
8181
const {defaultCreateSitemapItems, ...rest} = params;

docusaurus.config.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const config = {
7777
sitemap: {
7878
lastmod: 'date',
7979
priority: 0.5,
80-
ignorePatterns: ['/tags/**'],
80+
ignorePatterns: ['/tags/**', '/2023.3/**'],
8181
filename: 'sitemap.xml',
8282
createSitemapItems: async (params) => {
8383
const {defaultCreateSitemapItems, ...rest} = params;
@@ -117,11 +117,11 @@ const config = {
117117
},
118118
{
119119
to: 'https://help-archive.quali.com/Online Help/0.0/TestShell/Content/TSS/TSS.htm',
120-
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.2508/ST/'],
120+
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/'],
121121
},
122122
{
123123
to: 'https://help-archive.quali.com/Online Help/0.0/TestShell/Content/TSR/Tst-Run.htm',
124-
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.2508/RUN/'],
124+
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/'],
125125
},
126126
{
127127
to: '/',
@@ -131,12 +131,14 @@ const config = {
131131
'/Online%20Help/2023.1.0.655/Portal/',
132132
'/Online%20Help/2023.2.0.1763/Portal/',
133133
'/Online%20Help/2023.3.0.979/Portal/',
134+
'/Online%20Help/2024.1.0.2480/Portal/',
134135
'/Online%20Help/2024.1.0.2508/Portal/',
136+
'/Online%20Help/2024.1.0.2515/Portal/',
135137
],
136138
},
137139
],
138140
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.2508"];
141+
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"];
140142

141143
if (existingPath.startsWith('/portal/inventory/inventory-dashboard')) {
142144
return versions.map(version => `/${version}/Portal/Inventory`);

0 commit comments

Comments
 (0)