diff --git a/docs/docusaurus.build.config.js b/docs/docusaurus.build.config.js new file mode 100644 index 00000000..ade7f138 --- /dev/null +++ b/docs/docusaurus.build.config.js @@ -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: true, + searchParameters: { + facetFilters: ["tags:scripting"] + }, + }, + } +} \ No newline at end of file diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index c8258a08..c7974790 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -12,15 +12,6 @@ module.exports = { organizationName: 'arcus-azure', // Usually your GitHub org/user name. projectName: 'Arcus - Scripting', // Usually your repo name. themeConfig: { - algolia: { - apiKey: process.env.ALGOLIA_API_KEY, - indexName: 'arcus-azure', - // Set `contextualSearch` to `true` when having multiple versions!!! - contextualSearch: true, - searchParameters: { - facetFilters: ["tags:scripting"] - }, - }, image: 'img/arcus.jpg', navbar: { title: 'Scripting', diff --git a/docs/package.json b/docs/package.json index 340cb9c2..c41e5199 100644 --- a/docs/package.json +++ b/docs/package.json @@ -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 deploy", "clear": "docusaurus clear",