Docs: Enable kbd transform when building dirhtml with sphinx
This commit is contained in:
parent
5084f843c9
commit
0a1390a7f6
@ -22,8 +22,11 @@ from pygments.token import ( # type: ignore
|
|||||||
Comment, Keyword, Literal, Name, Number, String, Whitespace
|
Comment, Keyword, Literal, Name, Number, String, Whitespace
|
||||||
)
|
)
|
||||||
from sphinx import addnodes, version_info # type: ignore
|
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
|
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__)))
|
kitty_src = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||||
if kitty_src not in sys.path:
|
if kitty_src not in sys.path:
|
||||||
sys.path.insert(0, kitty_src)
|
sys.path.insert(0, kitty_src)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user