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

Commit

Permalink
docs: Separate build script (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mcalewaert authored Oct 13, 2021
1 parent cf4dc4b commit c9ececb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
17 changes: 17 additions & 0 deletions docs/docusaurus.build.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
const buildConfig = require('./docusaurus.config');

module.exports = {
...buildConfig,
themeConfig: {
...buildConfig.themeConfig,
algolia: {
apiKey: process.env.ALGOLIA_API_KEY,
indexName: 'arcus-azure',
// Set `contextualSearch` to `true` when having multiple versions!!!
contextualSearch: false,
searchParameters: {
facetFilters: ["tags:eventgrid-proxy"]
},
},
}
}
9 changes: 0 additions & 9 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,6 @@ module.exports = {
organizationName: 'arcus-azure', // Usually your GitHub org/user name.
projectName: 'Arcus - Event Grid Proxy', // Usually your repo name.
themeConfig: {
algolia: {
apiKey: process.env.ALGOLIA_API_KEY,
indexName: 'arcus-azure',
// Set `contextualSearch` to `true` when having multiple versions!!!
contextualSearch: false,
searchParameters: {
facetFilters: ["tags:eventgrid-proxy"]
},
},
image: 'img/arcus.jpg',
navbar: {
title: 'Event Grid Proxy',
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"docusaurus": "docusaurus",
"start": "docusaurus start",
"build": "docusaurus build",
"build": "docusaurus build --config ./docusaurus.build.config.js" ,
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus preview/deploy",
"clear": "docusaurus clear",
Expand Down

0 comments on commit c9ececb

Please sign in to comment.