mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 11:27:56 +08:00

Commit c921c124e (docs: use canonical key names in :kbd: tags, 2024-04-13) removed the box highlighting from elements like :kbd:`ctrl-c`. This is because Sphinx for some reason converts this into <kbd> <kbd>ctrl</kbd> - <kbd>c</kbd> </kbd> which results in duplicate boxes. (See https://github.com/sphinx-doc/sphinx/issues/7530) Our current style looks a bit ugly (it's definitely worse than github's rendering at https://github.com/fish-shell/fish-shell/blob/master/CHANGELOG.rst). Let's restore the old style but make sure to only apply it only to the outermost kbd element. While at it, use the same monospace font as for inline code.