aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-docs-example/ts/docs.tsx
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-07-20 00:15:35 +0800
committerFabio Berger <me@fabioberger.com>2018-07-20 00:15:35 +0800
commitf2c49e8b37141f26fafa4517ea7c6ca1804f82a0 (patch)
treeed900809fe57b0ef58ca37dd0a06340b2d6b4333 /packages/react-docs-example/ts/docs.tsx
parent34df5af2955079dadd7d63c67a3f93cc82adbff3 (diff)
parent9b6476a6b7db8db7b0fc6bbf9306c01566fb47a9 (diff)
downloaddexon-sol-tools-f2c49e8b37141f26fafa4517ea7c6ca1804f82a0.tar
dexon-sol-tools-f2c49e8b37141f26fafa4517ea7c6ca1804f82a0.tar.gz
dexon-sol-tools-f2c49e8b37141f26fafa4517ea7c6ca1804f82a0.tar.bz2
dexon-sol-tools-f2c49e8b37141f26fafa4517ea7c6ca1804f82a0.tar.lz
dexon-sol-tools-f2c49e8b37141f26fafa4517ea7c6ca1804f82a0.tar.xz
dexon-sol-tools-f2c49e8b37141f26fafa4517ea7c6ca1804f82a0.tar.zst
dexon-sol-tools-f2c49e8b37141f26fafa4517ea7c6ca1804f82a0.zip
Merge branch 'v2-prototype' into doc-changes
* v2-prototype: Add missing import Remove comment and add assertion Add ability to nest doc ref markdown under specific versions
Diffstat (limited to 'packages/react-docs-example/ts/docs.tsx')
-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"'],