Prefix menu and sections with markdown as that is all the should now be defined
This commit is contained in:
parent
e5b93d1f02
commit
2494af99aa
@ -28,21 +28,16 @@ export class DocsInfo {
|
|||||||
public sectionNameToMarkdownByVersion: SectionNameToMarkdownByVersion;
|
public sectionNameToMarkdownByVersion: SectionNameToMarkdownByVersion;
|
||||||
public contractsByVersionByNetworkId?: ContractsByVersionByNetworkId;
|
public contractsByVersionByNetworkId?: ContractsByVersionByNetworkId;
|
||||||
public typeConfigs: DocsInfoTypeConfigs;
|
public typeConfigs: DocsInfoTypeConfigs;
|
||||||
private readonly _docsInfo: DocsInfoConfig;
|
|
||||||
constructor(config: DocsInfoConfig) {
|
constructor(config: DocsInfoConfig) {
|
||||||
this.id = config.id;
|
this.id = config.id;
|
||||||
this.type = config.type;
|
this.type = config.type;
|
||||||
this.menu = config.menu;
|
this.menu = config.markdownMenu;
|
||||||
this.displayName = config.displayName;
|
this.displayName = config.displayName;
|
||||||
this.packageUrl = config.packageUrl;
|
this.packageUrl = config.packageUrl;
|
||||||
this.sections = config.sections;
|
this.sections = config.markdownSections;
|
||||||
this.sectionNameToMarkdownByVersion = config.sectionNameToMarkdownByVersion;
|
this.sectionNameToMarkdownByVersion = config.sectionNameToMarkdownByVersion;
|
||||||
this.contractsByVersionByNetworkId = config.contractsByVersionByNetworkId;
|
this.contractsByVersionByNetworkId = config.contractsByVersionByNetworkId;
|
||||||
this.typeConfigs = config.typeConfigs;
|
this.typeConfigs = config.typeConfigs;
|
||||||
this._docsInfo = config;
|
|
||||||
}
|
|
||||||
public getMenu(selectedVersion?: string): { [section: string]: string[] } {
|
|
||||||
return this._docsInfo.menu;
|
|
||||||
}
|
}
|
||||||
public getMenuSubsectionsBySection(docAgnosticFormat?: DocAgnosticFormat): MenuSubsectionsBySection {
|
public getMenuSubsectionsBySection(docAgnosticFormat?: DocAgnosticFormat): MenuSubsectionsBySection {
|
||||||
const menuSubsectionsBySection = {} as MenuSubsectionsBySection;
|
const menuSubsectionsBySection = {} as MenuSubsectionsBySection;
|
||||||
|
@ -7,8 +7,8 @@ export interface DocsInfoConfig {
|
|||||||
type: SupportedDocJson;
|
type: SupportedDocJson;
|
||||||
displayName: string;
|
displayName: string;
|
||||||
packageUrl: string;
|
packageUrl: string;
|
||||||
menu: DocsMenu;
|
markdownMenu: DocsMenu;
|
||||||
sections: SectionsMap;
|
markdownSections: SectionsMap;
|
||||||
sectionNameToMarkdownByVersion: SectionNameToMarkdownByVersion;
|
sectionNameToMarkdownByVersion: SectionNameToMarkdownByVersion;
|
||||||
contractsByVersionByNetworkId?: ContractsByVersionByNetworkId;
|
contractsByVersionByNetworkId?: ContractsByVersionByNetworkId;
|
||||||
typeConfigs?: DocsInfoTypeConfigs;
|
typeConfigs?: DocsInfoTypeConfigs;
|
||||||
|
@ -14,7 +14,7 @@ const IntroMarkdownV1 = require('md/docs/connect/1.0.0/introduction');
|
|||||||
const InstallationMarkdownV1 = require('md/docs/connect/1.0.0/installation');
|
const InstallationMarkdownV1 = require('md/docs/connect/1.0.0/installation');
|
||||||
/* tslint:enable:no-var-requires */
|
/* tslint:enable:no-var-requires */
|
||||||
|
|
||||||
const connectDocSections = {
|
const markdownSections = {
|
||||||
introduction: 'introduction',
|
introduction: 'introduction',
|
||||||
installation: 'installation',
|
installation: 'installation',
|
||||||
httpClient: 'httpClient',
|
httpClient: 'httpClient',
|
||||||
@ -27,20 +27,20 @@ const docsInfoConfig: DocsInfoConfig = {
|
|||||||
type: SupportedDocJson.TypeDoc,
|
type: SupportedDocJson.TypeDoc,
|
||||||
displayName: '0x Connect',
|
displayName: '0x Connect',
|
||||||
packageUrl: 'https://github.com/0xProject/0x-monorepo',
|
packageUrl: 'https://github.com/0xProject/0x-monorepo',
|
||||||
menu: {
|
markdownMenu: {
|
||||||
introduction: [connectDocSections.introduction],
|
introduction: [markdownSections.introduction],
|
||||||
install: [connectDocSections.installation],
|
install: [markdownSections.installation],
|
||||||
httpClient: [connectDocSections.httpClient],
|
httpClient: [markdownSections.httpClient],
|
||||||
webSocketOrderbookChannel: [connectDocSections.webSocketOrderbookChannel],
|
webSocketOrderbookChannel: [markdownSections.webSocketOrderbookChannel],
|
||||||
types: [connectDocSections.types],
|
types: [markdownSections.types],
|
||||||
},
|
},
|
||||||
sectionNameToMarkdownByVersion: {
|
sectionNameToMarkdownByVersion: {
|
||||||
'0.0.1': {
|
'0.0.1': {
|
||||||
[connectDocSections.introduction]: IntroMarkdownV1,
|
[markdownSections.introduction]: IntroMarkdownV1,
|
||||||
[connectDocSections.installation]: InstallationMarkdownV1,
|
[markdownSections.installation]: InstallationMarkdownV1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
sections: connectDocSections,
|
markdownSections: markdownSections,
|
||||||
typeConfigs: {
|
typeConfigs: {
|
||||||
typeNameToExternalLink: {
|
typeNameToExternalLink: {
|
||||||
Provider: constants.URL_WEB3_PROVIDER_DOCS,
|
Provider: constants.URL_WEB3_PROVIDER_DOCS,
|
||||||
|
@ -14,7 +14,7 @@ const IntroMarkdown = require('md/docs/ethereum_types/introduction');
|
|||||||
const InstallationMarkdown = require('md/docs/ethereum_types/installation');
|
const InstallationMarkdown = require('md/docs/ethereum_types/installation');
|
||||||
/* tslint:enable:no-var-requires */
|
/* tslint:enable:no-var-requires */
|
||||||
|
|
||||||
const docSections = {
|
const markdownSections = {
|
||||||
introduction: 'introduction',
|
introduction: 'introduction',
|
||||||
installation: 'installation',
|
installation: 'installation',
|
||||||
types: docConstants.TYPES_SECTION_NAME,
|
types: docConstants.TYPES_SECTION_NAME,
|
||||||
@ -25,18 +25,18 @@ const docsInfoConfig: DocsInfoConfig = {
|
|||||||
type: SupportedDocJson.TypeDoc,
|
type: SupportedDocJson.TypeDoc,
|
||||||
displayName: 'Ethereum Types',
|
displayName: 'Ethereum Types',
|
||||||
packageUrl: 'https://github.com/0xProject/0x-monorepo/packages/ethereum-types',
|
packageUrl: 'https://github.com/0xProject/0x-monorepo/packages/ethereum-types',
|
||||||
menu: {
|
markdownMenu: {
|
||||||
introduction: [docSections.introduction],
|
introduction: [markdownSections.introduction],
|
||||||
install: [docSections.installation],
|
install: [markdownSections.installation],
|
||||||
types: [docSections.types],
|
types: [markdownSections.types],
|
||||||
},
|
},
|
||||||
sectionNameToMarkdownByVersion: {
|
sectionNameToMarkdownByVersion: {
|
||||||
'0.0.1': {
|
'0.0.1': {
|
||||||
[docSections.introduction]: IntroMarkdown,
|
[markdownSections.introduction]: IntroMarkdown,
|
||||||
[docSections.installation]: InstallationMarkdown,
|
[markdownSections.installation]: InstallationMarkdown,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
sections: docSections,
|
markdownSections: markdownSections,
|
||||||
typeConfigs: {
|
typeConfigs: {
|
||||||
typeNameToExternalLink: {
|
typeNameToExternalLink: {
|
||||||
BigNumber: constants.URL_BIGNUMBERJS_GITHUB,
|
BigNumber: constants.URL_BIGNUMBERJS_GITHUB,
|
||||||
|
@ -15,7 +15,7 @@ const UsageMarkdownV1 = require('md/docs/json_schemas/1.0.0/usage');
|
|||||||
const SchemasMarkdownV1 = require('md/docs/json_schemas/1.0.0/schemas');
|
const SchemasMarkdownV1 = require('md/docs/json_schemas/1.0.0/schemas');
|
||||||
/* tslint:enable:no-var-requires */
|
/* tslint:enable:no-var-requires */
|
||||||
|
|
||||||
const docSections = {
|
const markdownSections = {
|
||||||
introduction: 'introduction',
|
introduction: 'introduction',
|
||||||
installation: 'installation',
|
installation: 'installation',
|
||||||
usage: 'usage',
|
usage: 'usage',
|
||||||
@ -28,22 +28,22 @@ const docsInfoConfig: DocsInfoConfig = {
|
|||||||
type: SupportedDocJson.TypeDoc,
|
type: SupportedDocJson.TypeDoc,
|
||||||
displayName: 'JSON Schemas',
|
displayName: 'JSON Schemas',
|
||||||
packageUrl: 'https://github.com/0xProject/0x-monorepo',
|
packageUrl: 'https://github.com/0xProject/0x-monorepo',
|
||||||
menu: {
|
markdownMenu: {
|
||||||
introduction: [docSections.introduction],
|
introduction: [markdownSections.introduction],
|
||||||
install: [docSections.installation],
|
install: [markdownSections.installation],
|
||||||
usage: [docSections.usage],
|
usage: [markdownSections.usage],
|
||||||
schemaValidator: [docSections.schemaValidator],
|
schemaValidator: [markdownSections.schemaValidator],
|
||||||
schemas: [docSections.schemas],
|
schemas: [markdownSections.schemas],
|
||||||
},
|
},
|
||||||
sectionNameToMarkdownByVersion: {
|
sectionNameToMarkdownByVersion: {
|
||||||
'0.0.1': {
|
'0.0.1': {
|
||||||
[docSections.introduction]: IntroMarkdownV1,
|
[markdownSections.introduction]: IntroMarkdownV1,
|
||||||
[docSections.installation]: InstallationMarkdownV1,
|
[markdownSections.installation]: InstallationMarkdownV1,
|
||||||
[docSections.schemas]: SchemasMarkdownV1,
|
[markdownSections.schemas]: SchemasMarkdownV1,
|
||||||
[docSections.usage]: UsageMarkdownV1,
|
[markdownSections.usage]: UsageMarkdownV1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
sections: docSections,
|
markdownSections: markdownSections,
|
||||||
typeConfigs: {
|
typeConfigs: {
|
||||||
typeNameToExternalLink: {
|
typeNameToExternalLink: {
|
||||||
Schema:
|
Schema:
|
||||||
|
@ -14,7 +14,7 @@ const IntroMarkdownV1 = require('md/docs/order_utils/1.0.0/introduction');
|
|||||||
const InstallationMarkdownV1 = require('md/docs/order_utils/1.0.0/installation');
|
const InstallationMarkdownV1 = require('md/docs/order_utils/1.0.0/installation');
|
||||||
/* tslint:enable:no-var-requires */
|
/* tslint:enable:no-var-requires */
|
||||||
|
|
||||||
const docSections = {
|
const markdownSections = {
|
||||||
introduction: 'introduction',
|
introduction: 'introduction',
|
||||||
installation: 'installation',
|
installation: 'installation',
|
||||||
usage: 'usage',
|
usage: 'usage',
|
||||||
@ -26,19 +26,19 @@ const docsInfoConfig: DocsInfoConfig = {
|
|||||||
type: SupportedDocJson.TypeDoc,
|
type: SupportedDocJson.TypeDoc,
|
||||||
displayName: 'Order utils',
|
displayName: 'Order utils',
|
||||||
packageUrl: 'https://github.com/0xProject/0x-monorepo',
|
packageUrl: 'https://github.com/0xProject/0x-monorepo',
|
||||||
menu: {
|
markdownMenu: {
|
||||||
introduction: [docSections.introduction],
|
introduction: [markdownSections.introduction],
|
||||||
install: [docSections.installation],
|
install: [markdownSections.installation],
|
||||||
usage: [docSections.usage],
|
usage: [markdownSections.usage],
|
||||||
types: [docSections.types],
|
types: [markdownSections.types],
|
||||||
},
|
},
|
||||||
sectionNameToMarkdownByVersion: {
|
sectionNameToMarkdownByVersion: {
|
||||||
'0.0.1': {
|
'0.0.1': {
|
||||||
[docSections.introduction]: IntroMarkdownV1,
|
[markdownSections.introduction]: IntroMarkdownV1,
|
||||||
[docSections.installation]: InstallationMarkdownV1,
|
[markdownSections.installation]: InstallationMarkdownV1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
sections: docSections,
|
markdownSections: markdownSections,
|
||||||
typeConfigs: {
|
typeConfigs: {
|
||||||
typeNameToExternalLink: {
|
typeNameToExternalLink: {
|
||||||
BigNumber: constants.URL_BIGNUMBERJS_GITHUB,
|
BigNumber: constants.URL_BIGNUMBERJS_GITHUB,
|
||||||
|
@ -18,7 +18,7 @@ const docsInfoConfig: DocsInfoConfig = {
|
|||||||
type: SupportedDocJson.Doxity,
|
type: SupportedDocJson.Doxity,
|
||||||
displayName: '0x Smart Contracts',
|
displayName: '0x Smart Contracts',
|
||||||
packageUrl: 'https://github.com/0xProject/contracts',
|
packageUrl: 'https://github.com/0xProject/contracts',
|
||||||
menu: {
|
markdownMenu: {
|
||||||
introduction: [Sections.Introduction],
|
introduction: [Sections.Introduction],
|
||||||
contracts: [Sections.Exchange, Sections.TokenRegistry, Sections.ZRXToken, Sections.TokenTransferProxy],
|
contracts: [Sections.Exchange, Sections.TokenRegistry, Sections.ZRXToken, Sections.TokenTransferProxy],
|
||||||
},
|
},
|
||||||
@ -27,7 +27,7 @@ const docsInfoConfig: DocsInfoConfig = {
|
|||||||
[Sections.Introduction]: IntroMarkdownV1,
|
[Sections.Introduction]: IntroMarkdownV1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
sections: {
|
markdownSections: {
|
||||||
Introduction: Sections.Introduction,
|
Introduction: Sections.Introduction,
|
||||||
Exchange: Sections.Exchange,
|
Exchange: Sections.Exchange,
|
||||||
TokenTransferProxy: Sections.TokenTransferProxy,
|
TokenTransferProxy: Sections.TokenTransferProxy,
|
||||||
|
@ -14,7 +14,7 @@ const InstallationMarkdownV1 = require('md/docs/sol-compiler/installation');
|
|||||||
const UsageMarkdown = require('md/docs/sol-compiler/usage');
|
const UsageMarkdown = require('md/docs/sol-compiler/usage');
|
||||||
/* tslint:enable:no-var-requires */
|
/* tslint:enable:no-var-requires */
|
||||||
|
|
||||||
const docSections = {
|
const markdownSections = {
|
||||||
introduction: 'introduction',
|
introduction: 'introduction',
|
||||||
installation: 'installation',
|
installation: 'installation',
|
||||||
usage: 'usage',
|
usage: 'usage',
|
||||||
@ -27,21 +27,21 @@ const docsInfoConfig: DocsInfoConfig = {
|
|||||||
type: SupportedDocJson.TypeDoc,
|
type: SupportedDocJson.TypeDoc,
|
||||||
displayName: 'Solidity Compiler',
|
displayName: 'Solidity Compiler',
|
||||||
packageUrl: 'https://github.com/0xProject/0x-monorepo',
|
packageUrl: 'https://github.com/0xProject/0x-monorepo',
|
||||||
menu: {
|
markdownMenu: {
|
||||||
introduction: [docSections.introduction],
|
introduction: [markdownSections.introduction],
|
||||||
install: [docSections.installation],
|
install: [markdownSections.installation],
|
||||||
usage: [docSections.usage],
|
usage: [markdownSections.usage],
|
||||||
compiler: [docSections.compiler],
|
compiler: [markdownSections.compiler],
|
||||||
types: [docSections.types],
|
types: [markdownSections.types],
|
||||||
},
|
},
|
||||||
sectionNameToMarkdownByVersion: {
|
sectionNameToMarkdownByVersion: {
|
||||||
'0.0.1': {
|
'0.0.1': {
|
||||||
[docSections.introduction]: IntroMarkdownV1,
|
[markdownSections.introduction]: IntroMarkdownV1,
|
||||||
[docSections.installation]: InstallationMarkdownV1,
|
[markdownSections.installation]: InstallationMarkdownV1,
|
||||||
[docSections.usage]: UsageMarkdown,
|
[markdownSections.usage]: UsageMarkdown,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
sections: docSections,
|
markdownSections: markdownSections,
|
||||||
typeConfigs: {
|
typeConfigs: {
|
||||||
typeNameToExternalLink: {},
|
typeNameToExternalLink: {},
|
||||||
typeNameToPrefix: {},
|
typeNameToPrefix: {},
|
||||||
|
@ -14,15 +14,10 @@ const InstallationMarkdownV1 = require('md/docs/sol_cov/installation');
|
|||||||
const UsageMarkdown = require('md/docs/sol_cov/usage');
|
const UsageMarkdown = require('md/docs/sol_cov/usage');
|
||||||
/* tslint:enable:no-var-requires */
|
/* tslint:enable:no-var-requires */
|
||||||
|
|
||||||
const docSections = {
|
const markdownSections = {
|
||||||
introduction: 'introduction',
|
introduction: 'introduction',
|
||||||
installation: 'installation',
|
installation: 'installation',
|
||||||
usage: 'usage',
|
usage: 'usage',
|
||||||
coverageSubprovider: 'coverageSubprovider',
|
|
||||||
abstractArtifactAdapter: 'abstractArtifactAdapter',
|
|
||||||
solCompilerArtifactAdapter: 'solCompilerArtifactAdapter',
|
|
||||||
truffleArtifactAdapter: 'truffleArtifactAdapter',
|
|
||||||
types: docConstants.TYPES_SECTION_NAME,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const docsInfoConfig: DocsInfoConfig = {
|
const docsInfoConfig: DocsInfoConfig = {
|
||||||
@ -30,24 +25,19 @@ const docsInfoConfig: DocsInfoConfig = {
|
|||||||
type: SupportedDocJson.TypeDoc,
|
type: SupportedDocJson.TypeDoc,
|
||||||
displayName: 'Sol-cov',
|
displayName: 'Sol-cov',
|
||||||
packageUrl: 'https://github.com/0xProject/0x-monorepo',
|
packageUrl: 'https://github.com/0xProject/0x-monorepo',
|
||||||
menu: {
|
markdownMenu: {
|
||||||
introduction: [docSections.introduction],
|
introduction: [markdownSections.introduction],
|
||||||
install: [docSections.installation],
|
install: [markdownSections.installation],
|
||||||
usage: [docSections.usage],
|
usage: [markdownSections.usage],
|
||||||
'coverage-subprovider': [docSections.coverageSubprovider],
|
|
||||||
'abstract-artifact-adapter': [docSections.abstractArtifactAdapter],
|
|
||||||
'sol-compiler-artifact-adapter': [docSections.solCompilerArtifactAdapter],
|
|
||||||
'truffle-artifact-adapter': [docSections.truffleArtifactAdapter],
|
|
||||||
types: [docSections.types],
|
|
||||||
},
|
},
|
||||||
sectionNameToMarkdownByVersion: {
|
sectionNameToMarkdownByVersion: {
|
||||||
'0.0.1': {
|
'0.0.1': {
|
||||||
[docSections.introduction]: IntroMarkdownV1,
|
[markdownSections.introduction]: IntroMarkdownV1,
|
||||||
[docSections.installation]: InstallationMarkdownV1,
|
[markdownSections.installation]: InstallationMarkdownV1,
|
||||||
[docSections.usage]: UsageMarkdown,
|
[markdownSections.usage]: UsageMarkdown,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
sections: docSections,
|
markdownSections: markdownSections,
|
||||||
typeConfigs: {
|
typeConfigs: {
|
||||||
typeNameToExternalLink: {},
|
typeNameToExternalLink: {},
|
||||||
typeNameToPrefix: {},
|
typeNameToPrefix: {},
|
||||||
|
@ -18,20 +18,7 @@ const LedgerNodeHidMarkdown = require('md/docs/subproviders/ledger_node_hid');
|
|||||||
const docSections = {
|
const docSections = {
|
||||||
introduction: 'introduction',
|
introduction: 'introduction',
|
||||||
installation: 'installation',
|
installation: 'installation',
|
||||||
subprovider: 'subprovider',
|
|
||||||
ledgerSubprovider: 'ledgerSubprovider',
|
|
||||||
ledgerNodeHid: 'ledger-node-hid-issue',
|
ledgerNodeHid: 'ledger-node-hid-issue',
|
||||||
factoryMethods: 'factory-methods',
|
|
||||||
emptyWalletSubprovider: 'emptyWalletSubprovider',
|
|
||||||
fakeGasEstimateSubprovider: 'fakeGasEstimateSubprovider',
|
|
||||||
injectedWeb3Subprovider: 'injectedWeb3Subprovider',
|
|
||||||
signerSubprovider: 'signerSubprovider',
|
|
||||||
redundantRPCSubprovider: 'redundantRPCSubprovider',
|
|
||||||
ganacheSubprovider: 'ganacheSubprovider',
|
|
||||||
nonceTrackerSubprovider: 'nonceTrackerSubprovider',
|
|
||||||
privateKeyWalletSubprovider: 'privateKeyWalletSubprovider',
|
|
||||||
mnemonicWalletSubprovider: 'mnemonicWalletSubprovider',
|
|
||||||
types: docConstants.TYPES_SECTION_NAME,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const docsInfoConfig: DocsInfoConfig = {
|
const docsInfoConfig: DocsInfoConfig = {
|
||||||
@ -39,23 +26,10 @@ const docsInfoConfig: DocsInfoConfig = {
|
|||||||
type: SupportedDocJson.TypeDoc,
|
type: SupportedDocJson.TypeDoc,
|
||||||
displayName: 'Subproviders',
|
displayName: 'Subproviders',
|
||||||
packageUrl: 'https://github.com/0xProject/0x-monorepo',
|
packageUrl: 'https://github.com/0xProject/0x-monorepo',
|
||||||
menu: {
|
markdownMenu: {
|
||||||
introduction: [docSections.introduction],
|
introduction: [docSections.introduction],
|
||||||
install: [docSections.installation],
|
install: [docSections.installation],
|
||||||
subprovider: [docSections.subprovider],
|
|
||||||
['ledger-subprovider']: [docSections.ledgerSubprovider],
|
|
||||||
['ledger-node-hid-issue']: [docSections.ledgerNodeHid],
|
['ledger-node-hid-issue']: [docSections.ledgerNodeHid],
|
||||||
['private-key-wallet-subprovider']: [docSections.privateKeyWalletSubprovider],
|
|
||||||
['mnemonic-wallet-subprovider']: [docSections.mnemonicWalletSubprovider],
|
|
||||||
['factory-methods']: [docSections.factoryMethods],
|
|
||||||
['emptyWallet-subprovider']: [docSections.emptyWalletSubprovider],
|
|
||||||
['fakeGasEstimate-subprovider']: [docSections.fakeGasEstimateSubprovider],
|
|
||||||
['injectedWeb3-subprovider']: [docSections.injectedWeb3Subprovider],
|
|
||||||
['signer-subprovider']: [docSections.signerSubprovider],
|
|
||||||
['redundantRPC-subprovider']: [docSections.redundantRPCSubprovider],
|
|
||||||
['ganache-subprovider']: [docSections.ganacheSubprovider],
|
|
||||||
['nonceTracker-subprovider']: [docSections.nonceTrackerSubprovider],
|
|
||||||
types: [docSections.types],
|
|
||||||
},
|
},
|
||||||
sectionNameToMarkdownByVersion: {
|
sectionNameToMarkdownByVersion: {
|
||||||
'0.0.1': {
|
'0.0.1': {
|
||||||
@ -64,7 +38,7 @@ const docsInfoConfig: DocsInfoConfig = {
|
|||||||
[docSections.ledgerNodeHid]: LedgerNodeHidMarkdown,
|
[docSections.ledgerNodeHid]: LedgerNodeHidMarkdown,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
sections: docSections,
|
markdownSections: docSections,
|
||||||
typeConfigs: {
|
typeConfigs: {
|
||||||
typeNameToExternalLink: {
|
typeNameToExternalLink: {
|
||||||
Web3: constants.URL_WEB3_DOCS,
|
Web3: constants.URL_WEB3_DOCS,
|
||||||
|
@ -17,8 +17,6 @@ const InstallationMarkdownV1 = require('md/docs/web3_wrapper/installation');
|
|||||||
const docSections = {
|
const docSections = {
|
||||||
introduction: 'introduction',
|
introduction: 'introduction',
|
||||||
installation: 'installation',
|
installation: 'installation',
|
||||||
web3Wrapper: 'web3Wrapper',
|
|
||||||
types: docConstants.TYPES_SECTION_NAME,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const docsInfoConfig: DocsInfoConfig = {
|
const docsInfoConfig: DocsInfoConfig = {
|
||||||
@ -26,11 +24,9 @@ const docsInfoConfig: DocsInfoConfig = {
|
|||||||
type: SupportedDocJson.TypeDoc,
|
type: SupportedDocJson.TypeDoc,
|
||||||
displayName: 'Web3Wrapper',
|
displayName: 'Web3Wrapper',
|
||||||
packageUrl: 'https://github.com/0xProject/0x-monorepo',
|
packageUrl: 'https://github.com/0xProject/0x-monorepo',
|
||||||
menu: {
|
markdownMenu: {
|
||||||
introduction: [docSections.introduction],
|
introduction: [docSections.introduction],
|
||||||
install: [docSections.installation],
|
install: [docSections.installation],
|
||||||
web3Wrapper: [docSections.web3Wrapper],
|
|
||||||
types: [docSections.types],
|
|
||||||
},
|
},
|
||||||
sectionNameToMarkdownByVersion: {
|
sectionNameToMarkdownByVersion: {
|
||||||
'0.0.1': {
|
'0.0.1': {
|
||||||
@ -38,7 +34,7 @@ const docsInfoConfig: DocsInfoConfig = {
|
|||||||
[docSections.installation]: InstallationMarkdownV1,
|
[docSections.installation]: InstallationMarkdownV1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
sections: docSections,
|
markdownSections: docSections,
|
||||||
typeConfigs: {
|
typeConfigs: {
|
||||||
typeNameToExternalLink: {
|
typeNameToExternalLink: {
|
||||||
Web3: constants.URL_WEB3_DOCS,
|
Web3: constants.URL_WEB3_DOCS,
|
||||||
|
@ -20,7 +20,7 @@ const IntroMarkdownV2 = require('md/docs/0xjs/2.0.0/introduction');
|
|||||||
const versioningMarkdownV2 = require('md/docs/0xjs/2.0.0/versioning');
|
const versioningMarkdownV2 = require('md/docs/0xjs/2.0.0/versioning');
|
||||||
/* tslint:enable:no-var-requires */
|
/* tslint:enable:no-var-requires */
|
||||||
|
|
||||||
const zeroExJsDocSections = {
|
const markdownSections = {
|
||||||
introduction: 'introduction',
|
introduction: 'introduction',
|
||||||
installation: 'installation',
|
installation: 'installation',
|
||||||
testrpc: 'testrpc',
|
testrpc: 'testrpc',
|
||||||
@ -34,29 +34,29 @@ const docsInfoConfig: DocsInfoConfig = {
|
|||||||
type: SupportedDocJson.TypeDoc,
|
type: SupportedDocJson.TypeDoc,
|
||||||
displayName: '0x.js',
|
displayName: '0x.js',
|
||||||
packageUrl: 'https://github.com/0xProject/0x-monorepo',
|
packageUrl: 'https://github.com/0xProject/0x-monorepo',
|
||||||
menu: {
|
markdownMenu: {
|
||||||
introduction: [zeroExJsDocSections.introduction],
|
introduction: [markdownSections.introduction],
|
||||||
install: [zeroExJsDocSections.installation],
|
install: [markdownSections.installation],
|
||||||
topics: [zeroExJsDocSections.async, zeroExJsDocSections.errors, zeroExJsDocSections.versioning],
|
topics: [markdownSections.async, markdownSections.errors, markdownSections.versioning],
|
||||||
},
|
},
|
||||||
sectionNameToMarkdownByVersion: {
|
sectionNameToMarkdownByVersion: {
|
||||||
'0.0.1': {
|
'0.0.1': {
|
||||||
[zeroExJsDocSections.introduction]: IntroMarkdownV1,
|
[markdownSections.introduction]: IntroMarkdownV1,
|
||||||
[zeroExJsDocSections.installation]: InstallationMarkdownV1,
|
[markdownSections.installation]: InstallationMarkdownV1,
|
||||||
[zeroExJsDocSections.async]: AsyncMarkdownV1,
|
[markdownSections.async]: AsyncMarkdownV1,
|
||||||
[zeroExJsDocSections.errors]: ErrorsMarkdownV1,
|
[markdownSections.errors]: ErrorsMarkdownV1,
|
||||||
[zeroExJsDocSections.versioning]: versioningMarkdownV1,
|
[markdownSections.versioning]: versioningMarkdownV1,
|
||||||
},
|
},
|
||||||
'1.0.0-rc.1': {
|
'1.0.0-rc.1': {
|
||||||
[zeroExJsDocSections.introduction]: IntroMarkdownV2,
|
[markdownSections.introduction]: IntroMarkdownV2,
|
||||||
[zeroExJsDocSections.versioning]: versioningMarkdownV2,
|
[markdownSections.versioning]: versioningMarkdownV2,
|
||||||
// These are the same as for V1
|
// These are the same as for V1
|
||||||
[zeroExJsDocSections.installation]: InstallationMarkdownV1,
|
[markdownSections.installation]: InstallationMarkdownV1,
|
||||||
[zeroExJsDocSections.async]: AsyncMarkdownV1,
|
[markdownSections.async]: AsyncMarkdownV1,
|
||||||
[zeroExJsDocSections.errors]: ErrorsMarkdownV1,
|
[markdownSections.errors]: ErrorsMarkdownV1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
sections: zeroExJsDocSections,
|
markdownSections: markdownSections,
|
||||||
typeConfigs: {
|
typeConfigs: {
|
||||||
typeNameToPrefix: {},
|
typeNameToPrefix: {},
|
||||||
typeNameToExternalLink: {
|
typeNameToExternalLink: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user