Skip to content

Commit 918c2e5

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 24134fa + 7fc1251 commit 918c2e5

File tree

3 files changed

+23
-5
lines changed

3 files changed

+23
-5
lines changed

docsearch.config.json

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
{
2-
"index_name": "docs",
2+
"index_name": "rentsoft",
33
"sitemap_urls": ["https:/doc.rentsoft.cn/sitemap.xml"],
44
"start_urls": [
55
{
66
"url": "https:/doc.rentsoft.cn/guides/introduction",
77
"tags": "guides",
88
"selectors_key": "guides"
99
},
10+
{
11+
"url": "https://doc.rentsoft.cn/restapi/introduction",
12+
"tags": "restapi",
13+
"selectors_key": "restapi"
14+
},
1015
{
1116
"url": "https:/doc.rentsoft.cn/sdks",
1217
"tags": "sdks",
@@ -58,6 +63,20 @@
5863
"lvl5": "article h5, article td:first-child",
5964
"lvl6": "article h6",
6065
"text": "article p, article li, article td:last-child"
66+
},
67+
"restapi": {
68+
"lvl0": {
69+
"selector": "",
70+
"global": true,
71+
"default_value": "Guides"
72+
},
73+
"lvl1": "article h1",
74+
"lvl2": "article h2",
75+
"lvl3": "article h3",
76+
"lvl4": "article h4",
77+
"lvl5": "article h5, article td:first-child",
78+
"lvl6": "article h6",
79+
"text": "article p, article li, article td:last-child"
6180
}
6281
},
6382

docusaurus.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,9 @@ const config = {
237237
],
238238
},
239239
algolia: {
240-
appId: 'HL0HSV62RK',
241-
apiKey: '72ebf02146698733b7114c7b36da0945',
242-
indexName: 'docs',
240+
appId: 'NRY7H605ZD',
241+
apiKey: '0521a959a3cf5eccb1347a65129dc3b4',
242+
indexName: 'rentsoft',
243243
contextualSearch: true,
244244
searchParameters: {},
245245
},

src/theme/SearchBar/index.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ function DocSearch({ contextualSearch, externalUrlRegex, ...props }) {
203203
);
204204
}
205205
export default function SearchBar() {
206-
return null;
207206
const { siteConfig } = useDocusaurusContext();
208207
return <DocSearch {...siteConfig.themeConfig.algolia} />;
209208
}

0 commit comments

Comments
 (0)