Skip to content

Commit

Permalink
feat: add search
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicGBauer committed Dec 1, 2023
1 parent 322a640 commit 71e6355
Show file tree
Hide file tree
Showing 3 changed files with 301 additions and 428 deletions.
8 changes: 7 additions & 1 deletion docs/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ const config: Config = {
},
],
],

themeConfig: {
image: 'https://assets-global.website-files.com/651d89402147985dc475ff48/65577a5d2602b4209f37f936_powersync-website-meta-img.png',
navbar: {
Expand Down Expand Up @@ -165,6 +164,13 @@ const config: Config = {
],
copyright: `Copyright © ${new Date().getFullYear()} Journey Mobile, Inc.`,
},
algolia: {
appId: '8U0Z3F95NH',
// Public API key: it is safe to commit it
apiKey: '45caa5b7ec2fd9e5f3dbfe8b3c661c04',
indexName: 'powersync-react-native-sdk-react-native-sdk',
contextualSearch: true,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
Expand Down
11 changes: 6 additions & 5 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,19 @@
"typecheck": "tsc"
},
"dependencies": {
"@docusaurus/core": "3.0.0",
"@docusaurus/preset-classic": "3.0.0",
"@docusaurus/core": "^3.0.1",
"@docusaurus/preset-classic": "^3.0.1",
"@docusaurus/theme-search-algolia": "^3.0.1",
"@mdx-js/react": "^3.0.0",
"clsx": "^1.2.1",
"prism-react-renderer": "^2.1.0",
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "3.0.0",
"@docusaurus/tsconfig": "3.0.0",
"@docusaurus/types": "3.0.0",
"@docusaurus/module-type-aliases": "^3.0.1",
"@docusaurus/tsconfig": "3.0.1",
"@docusaurus/types": "3.0.1",
"docusaurus-plugin-typedoc": "^0.21.0",
"typedoc": "^0.25.4",
"typedoc-plugin-markdown": "^3.17.1",
Expand Down
Loading

0 comments on commit 71e6355

Please sign in to comment.