Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
[RTC-469] Add Algolia search (#83)
Browse files Browse the repository at this point in the history
* Docusaurus 3.1

* Add algolia

* Update index name
  • Loading branch information
roznawsk authored Feb 13, 2024
1 parent 7e59ba7 commit 5eea3bc
Show file tree
Hide file tree
Showing 15 changed files with 9,835 additions and 9,148 deletions.
2 changes: 2 additions & 0 deletions docs/tutorials/simple-react-app.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { ImageWrapper } from "./ImageWrapper";
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import JellyfishArchitecture from "./common/_jellyfish-architecture.mdx";
import StartingJellyfishBackend from "./common/_starting-jellyfish-media-server.mdx";
import StartingJellyfishDashboard from "./common/_starting-dashboard.mdx";
Expand Down
20 changes: 18 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,25 @@ const config = {
darkTheme: darkCodeTheme,
additionalLanguages: ['elixir']
},
}),
algolia: {
// The application ID provided by Algolia
appId: 'MKQW7UWJGK',

// Public API key: it is safe to commit it
apiKey: '4b226ecf0912d4f136ebb9ac4f01b4d5',

indexName: 'jellyfish',

// Optional: see doc section below
contextualSearch: true,

plugins: [require.resolve('docusaurus-lunr-search')],
// Optional: Algolia search parameters
searchParameters: {},

// Optional: path for search page that enabled by default (`false` to disable it)
searchPagePath: 'search',
},
}),
};

module.exports = config;
10,182 changes: 5,948 additions & 4,234 deletions package-lock.json

Large diffs are not rendered by default.

15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,17 @@
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
"@docusaurus/core": "^2.4.3",
"@docusaurus/preset-classic": "^2.4.3",
"@mdx-js/react": "^1.6.22",
"@docusaurus/core": "^3.1.1",
"@docusaurus/preset-classic": "^3.1.1",
"@mdx-js/react": "^3.0.1",
"clsx": "^1.2.1",
"docusaurus-lunr-search": "^2.3.2",
"prism-react-renderer": "^1.3.5",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"redocusaurus": "^1.6.3"
"react": "^18.0.2",
"react-dom": "^18.0.2",
"redocusaurus": "^2.0.1"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^2.4.3"
"@docusaurus/module-type-aliases": "^3.1.1"
},
"browserslist": {
"production": [
Expand Down
10 changes: 0 additions & 10 deletions src/theme/SearchBar.js

This file was deleted.

297 changes: 0 additions & 297 deletions src/theme/SearchBar/DocSearch.js

This file was deleted.

Loading

0 comments on commit 5eea3bc

Please sign in to comment.