mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-01 07:49:43 +02:00
feat: add admonition type title translations (#7556)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
This commit is contained in:
parent
5746c58f41
commit
9d0bf2e090
26 changed files with 194 additions and 21 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue