Skip to content

Commit

Permalink
feat: add local search
Browse files Browse the repository at this point in the history
  • Loading branch information
CumpsD committed Dec 22, 2023
1 parent fd81b2f commit 59b00f2
Show file tree
Hide file tree
Showing 4 changed files with 357 additions and 2 deletions.
18 changes: 16 additions & 2 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,22 @@ const config: Config = {
'@docusaurus/theme-classic',
{
customCss: './custom.css',
}
]
},
],
[
'@easyops-cn/docusaurus-search-local',
{
indexDocs: true,
indexBlog: false,
indexPages: false,
docsRouteBasePath: '/',
docsDir: 'docs',
searchBarShortcutHint: false,
searchBarPosition: 'right',
hashed: true,
language: ['en', 'nl'],
},
],
],

plugins: [
Expand Down
28 changes: 28 additions & 0 deletions i18n/nl/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -229,5 +229,33 @@
"theme.unlistedContent.message": {
"message": "This page is unlisted. Search engines will not index it, and only users having a direct link can access it.",
"description": "The unlisted content banner message"
},
"theme.SearchBar.label": {
"message": "Zoeken",
"description": "Search button label"
},
"theme.SearchBar.seeAll": {
"message": "Bekijk alle resultaten",
"description": "The link to see all search results"
},
"theme.SearchBar.noResultsText": {
"message": "Geen resultaten",
"description": "Label to indicate there are no results"
},
"theme.SearchPage.existingResultsTitle": {
"message": "Zoekresultaten voor \"{query}\"",
"description": "Title of search results page"
},
"theme.SearchPage.emptyResultsTitle": {
"message": "Zoeken",
"description": "Title of search results page"
},
"theme.SearchPage.documentsFound.plurals": {
"message": "1 resultaat gevonden|{count} resultaten gevonden",
"description": "Paragraph on search results page"
},
"theme.SearchPage.noResultsText": {
"message": "Er zijn geen resultaten gevonden",
"description": "Paragraph on search results page"
}
}
Loading

0 comments on commit 59b00f2

Please sign in to comment.