aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-03-20 23:35:48 +0800
committerFabio Berger <me@fabioberger.com>2018-03-20 23:35:48 +0800
commit27880a6059f282cdee833523a6144bcafa8c266b (patch)
tree510a6c48da487d6de9d973e3fa9ffe197671c737
parent0367e4117aea9a5bcf68b8f7518e92a4aa5ed485 (diff)
downloaddexon-sol-tools-27880a6059f282cdee833523a6144bcafa8c266b.tar
dexon-sol-tools-27880a6059f282cdee833523a6144bcafa8c266b.tar.gz
dexon-sol-tools-27880a6059f282cdee833523a6144bcafa8c266b.tar.bz2
dexon-sol-tools-27880a6059f282cdee833523a6144bcafa8c266b.tar.lz
dexon-sol-tools-27880a6059f282cdee833523a6144bcafa8c266b.tar.xz
dexon-sol-tools-27880a6059f282cdee833523a6144bcafa8c266b.tar.zst
dexon-sol-tools-27880a6059f282cdee833523a6144bcafa8c266b.zip
Remove s3 mapping since s3 folder names are now identical to sub-package names
-rw-r--r--packages/website/ts/pages/documentation/doc_page.tsx13
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);