Skip to content

Commit 641544a

Browse files
authored
init_search (ton-community#878)
1 parent a2a9f27 commit 641544a

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

docusaurus.config.js

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,7 @@ const config = {
4646
baseUrl: '/',
4747
themes: [
4848
'@docusaurus/theme-live-codeblock',
49-
[
50-
require.resolve('@easyops-cn/docusaurus-search-local'),
51-
{
52-
hashed: true,
53-
indexPages: true,
54-
indexBlog: false,
55-
searchBarShortcutHint: false,
56-
language: ["en", "zh"],
57-
},
5849
],
59-
],
6050
plugins: [
6151
['docusaurus-plugin-sass', {}],
6252
[
@@ -147,6 +137,20 @@ const config = {
147137
// textColor: '#F3F3F7',
148138
// isCloseable: false,
149139
// },
140+
algolia: {
141+
// The application ID provided by Algolia
142+
appId: '3HQ0XHWRM0',
143+
// Public API key: it is safe to commit it
144+
apiKey: '7a0094aa048fd537a70a0aa90d86cdc8',
145+
indexName: 'ton',
146+
// Optional: see doc section below
147+
contextualSearch: true,
148+
149+
// Optional: path for search page that enabled by default (`false` to disable it)
150+
searchPagePath: 'search',
151+
152+
debug: false
153+
},
150154

151155
image: 'img/snippet.png',
152156
navbar: require('./navbar'),

static/robots.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Algolia-Crawler-Verif: 219DA811252FA1D8

0 commit comments

Comments
 (0)