Skip to content
This repository was archived by the owner on Sep 10, 2024. It is now read-only.

Commit c535648

Browse files
authored
docs: separate build script (#90)
1 parent ee386c4 commit c535648

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

docs/docusaurus.build.config.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const buildConfig = require('./docusaurus.config');
2+
3+
module.exports = {
4+
...buildConfig,
5+
themeConfig: {
6+
...buildConfig.themeConfig,
7+
algolia: {
8+
apiKey: process.env.ALGOLIA_API_KEY,
9+
indexName: 'arcus-azure',
10+
contextualSearch: true,
11+
searchParameters: {
12+
facetFilters: ["tags:background-jobs"]
13+
},
14+
},
15+
}
16+
}

docs/docusaurus.config.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,6 @@ module.exports = {
1212
organizationName: 'arcus-azure', // Usually your GitHub org/user name.
1313
projectName: 'Arcus Background Jobs', // Usually your repo name.
1414
themeConfig: {
15-
algolia: {
16-
apiKey: process.env.ALGOLIA_API_KEY,
17-
indexName: 'arcus-azure',
18-
contextualSearch: true,
19-
searchParameters: {
20-
facetFilters: ["tags:background-jobs"]
21-
},
22-
},
2315
image: 'img/arcus.jpg',
2416
navbar: {
2517
title: 'Background Jobs',

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"docusaurus": "docusaurus",
77
"start": "docusaurus start",
8-
"build": "docusaurus build",
8+
"build": "docusaurus build --config ./docusaurus.build.config.js" ,
99
"swizzle": "docusaurus swizzle",
1010
"deploy": "docusaurus deploy",
1111
"clear": "docusaurus clear",

0 commit comments

Comments
 (0)