feat: add admonition type title translations (#7556)

Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
This commit is contained in:
Sébastien Lorber 2022-06-03 16:40:02 +02:00 committed by GitHub
parent 5746c58f41
commit 9d0bf2e090
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 194 additions and 21 deletions

View file

@ -31,19 +31,22 @@ export const ThemeClassNames = {
docsPages: 'docs-wrapper',
mdxPages: 'mdx-wrapper',
},
/**
* Follows the naming convention "theme-{blog,doc,version,page}?-<suffix>"
*/
common: {
editThisPage: 'theme-edit-this-page',
lastUpdated: 'theme-last-updated',
backToTopButton: 'theme-back-to-top-button',
codeBlock: 'theme-code-block',
admonition: 'theme-admonition',
admonitionType: (type: 'note' | 'tip' | 'danger' | 'info' | 'caution') =>
`theme-admonition-${type}`,
},
layout: {
// TODO add other stable classNames here
},
/**
* Follows the naming convention "theme-{blog,doc,version,page}?-<suffix>"
*/
docs: {
docVersionBanner: 'theme-doc-version-banner',
docVersionBadge: 'theme-doc-version-badge',