Merge branch 'docs-enable-kbd-xform' of https://github.com/page-down/kitty

This commit is contained in:
Kovid Goyal 2021-12-12 08:07:09 +05:30
commit b52990cb39
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -22,8 +22,11 @@ from pygments.token import ( # type: ignore
Comment, Keyword, Literal, Name, Number, String, Whitespace
)
from sphinx import addnodes, version_info # type: ignore
from sphinx.builders.html.transforms import KeyboardTransform # type: ignore
from sphinx.util.logging import getLogger # type: ignore
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)