From cd76d109f528ab2103818a428f22947ff8839309 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 21 Aug 2020 07:50:35 +0530 Subject: [PATCH] Fix a couple of documentation build warnings --- docs/conf.py | 4 ++-- kitty/config_data.py | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index a8ee43f9b..039c95b63 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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')) diff --git a/kitty/config_data.py b/kitty/config_data.py index 0004f4fb0..7457ebe9a 100644 --- a/kitty/config_data.py +++ b/kitty/config_data.py @@ -321,7 +321,9 @@ Note that this code is indexed by PostScript name, and not the font 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