Fix a couple of documentation build warnings

This commit is contained in:
Kovid Goyal 2020-08-21 07:50:35 +05:30
parent 2787f9f19b
commit cd76d109f5
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 5 additions and 3 deletions

View file

@ -555,7 +555,7 @@ def process_shortcut_link(env: Any, refnode: Any, has_explicit_title: bool, titl
def write_conf_docs(app: Any, all_kitten_names: Iterable[str]) -> None:
app.add_lexer('conf', ConfLexer())
app.add_lexer('conf', ConfLexer)
app.add_object_type(
'opt', 'opt',
indextemplate="pair: %s; Config Setting",
@ -604,7 +604,7 @@ def setup(app: Any) -> None:
write_cli_docs(kn)
write_remote_control_protocol_docs()
write_conf_docs(app, kn)
app.add_lexer('session', SessionLexer())
app.add_lexer('session', SessionLexer)
app.add_role('link', link_role)
app.add_role('iss', partial(num_role, 'issues'))
app.add_role('pull', partial(num_role, 'pull'))

View file

@ -321,7 +321,9 @@ def disable_ligatures(x: str) -> int:
family. This allows you to define very precise feature settings; e.g. you can
disable a feature in the italic font but not in the regular font.
To get the PostScript name for a font, use :code:`kitty + list-fonts --psnames`::
To get the PostScript name for a font, use :code:`kitty + list-fonts --psnames`:
.. code-block:: sh
$ kitty + list-fonts --psnames | grep Fira
Fira Code