aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/containers
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-02-15 02:16:00 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-02-15 02:16:00 +0800
commit2897b729672b0d98bf1eb2fc843c23f5d966f6ee (patch)
tree66f90473ba5acdf0c606c6328acf0d5cb08f427c /packages/website/ts/containers
parent3510985cf472690e12e07e350f1a27bfb263b3bc (diff)
downloaddexon-sol-tools-2897b729672b0d98bf1eb2fc843c23f5d966f6ee.tar
dexon-sol-tools-2897b729672b0d98bf1eb2fc843c23f5d966f6ee.tar.gz
dexon-sol-tools-2897b729672b0d98bf1eb2fc843c23f5d966f6ee.tar.bz2
dexon-sol-tools-2897b729672b0d98bf1eb2fc843c23f5d966f6ee.tar.lz
dexon-sol-tools-2897b729672b0d98bf1eb2fc843c23f5d966f6ee.tar.xz
dexon-sol-tools-2897b729672b0d98bf1eb2fc843c23f5d966f6ee.tar.zst
dexon-sol-tools-2897b729672b0d98bf1eb2fc843c23f5d966f6ee.zip
Add support for intersection types in docs
Diffstat (limited to 'packages/website/ts/containers')
-rw-r--r--packages/website/ts/containers/connect_documentation.tsx9
1 files changed, 7 insertions, 2 deletions
diff --git a/packages/website/ts/containers/connect_documentation.tsx b/packages/website/ts/containers/connect_documentation.tsx
index 22ba4a7a1..f6aae415d 100644
--- a/packages/website/ts/containers/connect_documentation.tsx
+++ b/packages/website/ts/containers/connect_documentation.tsx
@@ -6,7 +6,8 @@ import { DocsInfo } from 'ts/pages/documentation/docs_info';
import { Documentation as DocumentationComponent, DocumentationAllProps } from 'ts/pages/documentation/documentation';
import { Dispatcher } from 'ts/redux/dispatcher';
import { State } from 'ts/redux/reducer';
-import { DocsInfoConfig, WebsitePaths } from 'ts/types';
+import { DocsInfoConfig, Environments, WebsitePaths } from 'ts/types';
+import { configs } from 'ts/utils/configs';
import { constants } from 'ts/utils/constants';
import { typeDocUtils } from 'ts/utils/typedoc_utils';
@@ -23,12 +24,16 @@ const connectDocSections = {
types: constants.TYPES_SECTION_NAME,
};
+const s3BucketName =
+ configs.ENVIRONMENT === Environments.DEVELOPMENT ? 'staging-connect-docs-jsons' : 'connect-docs-jsons';
+const docsJsonRoot = `https://s3.amazonaws.com/${s3BucketName}`;
+
const docsInfoConfig: DocsInfoConfig = {
displayName: '0x Connect',
subPackageName: 'connect',
packageUrl: 'https://github.com/0xProject/0x.js',
websitePath: WebsitePaths.Connect,
- docsJsonRoot: 'https://s3.amazonaws.com/connect-docs-jsons',
+ docsJsonRoot,
menu: {
introduction: [connectDocSections.introduction],
install: [connectDocSections.installation],