Skip to content

Commit

Permalink
Add local search to documentation site (#334)
Browse files Browse the repository at this point in the history
* Add local search index feature

* Replace favicon

* Add sponsor link to header
  • Loading branch information
klaasnicolaas authored Jan 11, 2024
1 parent 17e40b3 commit 7627a73
Show file tree
Hide file tree
Showing 4 changed files with 502 additions and 2 deletions.
18 changes: 16 additions & 2 deletions docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,15 @@ const config: Config = {
label: 'FAQ',
},
{to: '/blog', label: 'Blog', position: 'left'},
{
href: `https://github.com/sponsors/${organizationName}`,
label: 'Sponsor',
position: 'right',
},
{
href: `https://github.com/${organizationName}/${projectName}`,
label: 'GitHub',
position: 'right',
className: 'header-github-link',
'aria-label': 'GitHub repository',
},
],
},
Expand Down Expand Up @@ -135,6 +138,17 @@ const config: Config = {
darkTheme: prismThemes.dracula,
},
} satisfies Preset.ThemeConfig,

plugins: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
{
hashed: true,
removeDefaultStopWordFilter: true,
indexPages: true,
},
]
]
};

export default config;
Loading

0 comments on commit 7627a73

Please sign in to comment.