[IMP] extensions/custom_admonitions: tweak the HTML structure of dfn

The structure of the `dfn` role is changed from its default
`<em class="dfn">text</em>` to
`<span class="dfn"><span>text</span></span>` to ease the styling.

task-3046383

X-original-commit: 281a893540
Part-of: odoo/documentation#4114
This commit is contained in:
Antoine Vandevenne (anv)
2023-01-03 13:10:12 +00:00
parent ad4e8e649a
commit 71f3ea88bd
2 changed files with 33 additions and 2 deletions
+1 -2
View File
@@ -10,7 +10,6 @@ from sphinx.writers.html5 import HTML5Translator
# └── Odoo Translator
ADMONITION_MAPPING = {
# The alert classes have been replaced by default BS classes to reduce number of scss lines.
'note': 'alert-primary',
'tip': 'alert-tip',
@@ -27,7 +26,7 @@ ADMONITION_MAPPING = {
'example': 'alert-success',
'exercise': 'alert-dark',
}
} # The alert classes have been replaced by default BS classes to reduce number of scss lines.
class BootstrapTranslator(HTML5Translator):