mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-05 04:12:53 +02:00
refactor(theme): split admonitions, make swizzle easier, better retrocompatibility (#7945)
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
This commit is contained in:
parent
f1415525c0
commit
6f63ffe0a3
32 changed files with 914 additions and 236 deletions
|
@ -40,8 +40,7 @@ export const ThemeClassNames = {
|
|||
backToTopButton: 'theme-back-to-top-button',
|
||||
codeBlock: 'theme-code-block',
|
||||
admonition: 'theme-admonition',
|
||||
admonitionType: (type: 'note' | 'tip' | 'danger' | 'info' | 'caution') =>
|
||||
`theme-admonition-${type}`,
|
||||
admonitionType: (type: string) => `theme-admonition-${type}`,
|
||||
},
|
||||
layout: {
|
||||
// TODO add other stable classNames here
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue