加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
algolia-crawler-config.json 1.07 KB
一键复制 编辑 原始数据 按行查看 历史
Ronan Conneely 提交于 2023-11-03 14:22 . modified algolia config
{
"index_name": "calico",
"start_urls": ["https://docs.tigera.io/calico", "https://docs.tigera.io/calico-enterprise", "https://docs.tigera.io/calico-cloud"],
"stop_urls": [],
"selectors": {
"lvl0": {
"selector": "(//ul[contains(@class,'menu__list')]//a[contains(@class, 'menu__link menu__link--sublist menu__link--active')]/text() | //nav[contains(@class, 'navbar')]//a[contains(@class, 'navbar__link--active')]/text())[last()]",
"type": "xpath",
"global": true,
"default_value": "Documentation"
},
"lvl1": "article h1",
"lvl2": "article h2",
"lvl3": "article h3",
"lvl4": "article h4",
"lvl5": "article h5, article td:first-child",
"lvl6": "article h6",
"text": "article p, article li, article td:last-child"
},
"selectors_exclude": ["section article"],
"strip_chars": " .,;:#",
"custom_settings": {
"separatorsToIndex": "_",
"attributesForFaceting": ["language", "version", "type", "docusaurus_tag"],
"attributesToRetrieve": ["hierarchy", "content", "anchor", "url", "url_without_anchor", "type"]
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化