diff options
author | Fabio Berger <me@fabioberger.com> | 2018-03-07 22:32:37 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-03-07 22:32:37 +0800 |
commit | 238f3c89a7cfc3c8d6941aac4e108c13f84c6647 (patch) | |
tree | 88a97cdf791461b7c278ded2386709204278c669 /packages/react-docs/src/ts/utils/constants.ts | |
parent | 6e724eb8a5f2431e7dda77102e63316cdd820139 (diff) | |
download | dexon-0x-contracts-238f3c89a7cfc3c8d6941aac4e108c13f84c6647.tar.gz dexon-0x-contracts-238f3c89a7cfc3c8d6941aac4e108c13f84c6647.tar.zst dexon-0x-contracts-238f3c89a7cfc3c8d6941aac4e108c13f84c6647.zip |
Make sure we apply the appropriate syntax highlighting depending on the language of the docs
Diffstat (limited to 'packages/react-docs/src/ts/utils/constants.ts')
-rw-r--r-- | packages/react-docs/src/ts/utils/constants.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/react-docs/src/ts/utils/constants.ts b/packages/react-docs/src/ts/utils/constants.ts index 28079e6c3..c3c74fd11 100644 --- a/packages/react-docs/src/ts/utils/constants.ts +++ b/packages/react-docs/src/ts/utils/constants.ts @@ -1,3 +1,9 @@ +import { SupportedDocJson } from '../types'; + export const constants = { TYPES_SECTION_NAME: 'types', + TYPE_TO_SYNTAX: { + [SupportedDocJson.Doxity]: 'solidity', + [SupportedDocJson.TypeDoc]: 'typescript', + } as { [supportedDocType: string]: string }, }; |