mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-03 06:05:09 +01:00
Fix sphinx deprecation warning
This commit is contained in:
parent
898169d270
commit
6af3aefb50
1 changed files with 2 additions and 2 deletions
|
|
@ -339,9 +339,9 @@ def add_html_context(app, pagename, templatename, context, *args):
|
|||
|
||||
|
||||
def guilabel_role(typ, rawtext, text, *args, **kwargs):
|
||||
from sphinx.roles import menusel_role
|
||||
from sphinx.roles import GUILabel
|
||||
text = text.replace(u'->', u'\N{THIN SPACE}\N{RIGHTWARDS ARROW}\N{THIN SPACE}')
|
||||
return menusel_role(typ, rawtext, text, *args, **kwargs)
|
||||
return GUILabel()(typ, rawtext, text, *args, **kwargs)
|
||||
|
||||
|
||||
def setup_man_pages(app):
|
||||
|
|
|
|||
Loading…
Reference in a new issue