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() {
|
componentDidMount() {
|
||||||
const inputSelector = 'input[name="docsearch"]';
|
const inputSelector = 'input[name="docsearch"]';
|
||||||
docsearch({
|
docsearch({
|
||||||
appId: '3W0NHYOWPE',
|
appId: 'S08MJHBHFJ',
|
||||||
apiKey: '469f5cf3d54f9b86127970f913dc0725',
|
apiKey: 'f2d788a048dcc0bdc87a1d8c54bee363',
|
||||||
indexName: 'gh_pages',
|
indexName: 'gh_pages',
|
||||||
inputSelector,
|
inputSelector,
|
||||||
debug: false
|
debug: false
|
||||||
|
|
|
@ -83,7 +83,7 @@
|
||||||
"use_anchors": false,
|
"use_anchors": false,
|
||||||
"selectors": {
|
"selectors": {
|
||||||
"default": {
|
"default": {
|
||||||
"lvl0": ".markdown-body h1, .a-TitleBar .h3",
|
"lvl0": ".Doc-title h1",
|
||||||
"lvl1": ".markdown-body h2",
|
"lvl1": ".markdown-body h2",
|
||||||
"lvl2": ".markdown-body h3",
|
"lvl2": ".markdown-body h3",
|
||||||
"lvl3": ".markdown-body h4",
|
"lvl3": ".markdown-body h4",
|
||||||
|
@ -92,8 +92,8 @@
|
||||||
},
|
},
|
||||||
"component": {
|
"component": {
|
||||||
"lvl0": {
|
"lvl0": {
|
||||||
"selector": ".markdown-body h1, .a-TitleBar .h3",
|
"selector": ".Doc-title h1",
|
||||||
"default_value": "\u6e32\u67d3\u5668\u624b\u518c"
|
"default_value": "\u7ec4\u4ef6\u6587\u6863"
|
||||||
},
|
},
|
||||||
"lvl1": ".markdown-body h2",
|
"lvl1": ".markdown-body h2",
|
||||||
"lvl2": ".markdown-body h3",
|
"lvl2": ".markdown-body h3",
|
||||||
|
@ -103,8 +103,8 @@
|
||||||
},
|
},
|
||||||
"formitem": {
|
"formitem": {
|
||||||
"lvl0": {
|
"lvl0": {
|
||||||
"selector": ".markdown-body h1, .a-TitleBar .h3",
|
"selector": ".Doc-title h1",
|
||||||
"default_value": "\u6e32\u67d3\u5668\u624b\u518c"
|
"default_value": "\u7ec4\u4ef6\u6587\u6863"
|
||||||
},
|
},
|
||||||
"lvl1": {
|
"lvl1": {
|
||||||
"selector": ".markdown-body h2",
|
"selector": ".markdown-body h2",
|
||||||
|
|
Loading…
Reference in New Issue