Skip to content

Commit

Permalink
Merge pull request #3329 from zowe/fix/seo-old-versions
Browse files Browse the repository at this point in the history
Use Docusaurus sitemap plugin to remove old versions from SEO
  • Loading branch information
anaxceron authored Jan 25, 2024
2 parents bd8053f + feef04f commit be1d020
Show file tree
Hide file tree
Showing 2 changed files with 178 additions and 107 deletions.
10 changes: 8 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,17 @@ module.exports = {
label: "v1.28.x LTS",
},
},
},
},
googleAnalytics: {
trackingID: "UA-123892882-1",
anonymizeIP: true,
},
sitemap: {
changefreq: "weekly",
priority: 0.5,
ignorePatterns: versionsArray.map((x) => "/" + x + "/**"),
filename: "sitemap.xml",
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
Expand Down Expand Up @@ -284,7 +290,7 @@ module.exports = {
[
"@docusaurus/plugin-pwa",
{
debug: true,
debug: true,
offlineModeActivationStrategies: [
"appInstalled",
"standalone",
Expand Down
Loading

0 comments on commit be1d020

Please sign in to comment.