diff --git a/docs/whitepaper.mdx b/docs/whitepaper.mdx index e389644d..16008b65 100644 --- a/docs/whitepaper.mdx +++ b/docs/whitepaper.mdx @@ -6,7 +6,7 @@ sidebar_label: Whitepaper import useBaseUrl from '@docusaurus/useBaseUrl'; import TOCInline from '@theme/TOCInline'; -Download Whitepaper +Download Whitepaper ### Contributions diff --git a/docusaurus.config.js b/docusaurus.config.js index 3eceec87..5a99d841 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -1,5 +1,5 @@ /** @type {import('@docusaurus/types').DocusaurusConfig} */ -module.exports = { +const docusaurusConfig = { plugins: [ "@docusaurus/theme-live-codeblock", [ @@ -35,21 +35,6 @@ module.exports = { locales: ["en", "de", "zh-CN", "zh-TW"], }, themeConfig: { - algolia: { - apiKey: "YOUR_API_KEY", - indexName: "YOUR_INDEX_NAME", - - // Optional: see doc section below - contextualSearch: true, - - // Optional: see doc section below - appId: "YOUR_APP_ID", - - // Optional: Algolia search parameters - searchParameters: {}, - - //... other Algolia params - }, liveCodeBlock: { /** * The position of the live playground, above or under the editor @@ -163,3 +148,13 @@ module.exports = { ], ], }; + +if (!process.env.DATAHIGHWAY_DOCS_DEV) { + docusaurusConfig.themeConfig.algolia = { + appId: process.env.ALGOLIA_APP_ID, + apiKey: process.env.ALGOLIA_KEY || 'demo-key', + indexName: 'datahighway', + } +} + +module.exports = docusaurusConfig; \ No newline at end of file