-
-
Notifications
You must be signed in to change notification settings - Fork 313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: use new searchbox #761
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
packages/docs/astro.config.mjs
Outdated
@@ -11,7 +11,7 @@ export default defineConfig({ | |||
site: "https://docs.orama.com", | |||
vite: { | |||
ssr: { | |||
noExternal: ['nanoid'] | |||
noExternal: ['nanoid', '@orama/react-components'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in memory of the hell behind this line.... 😄
api_key: 'NKiqTJnwnKsQCdxN7RyOBJgeoW5hJ594', | ||
endpoint: 'https://cloud.orama.run/v1/indexes/orama-docs-bzo330' | ||
}) | ||
defineCustomElements() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- to be removed with the next release of
@orama/react-components
import { SearchBox, SearchButton } from '@orama/searchbox' | ||
import '@orama/searchbox/dist/index.css' | ||
import { OramaSearchBox, defineCustomElements } from '@orama/react-components' | ||
import '@orama/react-components/dist/index.css' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style should be already bundled actually, if you remove this import I expect you to not have problems with style
eq: currentCategory | ||
} | ||
} | ||
: {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure, but maybe we don't need really need this if it's used for facets
- check if we need to add add this
where
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checked that we need it to filter between open source and cloud doc
Adds the new searchbox.
It has some issues, but next release should fix most of them.