From 27880a6059f282cdee833523a6144bcafa8c266b Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Tue, 20 Mar 2018 15:35:48 +0000 Subject: Remove s3 mapping since s3 folder names are now identical to sub-package names --- packages/website/ts/pages/documentation/doc_page.tsx | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'packages/website/ts') 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 { ); } private async _fetchJSONDocsFireAndForgetAsync(preferredVersionIfExists?: string): Promise { - 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); -- cgit v1.2.3