Skip to content

Commit

Permalink
Disable Algolia for local docsite build
Browse files Browse the repository at this point in the history
  • Loading branch information
esimkowitz committed Oct 1, 2024
1 parent 6712b90 commit 3ecce72
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ const config: Config = {
},
],
],
themes: [["classic", { customCss: "src/css/custom.css" }], "@docusaurus/theme-search-algolia"],
themes: [
["classic", { customCss: "src/css/custom.css" }],
!process.env.DISABLE_ALGOLIA ? "@docusaurus/theme-search-algolia" : undefined,
].filter((v) => v),
themeConfig: {
docs: {
sidebar: {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"scripts": {
"docusaurus": "docusaurus",
"start": "docusaurus start",
"build": "docusaurus build --no-minify",
"build": "USE_SIMPLE_CSS_MINIFIER=true docusaurus build",
"build-local": "DISABLE_ALGOLIA=true run build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",
Expand Down

0 comments on commit 3ecce72

Please sign in to comment.