1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-06-02 23:27:22 +02:00

fix search and add some additional options for better usability

This commit is contained in:
tuunit 2024-05-09 16:02:21 +02:00
parent fc701bfd6a
commit e02086f467
No known key found for this signature in database
GPG Key ID: C2172BFA220A037A

View File

@ -62,6 +62,17 @@ const config = {
/** @type {import("@easyops-cn/docusaurus-search-local").PluginOptions} */
({
hashed: true,
docsDir: "docs", // only index the latest docs
language: ["en"],
indexDocs: true,
indexBlog: false,
indexPages: false,
docsRouteBasePath: "/", // fix the default /docs path
searchResultLimits: 10,
searchBarShortcut: true,
removeDefaultStemmer: true, // allow for partial word matching
searchBarShortcutHint: true,
highlightSearchTermsOnTargetPage: true,
}),
]
],