forked from p96170835/amis
更新文档搜索
This commit is contained in:
parent
a4d9100b9c
commit
c64d00827b
|
@ -33,8 +33,8 @@ export default class DocSearch extends React.Component {
|
|||
componentDidMount() {
|
||||
const inputSelector = 'input[name="docsearch"]';
|
||||
docsearch({
|
||||
appId: '3W0NHYOWPE',
|
||||
apiKey: '469f5cf3d54f9b86127970f913dc0725',
|
||||
appId: 'S08MJHBHFJ',
|
||||
apiKey: 'f2d788a048dcc0bdc87a1d8c54bee363',
|
||||
indexName: 'gh_pages',
|
||||
inputSelector,
|
||||
debug: false
|
||||
|
|
|
@ -83,7 +83,7 @@
|
|||
"use_anchors": false,
|
||||
"selectors": {
|
||||
"default": {
|
||||
"lvl0": ".markdown-body h1, .a-TitleBar .h3",
|
||||
"lvl0": ".Doc-title h1",
|
||||
"lvl1": ".markdown-body h2",
|
||||
"lvl2": ".markdown-body h3",
|
||||
"lvl3": ".markdown-body h4",
|
||||
|
@ -92,8 +92,8 @@
|
|||
},
|
||||
"component": {
|
||||
"lvl0": {
|
||||
"selector": ".markdown-body h1, .a-TitleBar .h3",
|
||||
"default_value": "\u6e32\u67d3\u5668\u624b\u518c"
|
||||
"selector": ".Doc-title h1",
|
||||
"default_value": "\u7ec4\u4ef6\u6587\u6863"
|
||||
},
|
||||
"lvl1": ".markdown-body h2",
|
||||
"lvl2": ".markdown-body h3",
|
||||
|
@ -103,8 +103,8 @@
|
|||
},
|
||||
"formitem": {
|
||||
"lvl0": {
|
||||
"selector": ".markdown-body h1, .a-TitleBar .h3",
|
||||
"default_value": "\u6e32\u67d3\u5668\u624b\u518c"
|
||||
"selector": ".Doc-title h1",
|
||||
"default_value": "\u7ec4\u4ef6\u6587\u6863"
|
||||
},
|
||||
"lvl1": {
|
||||
"selector": ".markdown-body h2",
|
||||
|
|
Loading…
Reference in New Issue