Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: setup algolia crawler schedule #3747

Merged
merged 7 commits into from
Nov 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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