From 0e12ab6211b0997eefa1b33d1e27d18bc762272b Mon Sep 17 00:00:00 2001 From: Alexis Colin Date: Tue, 14 Nov 2023 10:04:36 +0100 Subject: [PATCH] feat: setup algolia crawler schedule (#3747) --- docs/docusaurus.config.js | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 130084cbad..3ba632d566 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -64,8 +64,7 @@ const config = { ({ image: "img/og-image.jpg", announcementBar: { - content: - '← Back to Ignite', + content: '← Back to Ignite', isCloseable: false, }, docs: { @@ -225,16 +224,11 @@ const config = { }, }, algolia: { - appId: 'VVETP7QCVE', - apiKey: '167213b8ce51cc7ff9a804df130657e5', - indexName: 'ignite-cli', + appId: "VVETP7QCVE", + apiKey: "167213b8ce51cc7ff9a804df130657e5", + indexName: "ignite-cli", contextualSearch: true, - - // ↓ - To remove if `contextualSearch` versioning search works (to use if not) - // exclusionPatterns: [ - // 'https://docs.ignite.com/v0.25.2/**', - // 'https://docs.ignite.com/nightly/**', - // ] + schedule: "every 1 day at 3:00 pm", }, }), plugins: [ @@ -242,14 +236,12 @@ const config = { "@docusaurus/plugin-client-redirects", { createRedirects(existingPath) { - if (existingPath.includes('/welcome')) { + if (existingPath.includes("/welcome")) { /* - If the link received contains the path /guide, - this will change to /welcome. - */ - return [ - existingPath.replace('/welcome', '/guide'), - ]; + If the link received contains the path /guide, + this will change to /welcome. + */ + return [existingPath.replace("/welcome", "/guide")]; } return; // No redirect created if it doesn't contain /guide },