Skip to content

Commit

Permalink
i18n Ajout de la barre de recherche
Browse files Browse the repository at this point in the history
  • Loading branch information
clementdelafontaine committed Oct 11, 2024
1 parent 6ea7a4d commit 8f26750
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,16 @@ const config = {
themes: ['@docusaurus/theme-mermaid'],

plugins: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
({
// ... Your options.
// `hashed` is recommended as long-term-cache of index file is possible.
hashed: true,
})
],
'docusaurus-plugin-matomo',

],
presets: [
[
Expand Down Expand Up @@ -134,7 +143,10 @@ const config = {
// label: 'Comment ajouter vos commentaires',
value:'<a href="/howTo" class="navbar__item navbar__link"> <img src="/img/annotation.svg" alt=" " width="15rem" /> Comment commenter ?</a>'
},
*/
*/{
"type": "search",
"position": "right"
},
{
type: 'localeDropdown',
position: 'right'
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@docusaurus/core": "3.0.0",
"@docusaurus/preset-classic": "3.0.0",
"@docusaurus/theme-mermaid": "3.0.0",
"@easyops-cn/docusaurus-search-local": "^0.44.6",
"@mdx-js/react": "^3.0.0",
"clsx": "^2.1.1",
"docusaurus-plugin-matomo": "^0.0.8",
Expand Down

0 comments on commit 8f26750

Please sign in to comment.