Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,19 @@ const config = {
]
],

themes: [
[
'@cmfcmf/docusaurus-search-local',
/** @type {import('@cmfcmf/docusaurus-search-local').PluginOptions} */
({
indexDocs: true,
indexBlog: false,
indexPages: true,
// highlightSearchTermsOnTargetPage: true
})
]
],

plugins: [
[
'./ocular-docusaurus-plugin',
Expand Down Expand Up @@ -216,17 +229,6 @@ const config = {
],
copyright: `Copyright © ${new Date().getFullYear()} OpenJS Foundation`
},
algolia: {
// The application ID provided by Algolia
appId: '8EVYAVB4KT',
// Public API key: it is safe to commit it
apiKey: 'a3fe1388353d733272ffdf148c53eeaa',
indexName: 'deck',
// Optional: see doc section below
contextualSearch: true,
// Optional: path for search page that enabled by default (`false` to disable it)
searchPagePath: false
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme
Expand Down
1 change: 1 addition & 0 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"styled-react-modal": "^3.1.1"
},
"devDependencies": {
"@cmfcmf/docusaurus-search-local": "^2",
"@docusaurus/core": "^3.9.2",
"@docusaurus/module-type-aliases": "^3.9.2",
"@docusaurus/plugin-content-docs": "^3.9.2",
Expand Down
1 change: 0 additions & 1 deletion website/src/components/example/examples-index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ function renderCategory({label, items}, getThumbnail) {
export default function ExamplesIndex({getThumbnail}) {
const sidebar = useDocsSidebar();

console.log(sidebar)
return (
<MainExamples>
{sidebar.items.map(item => {
Expand Down
Loading