aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-docs-example/ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-10 01:05:38 +0800
committerFabio Berger <me@fabioberger.com>2018-07-10 01:05:38 +0800
commit324b1079e7eb29829bf06ff65299acdc58abf308 (patch)
treeb03cc6abb6cf5595bef75609a82664855db1ad7a /packages/react-docs-example/ts
parenta9b320e636850693edd535da20ce7e5ec949926e (diff)
downloaddexon-sol-tools-324b1079e7eb29829bf06ff65299acdc58abf308.tar
dexon-sol-tools-324b1079e7eb29829bf06ff65299acdc58abf308.tar.gz
dexon-sol-tools-324b1079e7eb29829bf06ff65299acdc58abf308.tar.bz2
dexon-sol-tools-324b1079e7eb29829bf06ff65299acdc58abf308.tar.lz
dexon-sol-tools-324b1079e7eb29829bf06ff65299acdc58abf308.tar.xz
dexon-sol-tools-324b1079e7eb29829bf06ff65299acdc58abf308.tar.zst
dexon-sol-tools-324b1079e7eb29829bf06ff65299acdc58abf308.zip
Add ability to nest doc ref markdown under specific versions
Diffstat (limited to 'packages/react-docs-example/ts')
-rw-r--r--packages/react-docs-example/ts/docs.tsx8
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/react-docs-example/ts/docs.tsx b/packages/react-docs-example/ts/docs.tsx
index b70de1257..bb605806f 100644
--- a/packages/react-docs-example/ts/docs.tsx
+++ b/packages/react-docs-example/ts/docs.tsx
@@ -14,7 +14,7 @@ import * as v0TypeDocJson from './json/0.1.12.json';
import * as v2TypeDocJson from './json/0.2.0.json';
// tslint:disable-next-line:no-implicit-dependencies no-var-requires
-const IntroMarkdown = require('md/introduction');
+const IntroMarkdownV1 = require('md/introduction');
const docSections = {
introduction: 'introduction',
@@ -32,8 +32,10 @@ const docsInfoConfig: DocsInfoConfig = {
web3Wrapper: [docSections.web3Wrapper],
types: [docSections.types],
},
- sectionNameToMarkdown: {
- [docSections.introduction]: IntroMarkdown,
+ sectionNameToMarkdownByVersion: {
+ '0.0.1': {
+ [docSections.introduction]: IntroMarkdownV1,
+ },
},
sectionNameToModulePath: {
[docSections.web3Wrapper]: ['"web3-wrapper/src/index"'],