Skip to content

Commit

Permalink
undo change to custome_admonitions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarunas committed Aug 27, 2024
1 parent 8481367 commit f66d726
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions extensions/custom_admonitions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from docutils import nodes
from docutils.parsers.rst.directives import admonitions
from sphinx.locale import admonitionlabels, _
from sphinx.locale import admonitionlabels
from sphinx.util.docutils import SphinxRole


Expand Down Expand Up @@ -65,11 +65,11 @@ def setup(app):
app.add_role('dfn', Dfn(), override=True)
app.add_node(DfnSpan, html=(DfnSpan.visit, DfnSpan.depart))

# Add translations for the admonition labels
admonitionlabels['example'] = _('Example')
admonitionlabels['exercise'] = _('Exercise')

return {
'parallel_read_safe': True,
'parallel_write_safe': True
}
}


admonitionlabels['example'] = 'Example'
admonitionlabels['exercise'] = 'Exercise'

0 comments on commit f66d726

Please sign in to comment.