aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-docs-example/ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-20 00:14:58 +0800
committerGitHub <noreply@github.com>2018-07-20 00:14:58 +0800
commit9b6476a6b7db8db7b0fc6bbf9306c01566fb47a9 (patch)
treef96d1aa76c7e5aa9e3311d5cdbd0d31c8ec8d7fb /packages/react-docs-example/ts
parent3de88d5345c7a4549bc69e2ca28f0601f5d42189 (diff)
parentd8898cf9a30cc349868afcf2b78e6369e57aa726 (diff)
downloaddexon-sol-tools-9b6476a6b7db8db7b0fc6bbf9306c01566fb47a9.tar
dexon-sol-tools-9b6476a6b7db8db7b0fc6bbf9306c01566fb47a9.tar.gz
dexon-sol-tools-9b6476a6b7db8db7b0fc6bbf9306c01566fb47a9.tar.bz2
dexon-sol-tools-9b6476a6b7db8db7b0fc6bbf9306c01566fb47a9.tar.lz
dexon-sol-tools-9b6476a6b7db8db7b0fc6bbf9306c01566fb47a9.tar.xz
dexon-sol-tools-9b6476a6b7db8db7b0fc6bbf9306c01566fb47a9.tar.zst
dexon-sol-tools-9b6476a6b7db8db7b0fc6bbf9306c01566fb47a9.zip
Merge pull request #844 from 0xProject/support-multiple-doc-md
Support version-specific doc ref markdown sections
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"'],