Skip to content

Commit

Permalink
fix env variables, download whitepaper link
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffstahlnecker committed Jun 9, 2021
1 parent 0c2d6bb commit c0ac2e9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 17 deletions.
2 changes: 1 addition & 1 deletion docs/whitepaper.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sidebar_label: Whitepaper
import useBaseUrl from '@docusaurus/useBaseUrl';
import TOCInline from '@theme/TOCInline';

<a href={useBaseUrl("/whitepapers/economic/whitepaper_latest.pdf")}>Download Whitepaper</a>
<a href={useBaseUrl("/whitepapers/economic/whitepaper_latest.pdf")} target="_blank">Download Whitepaper</a>

### Contributions

Expand Down
27 changes: 11 additions & 16 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
const docusaurusConfig = {
plugins: [
"@docusaurus/theme-live-codeblock",
[
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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;

0 comments on commit c0ac2e9

Please sign in to comment.