Skip to content

Commit

Permalink
Use Algolia docsearch (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
damianstasik authored Sep 25, 2023
1 parent 35f96b3 commit ef1ae49
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 328 deletions.
15 changes: 5 additions & 10 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ const config = {
autoCollapseCategories: true,
},
},
algolia: {
appId: "0AUNALFPJF",
apiKey: "5a83e1af5126db1360bdc84bfefb20b8",
indexName: "opentofu",
},
footer: {
links: [
{
Expand Down Expand Up @@ -254,16 +259,6 @@ const config = {
},
image: "/img/og.png",
}),

themes: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
{
// `hashed` is recommended as long-term-cache of index file is possible.
hashed: true,
},
],
],
};

module.exports = config;
276 changes: 0 additions & 276 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,22 @@
"lint": "eslint --cache \"**/*.{js,jsx,ts,tsx}\""
},
"dependencies": {
"cheerio": "^1.0.0-rc.12",
"@typescript-eslint/eslint-plugin": "^6.7.2",
"@typescript-eslint/parser": "^6.7.2",
"eslint": "^8.49.0",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-react-hooks": "^4.6.0",
"@docusaurus/core": "2.4.1",
"@docusaurus/module-type-aliases": "2.4.1",
"@docusaurus/plugin-client-redirects": "^2.4.1",
"@docusaurus/preset-classic": "2.4.1",
"@easyops-cn/docusaurus-search-local": "^0.35.0",
"@mdx-js/react": "^1.6.22",
"@tailwindcss/typography": "^0.5.10",
"@tsconfig/docusaurus": "^1.0.5",
"@typescript-eslint/eslint-plugin": "^6.7.2",
"@typescript-eslint/parser": "^6.7.2",
"autoprefixer": "^10.4.15",
"cheerio": "^1.0.0-rc.12",
"clsx": "^1.2.1",
"eslint": "^8.49.0",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"postcss": "^8.4.29",
"prettier": "^3.0.3",
"prism-react-renderer": "^1.3.5",
Expand Down
Loading

0 comments on commit ef1ae49

Please sign in to comment.