Skip to content

Commit

Permalink
init_search (#878)
Browse files Browse the repository at this point in the history
  • Loading branch information
reveloper authored Nov 25, 2024
1 parent a2a9f27 commit 641544a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
24 changes: 14 additions & 10 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,7 @@ const config = {
baseUrl: '/',
themes: [
'@docusaurus/theme-live-codeblock',
[
require.resolve('@easyops-cn/docusaurus-search-local'),
{
hashed: true,
indexPages: true,
indexBlog: false,
searchBarShortcutHint: false,
language: ["en", "zh"],
},
],
],
plugins: [
['docusaurus-plugin-sass', {}],
[
Expand Down Expand Up @@ -147,6 +137,20 @@ const config = {
// textColor: '#F3F3F7',
// isCloseable: false,
// },
algolia: {
// The application ID provided by Algolia
appId: '3HQ0XHWRM0',
// Public API key: it is safe to commit it
apiKey: '7a0094aa048fd537a70a0aa90d86cdc8',
indexName: 'ton',
// Optional: see doc section below
contextualSearch: true,

// Optional: path for search page that enabled by default (`false` to disable it)
searchPagePath: 'search',

debug: false
},

image: 'img/snippet.png',
navbar: require('./navbar'),
Expand Down
1 change: 1 addition & 0 deletions static/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Algolia-Crawler-Verif: 219DA811252FA1D8

0 comments on commit 641544a

Please sign in to comment.