From 2ed7ea4112adc273cdc5289fbe0af0f5a35e13bf Mon Sep 17 00:00:00 2001 From: Sander Spies Date: Mon, 6 Apr 2020 11:53:21 +0200 Subject: [PATCH] Add sitemap --- gitlab-pages/website/docusaurus.config.js | 5 +++++ gitlab-pages/website/package.json | 1 + 2 files changed, 6 insertions(+) diff --git a/gitlab-pages/website/docusaurus.config.js b/gitlab-pages/website/docusaurus.config.js index 9cab1f4ea..be9e6e96c 100644 --- a/gitlab-pages/website/docusaurus.config.js +++ b/gitlab-pages/website/docusaurus.config.js @@ -115,6 +115,11 @@ const siteConfig = { plugins: [ '@ligo/syntax', { + }, + '@docusaurus/plugin-sitemap', { + cacheTime: 600 * 1000, // 600 sec - cache purge period + changefreq: 'weekly', + priority: 0.5, } ], diff --git a/gitlab-pages/website/package.json b/gitlab-pages/website/package.json index 9082919de..3ece76565 100644 --- a/gitlab-pages/website/package.json +++ b/gitlab-pages/website/package.json @@ -26,6 +26,7 @@ ] }, "dependencies": { + "@docusaurus/plugin-sitemap": "^2.0.0-alpha.37", "@ligo/syntax": "file:src/@ligo/syntax" } }