fix(docs): update Algolia crawler config with exclusion patterns and ignoreCanonicalTo
This commit is contained in:
1 file changed
+18
-6
@@ -1,18 +1,25 @@
|
|||||||
// Algolia DocSearch crawler for homarr.dev
|
// Algolia DocSearch crawler for homarr.dev
|
||||||
// Crawler ID: cd77a285-2756-4557-bf21-ee703748df15
|
// Crawler ID: cd77a285-2756-4557-bf21-ee703748df15
|
||||||
// DocSearch-managed crawlers: paste this in the Algolia crawler editor or send to DocSearch support.
|
// Paste this in the Algolia crawler editor.
|
||||||
// Template: https://docsearch.algolia.com/docs/templates/#docusaurus-v3-template
|
|
||||||
// Markdown indexing: https://www.algolia.com/doc/guides/algolia-ai/askai/guides/markdown-indexing
|
|
||||||
|
|
||||||
new Crawler({
|
new Crawler({
|
||||||
appId: "N69WSPZTID",
|
appId: "N69WSPZTID",
|
||||||
apiKey: "YOUR_CRAWLER_ADMIN_API_KEY",
|
apiKey: "YOUR_CRAWLER_ADMIN_API_KEY",
|
||||||
rateLimit: 8,
|
indexPrefix: "",
|
||||||
maxDepth: 10,
|
rateLimit: 32,
|
||||||
|
maxDepth: 4,
|
||||||
startUrls: ["https://homarr.dev/"],
|
startUrls: ["https://homarr.dev/"],
|
||||||
sitemaps: ["https://homarr.dev/sitemap.xml"],
|
sitemaps: ["https://homarr.dev/sitemap.xml"],
|
||||||
ignoreCanonicalTo: true,
|
ignoreCanonicalTo: true,
|
||||||
discoveryPatterns: ["https://homarr.dev/**"],
|
discoveryPatterns: ["https://homarr.dev/**"],
|
||||||
|
exclusionPatterns: [
|
||||||
|
"https://homarr.dev/docs/tags/**",
|
||||||
|
"https://homarr.dev/blog/tags/**",
|
||||||
|
"https://homarr.dev/blog/authors/**",
|
||||||
|
"https://homarr.dev/blog/archive/**",
|
||||||
|
"https://homarr.dev/search/**",
|
||||||
|
"https://homarr.dev/docs/category/**",
|
||||||
|
],
|
||||||
actions: [
|
actions: [
|
||||||
{
|
{
|
||||||
indexName: "Docusaurus",
|
indexName: "Docusaurus",
|
||||||
@@ -105,7 +112,6 @@ new Crawler({
|
|||||||
advancedSyntax: true,
|
advancedSyntax: true,
|
||||||
attributeCriteriaComputedByMinProximity: true,
|
attributeCriteriaComputedByMinProximity: true,
|
||||||
removeWordsIfNoResults: "allOptional",
|
removeWordsIfNoResults: "allOptional",
|
||||||
separatorsToIndex: "_",
|
|
||||||
},
|
},
|
||||||
markdown: {
|
markdown: {
|
||||||
attributesForFaceting: ["lang", "language", "version", "docusaurus_tag"],
|
attributesForFaceting: ["lang", "language", "version", "docusaurus_tag"],
|
||||||
@@ -119,4 +125,10 @@ new Crawler({
|
|||||||
advancedSyntax: false,
|
advancedSyntax: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
apiKey: "YOUR_CRAWLER_ADMIN_API_KEY",
|
||||||
|
schedule: "on saturday",
|
||||||
|
renderJavaScript: false,
|
||||||
|
maxUrls: null,
|
||||||
|
cache: { enabled: false },
|
||||||
|
safetyChecks: { beforeIndexPublishing: { maxLostRecordsPercentage: 99 } },
|
||||||
});
|
});
|
||||||
Reference in new issue
Block a user