Skip to content

Commit

Permalink
Merge pull request #49 from transpara/searchbar-2
Browse files Browse the repository at this point in the history
Searchbar
  • Loading branch information
htessaro authored Apr 4, 2024
2 parents d971767 + 46a847f commit cc78fe7
Show file tree
Hide file tree
Showing 4 changed files with 402 additions and 9 deletions.
25 changes: 20 additions & 5 deletions visual-kpi-docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@ const darkTheme = themes.dracula;

/** @type {import('@docusaurus/types').Config} */
const config = {
themes: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
({
// ... Your options.
// `hashed` is recommended as long-term-cache of index file is possible.
hashed: true,
searchResultContextMaxLength: 100
// For Docs using Chinese, The `language` is recommended to set to:
// ```
// language: ["en", "zh"],
// ```
}),
],
],
plugins: [
// [
// require.resolve('@cmfcmf/docusaurus-search-local'),
Expand Down Expand Up @@ -135,6 +150,11 @@ const config = {
to: 'docs/',
className: 'docs_btn'
},
{
type: 'search',
position: 'right',
className: 'searchbar'
},
{
to: 'https://www.transpara.com/contact-us/',
label: 'Support',
Expand All @@ -148,11 +168,6 @@ const config = {
// className: 'navbar_link_buttons'
// },
// {
// type: 'search',
// position: 'right',
// className: 'searchbar'
// },
// {
// href: 'https://github.com/orgs/writechoiceorg/',
// label: 'GitHub',
// position: 'right',
Expand Down
Loading

0 comments on commit cc78fe7

Please sign in to comment.