mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix sphinx deprecation warning
This commit is contained in:
parent
898169d270
commit
6af3aefb50
@ -339,9 +339,9 @@ def add_html_context(app, pagename, templatename, context, *args):
|
|||||||
|
|
||||||
|
|
||||||
def guilabel_role(typ, rawtext, text, *args, **kwargs):
|
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}')
|
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):
|
def setup_man_pages(app):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user