-
-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b4ed8cf
commit 1b89033
Showing
86 changed files
with
1,300 additions
and
437 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import Link from 'next/link' | ||
import clx from 'classnames' | ||
import { useDark } from '../../hooks/useDark.js' | ||
import { BsArrowRightShort } from 'react-icons/bs' | ||
|
||
const docs = [ | ||
{ | ||
name: 'Open-Source Docs', | ||
description: 'Documentation for Orama\'s open-source projects', | ||
link: '/open-source' | ||
}, | ||
{ | ||
name: 'Orama Cloud Docs', | ||
description: 'Documentation and guides for Orama Cloud', | ||
link: '/cloud' | ||
} | ||
] | ||
|
||
const bgOSS = { | ||
dark: 'radial-gradient(77.55% 79.46% at 5.73% 0%, #6A6279 0%, rgba(16, 17, 17, 0.00) 100%)', | ||
light: 'radial-gradient(77.55% 79.46% at 5.73% 0%, #EBE8F0 0%, #FFF 100%)' | ||
} | ||
|
||
const bgCloud = { | ||
dark: 'radial-gradient(77.55% 79.46% at 5.73% 0%, #4C3088 0%, rgba(16, 17, 17, 0.00) 100%)', | ||
light: 'radial-gradient(77.55% 79.46% at 5.73% 0%, #D0A6F1 0%, rgba(255, 255, 255, 0.00) 100%)' | ||
} | ||
|
||
export function DocCards () { | ||
const isDark = useDark() | ||
|
||
return ( | ||
<div className='relative flex flex-col md:flex-row w-full'> | ||
{docs.map((doc, index) => ( | ||
<Link href={doc.link} key={index}> | ||
<div | ||
className={clx('flex flex-col w-72 md:h-48 h-38 p-6 border dark:border-zinc-800 border-zinc-200 rounded-md transition-all ease-linear hover:shadow-xl hover:border-zinc-600', { | ||
'md:mr-8': index === 0, | ||
'md:ml-8 mt-4 md:mt-0': index === 1, | ||
})} | ||
style={{ | ||
background: index === 0 ? bgOSS[isDark ? 'dark' : 'light'] : bgCloud[isDark ? 'dark' : 'light'] | ||
}} | ||
> | ||
<h2 className='font-bold text-m dark:text-zinc-200 text-zinc-900'> | ||
{doc.name} | ||
</h2> | ||
<p className={clx('text-xs dark:text-zinc-300 text-zinc-900 mt-1')}> | ||
{doc.description} | ||
</p> | ||
|
||
<div className='flex justify-center relative w-full'> | ||
<div className='transform md:translate-y-12 translate-y-4'> | ||
<BsArrowRightShort className='dark:text-zinc-500 text-zinc-400 w-8 h-8' /> | ||
</div> | ||
</div> | ||
</div> | ||
</Link> | ||
))} | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { Navbar } from 'nextra-theme-docs' | ||
|
||
export function Navigation (props) { | ||
return ( | ||
<Navbar {...props} /> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import Image from 'next/image' | ||
import Zoom from 'react-medium-image-zoom' | ||
import 'react-medium-image-zoom/dist/styles.css' | ||
|
||
export function Screenshot({ src, alt }) { | ||
return ( | ||
<Zoom> | ||
<Image src={src} width={1280} height={720} alt={alt} className='nx-rounded-md nx-my-8 nx-border nx-border-neutral-200' /> | ||
</Zoom> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { useState, useEffect } from 'react' | ||
import { useTheme } from 'next-themes' | ||
|
||
export const useDark = () => { | ||
const { resolvedTheme } = useTheme() | ||
const [isDark, setIsDark] = useState(false) | ||
useEffect(() => { | ||
setIsDark(resolvedTheme === 'dark') | ||
return () => false | ||
}, [resolvedTheme]) | ||
return isDark | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,21 @@ | ||
{ | ||
"search-reference": { | ||
"type": "menu", | ||
"title": "Search Features", | ||
"items": { | ||
"vector-search": { | ||
"title": "Vector Search", | ||
"href": "/usage/search/vector-search" | ||
}, | ||
"typo-tolerance": { | ||
"title": "Typo Tolerance", | ||
"href": "/usage/search/introduction#typo-tolerance" | ||
}, | ||
"geosearch": { | ||
"title": "Geosearch", | ||
"href": "/usage/search/geosearch" | ||
}, | ||
"exact-match": { | ||
"title": "Exact Match", | ||
"href": "/usage/search/introduction#exact-match" | ||
}, | ||
"fields-boosting": { | ||
"title": "Fields Boosting", | ||
"href": "/usage/search/fields-boosting" | ||
}, | ||
"facets": { | ||
"title": "Facets", | ||
"href": "/usage/search/facets" | ||
}, | ||
"filters": { | ||
"title": "Filters", | ||
"href": "/usage/search/filters" | ||
} | ||
} | ||
}, | ||
"nextra_link": { | ||
"type": "page", | ||
"title": "Slack Support ↗", | ||
"href": "https://orama.to/slack", | ||
"newWindow": true | ||
"*": { | ||
"type": "page" | ||
}, | ||
"--- Getting Started": { | ||
"title": "Getting Started", | ||
"type": "separator" | ||
"index": { | ||
"display": "hidden", | ||
"theme": { | ||
"layout": "full", | ||
"sidebar": false, | ||
"toc": false | ||
} | ||
}, | ||
"index": "Introduction", | ||
"usage": "Usage", | ||
"--- Advanced": { | ||
"title": "Advanced", | ||
"type": "separator" | ||
"open-source": { | ||
"display": "hidden", | ||
"title": "Open Source" | ||
}, | ||
"internals": "Internals", | ||
"plugins": "Plugins", | ||
"text-analysis": "Text Analysis" | ||
} | ||
"cloud": { | ||
"display": "hidden", | ||
"title": "Cloud" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"--- Orama Cloud": { | ||
"title": "Orama Cloud", | ||
"type": "separator" | ||
}, | ||
"index": "Introduction", | ||
"understanding-orama": "Understanding Orama", | ||
"--- Guides": { | ||
"title": "Guides", | ||
"type": "separator" | ||
}, | ||
"indexes": "Working with Indexes", | ||
"data-sources": "Data Sources", | ||
"integrating-orama-cloud": "Integrating Orama Cloud", | ||
"slack_support": { | ||
"type": "page", | ||
"title": "Slack Support ↗", | ||
"href": "https://orama.to/slack", | ||
"newWindow": true | ||
}, | ||
"oss_docs": { | ||
"type": "page", | ||
"title": "Open Source Docs", | ||
"href": "https://docs.oramasearch.com", | ||
"newWindow": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"native-integrations": "Native integrations", | ||
"custom": "Custom integrations" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"rest-api": "REST API", | ||
"webhook": "Webhook", | ||
"csv-file": "CSV File", | ||
"json-file": "JSON File" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Import a CSV file to Orama Cloud |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Import a JSON file to Orama Cloud |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Connect Orama Cloud to a REST API |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Feed via WebHooks |
5 changes: 5 additions & 0 deletions
5
packages/docs/pages/cloud/data-sources/native-integrations/_meta.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"introduction": "Introduction", | ||
"shopify": "Shopify", | ||
"docusaurus": "Docusaurus" | ||
} |
1 change: 1 addition & 0 deletions
1
packages/docs/pages/cloud/data-sources/native-integrations/docusaurus.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Connect Orama Cloud to Docusaurus |
15 changes: 15 additions & 0 deletions
15
packages/docs/pages/cloud/data-sources/native-integrations/introduction.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Native Integrations | ||
|
||
With Orama, you can integrate with every external system, library, and API. | ||
|
||
While we let you build your own integrations via our **custom integrations** feature, we also provide a set of native integrations that you can use out of the box. | ||
|
||
At the time of writing this, we have the following native integrations: | ||
|
||
- [**Shopify**](/cloud/data-sources/native-integrations/shopify) | ||
- [**Docusaurus**](/cloud/data-sources/native-integrations/docusaurus) (Coming soon) | ||
- [**Nextra**](/cloud/data-sources/native-integrations/nextra) (Coming soon) | ||
|
||
When available, we suggest using native integrations over custom integrations, as they are highly optimized and provide a better developer experience, performance, and maintainability. | ||
|
||
We're working on adding more native integrations, so if you have any suggestions, please let us know at [info@oramasearch.com](mailto:info@oramasearch.com)! |
Oops, something went wrong.
1b89033
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.
Successfully deployed to the following URLs:
orama-docs – ./
orama-docs-oramasearch.vercel.app
orama-docs-git-main-oramasearch.vercel.app
orama-docs.vercel.app
docs.oramasearch.com