Skip to content

Commit

Permalink
feat: add doc search (#915)
Browse files Browse the repository at this point in the history
* chore: add docusaurus-lunr-search plugin

* Create nine-jeans-argue.md

---------

Co-authored-by: Jack Steam <[email protected]>
  • Loading branch information
hichemfantar and jacksteamdev authored Jan 6, 2025
1 parent ee860e7 commit d9023c3
Show file tree
Hide file tree
Showing 4 changed files with 380 additions and 149 deletions.
5 changes: 5 additions & 0 deletions .changeset/nine-jeans-argue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---

---

feat: add doc search
2 changes: 2 additions & 0 deletions packages/vite-plugin-docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ const config = {
darkTheme: darkCodeTheme,
},
}),

plugins: [require.resolve('docusaurus-lunr-search')],
}

module.exports = config
2 changes: 2 additions & 0 deletions packages/vite-plugin-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
"@docusaurus/theme-classic": "^2.0.0-beta.20",
"@mdx-js/react": "^1.6.22",
"clsx": "^1.1.1",
"docusaurus-lunr-search": "^3.4.0",
"lunr": "^2.3.9",
"prism-react-renderer": "^1.3.1",
"react": "^17.0.2",
"react-dom": "^17.0.2"
Expand Down
Loading

0 comments on commit d9023c3

Please sign in to comment.