Skip to content

Commit

Permalink
Switched search from lunr to Algolia
Browse files Browse the repository at this point in the history
  • Loading branch information
rfraposa committed May 24, 2022
1 parent 98a63a9 commit 4c84a93
Show file tree
Hide file tree
Showing 11 changed files with 75 additions and 15,414 deletions.
18 changes: 4 additions & 14 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ const config = {
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
algolia: {
appId: 'BH4D9OD16A',
apiKey: 'e239649803024433599de47a53b2d416',
indexName: 'clickhouse-docs',
contextualSearch: true,
appId: '62VCH2MD74',
apiKey: '65b43d2f45ca1a0ca682116b455f7839',
indexName: 'clickhouse',
contextualSearch: false,
searchPagePath: 'search',
},
image: 'img/logo.png',
Expand Down Expand Up @@ -200,16 +200,6 @@ const config = {

plugins: [
'remark-docusaurus-tabs',
[
require.resolve('docusaurus-lunr-search'),
{
excludeRoutes: [
'en/whats-new/changelog/**/*',
'ru/**/*',
'zh/**/*',
]
},
],
[
'@docusaurus/plugin-client-redirects',
{
Expand Down
13,955 changes: 61 additions & 13,894 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"@easyops-cn/docusaurus-search-local": "^0.21.4",
"@mdx-js/react": "^1.6.21",
"clsx": "^1.1.1",
"docusaurus-lunr-search": "^2.1.15",
"prism-react-renderer": "^1.3.1",
"react": "^17.0.1",
"react-dom": "^17.0.1",
Expand Down
10 changes: 10 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -296,3 +296,13 @@ code {
.navbar {
flex: 0 0 var(--ifm-navbar-height);
}

.search-result-match {
font-size: 1.3rem;
}
.breadcrumbs__item {
font-size: 1rem;
}
.searchResultItemHeading_KbCB {
font-size: 1.3rem;
}
Loading

0 comments on commit 4c84a93

Please sign in to comment.