Because we now include non-0x.js source, the keys changed. Needed to add both for backward compatibility with old doc JSON's

This commit is contained in:
Fabio Berger
2018-03-03 16:51:45 +01:00
parent 9e7b45ea4c
commit abb9eb0df4

View File

@@ -102,6 +102,7 @@ const docsInfoConfig: DocsInfoConfig = {
'ApprovalContractEventArgs', 'ApprovalContractEventArgs',
'TokenContractEventArgs', 'TokenContractEventArgs',
'ZeroExConfig', 'ZeroExConfig',
'TransactionReceipt',
'TransactionReceiptWithDecodedLogs', 'TransactionReceiptWithDecodedLogs',
'LogWithDecodedArgs', 'LogWithDecodedArgs',
'EtherTokenEvents', 'EtherTokenEvents',
@@ -124,17 +125,33 @@ const docsInfoConfig: DocsInfoConfig = {
'FilterObject', 'FilterObject',
], ],
sectionNameToModulePath: { sectionNameToModulePath: {
[zeroExJsDocSections.zeroEx]: ['"src/0x"'], [zeroExJsDocSections.zeroEx]: ['"0x.js/src/0x"', '"src/0x"'],
[zeroExJsDocSections.exchange]: ['"src/contract_wrappers/exchange_wrapper"'], [zeroExJsDocSections.exchange]: [
[zeroExJsDocSections.tokenRegistry]: ['"src/contract_wrappers/token_registry_wrapper"'], '"0x.js/src/contract_wrappers/exchange_wrapper"',
[zeroExJsDocSections.token]: ['"src/contract_wrappers/token_wrapper"'], '"src/contract_wrappers/exchange_wrapper"',
[zeroExJsDocSections.etherToken]: ['"src/contract_wrappers/ether_token_wrapper"'], ],
[zeroExJsDocSections.tokenRegistry]: [
'"0x.js/src/contract_wrappers/token_registry_wrapper"',
'"src/contract_wrappers/token_registry_wrapper"',
],
[zeroExJsDocSections.token]: [
'"0x.js/src/contract_wrappers/token_wrapper"',
'"src/contract_wrappers/token_wrapper"',
],
[zeroExJsDocSections.etherToken]: [
'"0x.js/src/contract_wrappers/ether_token_wrapper"',
'"src/contract_wrappers/ether_token_wrapper"',
],
[zeroExJsDocSections.proxy]: [ [zeroExJsDocSections.proxy]: [
'"src/contract_wrappers/proxy_wrapper"', '"0x.js/src/contract_wrappers/proxy_wrapper"',
'"0x.js/src/contract_wrappers/token_transfer_proxy_wrapper"',
'"src/contract_wrappers/token_transfer_proxy_wrapper"', '"src/contract_wrappers/token_transfer_proxy_wrapper"',
], ],
[zeroExJsDocSections.orderWatcher]: ['"src/order_watcher/order_state_watcher"'], [zeroExJsDocSections.orderWatcher]: [
[zeroExJsDocSections.types]: ['"src/types"'], '"0x.js/src/order_watcher/order_state_watcher"',
'"src/order_watcher/order_state_watcher"',
],
[zeroExJsDocSections.types]: ['"0x.js/src/types"', '"src/types"', '"types/src/index"'],
}, },
menuSubsectionToVersionWhenIntroduced: { menuSubsectionToVersionWhenIntroduced: {
[zeroExJsDocSections.etherToken]: '0.7.1', [zeroExJsDocSections.etherToken]: '0.7.1',