aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/containers/json_schemas_documentation.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/website/ts/containers/json_schemas_documentation.ts
parenta9b320e636850693edd535da20ce7e5ec949926e (diff)
downloaddexon-0x-contracts-324b1079e7eb29829bf06ff65299acdc58abf308.tar.gz
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/json_schemas_documentation.ts')
-rw-r--r--packages/website/ts/containers/json_schemas_documentation.ts20
1 files changed, 11 insertions, 9 deletions
diff --git a/packages/website/ts/containers/json_schemas_documentation.ts b/packages/website/ts/containers/json_schemas_documentation.ts
index 67740d4c6..523777114 100644
--- a/packages/website/ts/containers/json_schemas_documentation.ts
+++ b/packages/website/ts/containers/json_schemas_documentation.ts
@@ -9,10 +9,10 @@ import { DocPackages } from 'ts/types';
import { Translate } from 'ts/utils/translate';
/* tslint:disable:no-var-requires */
-const IntroMarkdown = require('md/docs/json_schemas/introduction');
-const InstallationMarkdown = require('md/docs/json_schemas/installation');
-const UsageMarkdown = require('md/docs/json_schemas/usage');
-const SchemasMarkdown = require('md/docs/json_schemas/schemas');
+const IntroMarkdownV1 = require('md/docs/json_schemas/1.0.0/introduction');
+const InstallationMarkdownV1 = require('md/docs/json_schemas/1.0.0/installation');
+const UsageMarkdownV1 = require('md/docs/json_schemas/1.0.0/usage');
+const SchemasMarkdownV1 = require('md/docs/json_schemas/1.0.0/schemas');
/* tslint:enable:no-var-requires */
const docSections = {
@@ -35,11 +35,13 @@ const docsInfoConfig: DocsInfoConfig = {
schemaValidator: [docSections.schemaValidator],
schemas: [docSections.schemas],
},
- sectionNameToMarkdown: {
- [docSections.introduction]: IntroMarkdown,
- [docSections.installation]: InstallationMarkdown,
- [docSections.schemas]: SchemasMarkdown,
- [docSections.usage]: UsageMarkdown,
+ sectionNameToMarkdownByVersion: {
+ '0.0.1': {
+ [docSections.introduction]: IntroMarkdownV1,
+ [docSections.installation]: InstallationMarkdownV1,
+ [docSections.schemas]: SchemasMarkdownV1,
+ [docSections.usage]: UsageMarkdownV1,
+ },
},
sectionNameToModulePath: {
[docSections.schemaValidator]: ['"json-schemas/src/schema_validator"'],