No longer need the patch for Sphinx KeyboardTransform

The issue with KeyboardTransform with dirhtml has been fixed in Sphinx 4.4.0.
This commit is contained in:
pagedown 2022-01-17 02:49:25 +08:00
parent 5182f79152
commit 507e570887
No known key found for this signature in database
GPG Key ID: E921CF18AC8FF6EB

View File

@ -22,11 +22,8 @@ from pygments.token import ( # type: ignore
Comment, Keyword, Literal, Name, Number, String, Whitespace
)
from sphinx import addnodes, version_info
from sphinx.builders.html.transforms import KeyboardTransform
from sphinx.util.logging import getLogger
KeyboardTransform.builders = ('html', 'dirhtml') # type: ignore
kitty_src = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
if kitty_src not in sys.path:
sys.path.insert(0, kitty_src)