diff options
author | Fabio Berger <me@fabioberger.com> | 2018-07-10 01:05:38 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-07-10 01:05:38 +0800 |
commit | 324b1079e7eb29829bf06ff65299acdc58abf308 (patch) | |
tree | b03cc6abb6cf5595bef75609a82664855db1ad7a /packages/website/ts/containers/web3_wrapper_documentation.ts | |
parent | a9b320e636850693edd535da20ce7e5ec949926e (diff) | |
download | dexon-0x-contracts-324b1079e7eb29829bf06ff65299acdc58abf308.tar dexon-0x-contracts-324b1079e7eb29829bf06ff65299acdc58abf308.tar.gz dexon-0x-contracts-324b1079e7eb29829bf06ff65299acdc58abf308.tar.bz2 dexon-0x-contracts-324b1079e7eb29829bf06ff65299acdc58abf308.tar.lz dexon-0x-contracts-324b1079e7eb29829bf06ff65299acdc58abf308.tar.xz dexon-0x-contracts-324b1079e7eb29829bf06ff65299acdc58abf308.tar.zst dexon-0x-contracts-324b1079e7eb29829bf06ff65299acdc58abf308.zip |
Add ability to nest doc ref markdown under specific versions
Diffstat (limited to 'packages/website/ts/containers/web3_wrapper_documentation.ts')
-rw-r--r-- | packages/website/ts/containers/web3_wrapper_documentation.ts | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/packages/website/ts/containers/web3_wrapper_documentation.ts b/packages/website/ts/containers/web3_wrapper_documentation.ts index b04a83ac4..8d98d9476 100644 --- a/packages/website/ts/containers/web3_wrapper_documentation.ts +++ b/packages/website/ts/containers/web3_wrapper_documentation.ts @@ -10,8 +10,8 @@ import { constants } from 'ts/utils/constants'; import { Translate } from 'ts/utils/translate'; /* tslint:disable:no-var-requires */ -const IntroMarkdown = require('md/docs/web3_wrapper/introduction'); -const InstallationMarkdown = require('md/docs/web3_wrapper/installation'); +const IntroMarkdownV1 = require('md/docs/web3_wrapper/introduction'); +const InstallationMarkdownV1 = require('md/docs/web3_wrapper/installation'); /* tslint:enable:no-var-requires */ const docSections = { @@ -32,9 +32,11 @@ const docsInfoConfig: DocsInfoConfig = { web3Wrapper: [docSections.web3Wrapper], types: [docSections.types], }, - sectionNameToMarkdown: { - [docSections.introduction]: IntroMarkdown, - [docSections.installation]: InstallationMarkdown, + sectionNameToMarkdownByVersion: { + '0.0.1': { + [docSections.introduction]: IntroMarkdownV1, + [docSections.installation]: InstallationMarkdownV1, + }, }, sectionNameToModulePath: { [docSections.web3Wrapper]: ['"web3-wrapper/src/web3_wrapper"'], |