fix algolia

This commit is contained in:
RickCole21 2020-08-07 16:20:17 +08:00
parent d1df26b307
commit a6079a7f0a
2 changed files with 14 additions and 14 deletions

View File

@ -34,7 +34,7 @@ export default class DocSearch extends React.Component {
const inputSelector = 'input[name="docsearch"]'; const inputSelector = 'input[name="docsearch"]';
docsearch({ docsearch({
appId: 'S08MJHBHFJ', appId: 'S08MJHBHFJ',
apiKey: 'f2d788a048dcc0bdc87a1d8c54bee363', apiKey: '5fba814bb773d08b5d2a3f6074f926a5',
indexName: 'gh_pages', indexName: 'gh_pages',
inputSelector, inputSelector,
debug: false debug: false

View File

@ -1,24 +1,24 @@
{ {
"index_name": "gh_pages", "index_name": "gh_pages",
"start_urls": [ "start_urls": [
"https://baidu.github.io/amis/docs/index", "https://baidu.gitee.io/amis/docs/index",
"https://baidu.github.io/amis/docs/concepts/schema", "https://baidu.gitee.io/amis/docs/concepts/schema",
"https://baidu.github.io/amis/docs/concepts/datascope-and-datachain", "https://baidu.gitee.io/amis/docs/concepts/datascope-and-datachain",
"https://baidu.github.io/amis/docs/concepts/template", "https://baidu.gitee.io/amis/docs/concepts/template",
"https://baidu.github.io/amis/docs/concepts/data-mapping", "https://baidu.gitee.io/amis/docs/concepts/data-mapping",
"https://baidu.github.io/amis/docs/concepts/expression", "https://baidu.gitee.io/amis/docs/concepts/expression",
"https://baidu.github.io/amis/docs/concepts/linkage", "https://baidu.gitee.io/amis/docs/concepts/linkage",
"https://baidu.github.io/amis/docs/concepts/action", "https://baidu.gitee.io/amis/docs/concepts/action",
"https://baidu.github.io/amis/docs/concepts/style", "https://baidu.gitee.io/amis/docs/concepts/style",
"https://baidu.github.io/amis/docs/types/schemanode", "https://baidu.gitee.io/amis/docs/types/schemanode",
"https://baidu.github.io/amis/docs/types/api", "https://baidu.gitee.io/amis/docs/types/api",
{ {
"url": "https://baidu.github.io/amis/docs/components", "url": "https://baidu.gitee.io/amis/docs/components",
"selectors_key": "component" "selectors_key": "component"
}, },
{ {
"url": "https://baidu.github.io/amis/docs/components/form/(?P<formItem>.*?$)", "url": "https://baidu.gitee.io/amis/docs/components/form/(?P<formItem>.*?$)",
"selectors_key": "formitem", "selectors_key": "formitem",
"variables": { "variables": {
"formItem": [ "formItem": [