Skip to content

Commit

Permalink
feat: setup algolia crawler schedule (#3747)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexiscolin committed Nov 14, 2023
1 parent b53445d commit 0e12ab6
Showing 1 changed file with 10 additions and 18 deletions.
28 changes: 10 additions & 18 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ const config = {
({
image: "img/og-image.jpg",
announcementBar: {
content:
'<a target="_blank" rel="noopener noreferrer" href="https://ignite.com">← Back to Ignite</a>',
content: '<a target="_blank" rel="noopener noreferrer" href="https://ignite.com">← Back to Ignite</a>',
isCloseable: false,
},
docs: {
Expand Down Expand Up @@ -225,31 +224,24 @@ 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: [
[
"@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
},
Expand Down

0 comments on commit 0e12ab6

Please sign in to comment.