mirror of
https://github.com/clearml/clearml-docs
synced 2025-02-12 07:25:44 +00:00
Improve search bar (#700)
This commit is contained in:
parent
0642933dcc
commit
d5a97a435c
@ -26,6 +26,14 @@ module.exports = {
|
|||||||
theme: require('prism-react-renderer/themes/dracula'),
|
theme: require('prism-react-renderer/themes/dracula'),
|
||||||
darkTheme: require('prism-react-renderer/themes/dracula'),
|
darkTheme: require('prism-react-renderer/themes/dracula'),
|
||||||
},
|
},
|
||||||
|
algolia: {
|
||||||
|
appId: 'none', // The application ID provided by Algolia
|
||||||
|
apiKey: 'none', // Public API key
|
||||||
|
indexName: 'none', // index name
|
||||||
|
|
||||||
|
// Optional: see doc section below
|
||||||
|
contextualSearch: true,
|
||||||
|
},
|
||||||
zoomSelector: '.markdown :not(em) > img',
|
zoomSelector: '.markdown :not(em) > img',
|
||||||
colorMode: {
|
colorMode: {
|
||||||
defaultMode: 'light',
|
defaultMode: 'light',
|
||||||
@ -219,33 +227,6 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
themes: [
|
|
||||||
[
|
|
||||||
require.resolve("@easyops-cn/docusaurus-search-local"),
|
|
||||||
{
|
|
||||||
hashed: true,
|
|
||||||
// whether to index docs pages
|
|
||||||
indexDocs: true,
|
|
||||||
// must start with "/" and correspond to the routeBasePath configured for the docs plugin
|
|
||||||
// use "/" if you use docs-only-mode
|
|
||||||
// (see https://v2.docusaurus.io/docs/2.0.0-alpha.70/docs-introduction#docs-only-mode)
|
|
||||||
docsRouteBasePath: '/docs',
|
|
||||||
searchResultLimits: 8,
|
|
||||||
searchResultContextMaxLength: 50,
|
|
||||||
|
|
||||||
// whether to index blog pages
|
|
||||||
indexBlog: false,
|
|
||||||
// blogRouteBasePath: '/blog',
|
|
||||||
|
|
||||||
// files to ignore in search
|
|
||||||
// whether to index static pages
|
|
||||||
// /404.html is never indexed
|
|
||||||
indexPages: false,
|
|
||||||
ignoreFiles: [/docs\/release_notes\/.*/],
|
|
||||||
|
|
||||||
// language of your documentation, see next section
|
|
||||||
language: "en",
|
|
||||||
}]],
|
|
||||||
plugins: [
|
plugins: [
|
||||||
// ... Your other plugins.
|
// ... Your other plugins.
|
||||||
[
|
[
|
||||||
|
Loading…
Reference in New Issue
Block a user