Skip to content

Commit

Permalink
switching to algolia search
Browse files Browse the repository at this point in the history
  • Loading branch information
pavanpodila committed Jan 6, 2024
1 parent 5710cd2 commit 04b736b
Showing 3 changed files with 213 additions and 366 deletions.
12 changes: 10 additions & 2 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ module.exports = {
baseUrl: '/',
onBrokenLinks: 'throw',
favicon: 'mobx.png',
organizationName: 'mobxjs', // Usually your GitHub org/user name.
organizationName: 'mobxjs', // Usually your GitHub org/username.
projectName: 'mobx.dart', // Usually your repo name.
themeConfig: {
colorMode: {
@@ -109,6 +109,14 @@ module.exports = {
},
{ name: 'twitter:image:alt', content: 'The MobX Logo' },
],
algolia: {
appId: 'AMDU1T0FSC',

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

indexName: 'mobx',
},
},
plugins: [
[
@@ -117,7 +125,7 @@ module.exports = {
indexBaseUrl: true,
},
],
require.resolve('docusaurus-lunr-search'),
// require.resolve('docusaurus-lunr-search'),
function postCSSPlugin(context, options) {
return {
name: 'docusaurus-tailwindcss',
16 changes: 7 additions & 9 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -11,26 +11,25 @@
"serve": "docusaurus serve --port 3001"
},
"dependencies": {
"@docusaurus/core": "^3.0.1",
"@docusaurus/preset-classic": "^3.0.1",
"@docusaurus/core": "^3.1.0",
"@docusaurus/preset-classic": "^3.1.0",
"@emotion/react": "^11.11.3",
"@emotion/styled": "^11.11.0",
"@mdx-js/react": "^3.0.0",
"@splinetool/react-spline": "^2.2.6",
"@splinetool/runtime": "^1.0.17",
"axios": "^1.6.3",
"docusaurus-lunr-search": "^3.3.1",
"dotenv": "^16.3.1",
"lodash.get": "^4.4.2",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "3.0.0",
"@docusaurus/types": "^3.0.1",
"@docusaurus/module-type-aliases": "^3.1.0",
"@docusaurus/types": "^3.1.0",
"@types/lodash.get": "^4.4.9",
"@types/node": "^20.10.5",
"@types/react": "^18.2.45",
"@types/node": "^20.10.6",
"@types/react": "^18.2.47",
"autoprefixer": "^10.4.16",
"lunr": "^2.3.9",
"postcss": "^8.4.32",
@@ -42,8 +41,7 @@
"webpack": "^5.89.0"
},
"peerDependencies": {
"@algolia/client-search": "^4.14.3",
"lunr": "^2.3.9",
"@algolia/client-search": "^4.22.0",
"react-loadable": "^5.5.0"
},
"browserslist": {
Loading

0 comments on commit 04b736b

Please sign in to comment.