diff options
author | Fabio Berger <me@fabioberger.com> | 2018-08-02 03:00:45 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-08-02 03:00:45 +0800 |
commit | 2494af99aad4dd58c0d4e647dedf72946cb3c20b (patch) | |
tree | d2c20e41b4cd11874a222897970b2597b2e03092 /packages/website/ts/containers/sol_cov_documentation.ts | |
parent | e5b93d1f0292cb6cc38d3f92d623b27cba6ac233 (diff) | |
download | dexon-sol-tools-2494af99aad4dd58c0d4e647dedf72946cb3c20b.tar dexon-sol-tools-2494af99aad4dd58c0d4e647dedf72946cb3c20b.tar.gz dexon-sol-tools-2494af99aad4dd58c0d4e647dedf72946cb3c20b.tar.bz2 dexon-sol-tools-2494af99aad4dd58c0d4e647dedf72946cb3c20b.tar.lz dexon-sol-tools-2494af99aad4dd58c0d4e647dedf72946cb3c20b.tar.xz dexon-sol-tools-2494af99aad4dd58c0d4e647dedf72946cb3c20b.tar.zst dexon-sol-tools-2494af99aad4dd58c0d4e647dedf72946cb3c20b.zip |
Prefix menu and sections with markdown as that is all the should now be defined
Diffstat (limited to 'packages/website/ts/containers/sol_cov_documentation.ts')
-rw-r--r-- | packages/website/ts/containers/sol_cov_documentation.ts | 28 |
1 files changed, 9 insertions, 19 deletions
diff --git a/packages/website/ts/containers/sol_cov_documentation.ts b/packages/website/ts/containers/sol_cov_documentation.ts index 5567eb97e..0ad7bbfd4 100644 --- a/packages/website/ts/containers/sol_cov_documentation.ts +++ b/packages/website/ts/containers/sol_cov_documentation.ts @@ -14,15 +14,10 @@ const InstallationMarkdownV1 = require('md/docs/sol_cov/installation'); const UsageMarkdown = require('md/docs/sol_cov/usage'); /* tslint:enable:no-var-requires */ -const docSections = { +const markdownSections = { introduction: 'introduction', installation: 'installation', usage: 'usage', - coverageSubprovider: 'coverageSubprovider', - abstractArtifactAdapter: 'abstractArtifactAdapter', - solCompilerArtifactAdapter: 'solCompilerArtifactAdapter', - truffleArtifactAdapter: 'truffleArtifactAdapter', - types: docConstants.TYPES_SECTION_NAME, }; const docsInfoConfig: DocsInfoConfig = { @@ -30,24 +25,19 @@ const docsInfoConfig: DocsInfoConfig = { type: SupportedDocJson.TypeDoc, displayName: 'Sol-cov', packageUrl: 'https://github.com/0xProject/0x-monorepo', - menu: { - introduction: [docSections.introduction], - install: [docSections.installation], - usage: [docSections.usage], - 'coverage-subprovider': [docSections.coverageSubprovider], - 'abstract-artifact-adapter': [docSections.abstractArtifactAdapter], - 'sol-compiler-artifact-adapter': [docSections.solCompilerArtifactAdapter], - 'truffle-artifact-adapter': [docSections.truffleArtifactAdapter], - types: [docSections.types], + markdownMenu: { + introduction: [markdownSections.introduction], + install: [markdownSections.installation], + usage: [markdownSections.usage], }, sectionNameToMarkdownByVersion: { '0.0.1': { - [docSections.introduction]: IntroMarkdownV1, - [docSections.installation]: InstallationMarkdownV1, - [docSections.usage]: UsageMarkdown, + [markdownSections.introduction]: IntroMarkdownV1, + [markdownSections.installation]: InstallationMarkdownV1, + [markdownSections.usage]: UsageMarkdown, }, }, - sections: docSections, + markdownSections: markdownSections, typeConfigs: { typeNameToExternalLink: {}, typeNameToPrefix: {}, |