diff options
author | Fabio Berger <me@fabioberger.com> | 2018-03-20 23:35:48 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-03-20 23:35:48 +0800 |
commit | 27880a6059f282cdee833523a6144bcafa8c266b (patch) | |
tree | 510a6c48da487d6de9d973e3fa9ffe197671c737 /packages/website/ts/pages | |
parent | 0367e4117aea9a5bcf68b8f7518e92a4aa5ed485 (diff) | |
download | dexon-0x-contracts-27880a6059f282cdee833523a6144bcafa8c266b.tar.gz dexon-0x-contracts-27880a6059f282cdee833523a6144bcafa8c266b.tar.zst dexon-0x-contracts-27880a6059f282cdee833523a6144bcafa8c266b.zip |
Remove s3 mapping since s3 folder names are now identical to sub-package names
Diffstat (limited to 'packages/website/ts/pages')
-rw-r--r-- | packages/website/ts/pages/documentation/doc_page.tsx | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/packages/website/ts/pages/documentation/doc_page.tsx b/packages/website/ts/pages/documentation/doc_page.tsx index b6dfc04b2..26a80c745 100644 --- a/packages/website/ts/pages/documentation/doc_page.tsx +++ b/packages/website/ts/pages/documentation/doc_page.tsx @@ -29,17 +29,6 @@ const idToIcon: { [id: string]: string } = { [DocPackages.SmartContracts]: 'contracts.png', }; -const docIdToS3FolderName: { [id: string]: string } = { - [DocPackages.ZeroExJs]: '0xjs', - [DocPackages.SmartContracts]: 'smart-contracts', - [DocPackages.Connect]: 'connect', - [DocPackages.Web3Wrapper]: 'web3-wrapper', - [DocPackages.Deployer]: 'deployer', - [DocPackages.JSONSchemas]: 'json-schemas', - [DocPackages.SolCov]: 'sol-cov', - [DocPackages.Subproviders]: 'subproviders', -}; - const docIdToSubpackageName: { [id: string]: string } = { [DocPackages.ZeroExJs]: '0x.js', [DocPackages.Connect]: 'connect', @@ -120,7 +109,7 @@ export class DocPage extends React.Component<DocPageProps, DocPageState> { ); } private async _fetchJSONDocsFireAndForgetAsync(preferredVersionIfExists?: string): Promise<void> { - const folderName = docIdToS3FolderName[this.props.docsInfo.id]; + const folderName = docIdToSubpackageName[this.props.docsInfo.id]; const docBucketRoot = isDevelopment ? constants.S3_STAGING_DOC_BUCKET_ROOT : constants.S3_DOC_BUCKET_ROOT; const versionToFilePath = await docUtils.getVersionToFilePathAsync(docBucketRoot, folderName); const versions = _.keys(versionToFilePath); |