diff options
author | Fabio Berger <me@fabioberger.com> | 2017-12-20 04:26:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-20 04:26:34 +0800 |
commit | c39ac903a972930d538f8fa3292c658201b1c5e5 (patch) | |
tree | 601833585d62dea776eff036520028c78917dbd2 /packages/website/ts/containers/smart_contracts_documentation.tsx | |
parent | 1316a2dd2a8971771f750d8a7f457212daad520b (diff) | |
parent | 8a940a800aa6f042f7932df6de83148c3cc3f268 (diff) | |
download | dexon-sol-tools-c39ac903a972930d538f8fa3292c658201b1c5e5.tar dexon-sol-tools-c39ac903a972930d538f8fa3292c658201b1c5e5.tar.gz dexon-sol-tools-c39ac903a972930d538f8fa3292c658201b1c5e5.tar.bz2 dexon-sol-tools-c39ac903a972930d538f8fa3292c658201b1c5e5.tar.lz dexon-sol-tools-c39ac903a972930d538f8fa3292c658201b1c5e5.tar.xz dexon-sol-tools-c39ac903a972930d538f8fa3292c658201b1c5e5.tar.zst dexon-sol-tools-c39ac903a972930d538f8fa3292c658201b1c5e5.zip |
Merge pull request #275 from 0xProject/refactor/website
Refactor Website
Diffstat (limited to 'packages/website/ts/containers/smart_contracts_documentation.tsx')
-rw-r--r-- | packages/website/ts/containers/smart_contracts_documentation.tsx | 38 |
1 files changed, 21 insertions, 17 deletions
diff --git a/packages/website/ts/containers/smart_contracts_documentation.tsx b/packages/website/ts/containers/smart_contracts_documentation.tsx index 1f82bda0f..e32abaea9 100644 --- a/packages/website/ts/containers/smart_contracts_documentation.tsx +++ b/packages/website/ts/containers/smart_contracts_documentation.tsx @@ -9,16 +9,13 @@ import { } from 'ts/pages/documentation/documentation'; import {Dispatcher} from 'ts/redux/dispatcher'; import {State} from 'ts/redux/reducer'; -import {DocsInfoConfig, WebsitePaths} from 'ts/types'; -import {constants} from 'ts/utils/constants'; +import {DocsInfoConfig, SmartContractDocSections as Sections, WebsitePaths} from 'ts/types'; import {doxityUtils} from 'ts/utils/doxity_utils'; /* tslint:disable:no-var-requires */ const IntroMarkdown = require('md/docs/smart_contracts/introduction'); /* tslint:enable:no-var-requires */ -const sections = constants.smartContractDocSections; - const docsInfoConfig: DocsInfoConfig = { displayName: '0x Smart Contracts', packageUrl: 'https://github.com/0xProject/contracts', @@ -26,26 +23,33 @@ const docsInfoConfig: DocsInfoConfig = { docsJsonRoot: 'https://s3.amazonaws.com/smart-contracts-docs-json', menu: { introduction: [ - sections.Introduction, + Sections.Introduction, ], contracts: [ - sections.Exchange, - sections.TokenRegistry, - sections.ZRXToken, - sections.EtherToken, - sections.TokenTransferProxy, + Sections.Exchange, + Sections.TokenRegistry, + Sections.ZRXToken, + Sections.EtherToken, + Sections.TokenTransferProxy, ], }, sectionNameToMarkdown: { - [sections.Introduction]: IntroMarkdown, + [Sections.Introduction]: IntroMarkdown, + }, + sections: { + Introduction: Sections.Introduction, + Exchange: Sections.Exchange, + TokenTransferProxy: Sections.TokenTransferProxy, + TokenRegistry: Sections.TokenRegistry, + ZRXToken: Sections.ZRXToken, + EtherToken: Sections.EtherToken, }, - sections, visibleConstructors: [ - sections.Exchange, - sections.TokenRegistry, - sections.ZRXToken, - sections.EtherToken, - sections.TokenTransferProxy, + Sections.Exchange, + Sections.TokenRegistry, + Sections.ZRXToken, + Sections.EtherToken, + Sections.TokenTransferProxy, ], convertToDocAgnosticFormatFn: doxityUtils.convertToDocAgnosticFormat.bind(doxityUtils), }; |