-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestion: Using {kbd} role for keybindings #280
Comments
We discussed this yesterday in the docs meeting. I'm a big fan of this. We just need to use {kbd}`letter` for shortcuts? and this will already work? |
Correct on all counts - as long as we mark the key bindings with this syntax, the looks can be fixed later with some CSS on the theme side. |
@melissawm I love this, but just to clarify, does ![]() But for that to work, the modifiers and the keys should be in the same expression. But, either way, I love the idea. ❤️ |
Oh absolutely, we can do that! I can put in a proposal for both
|
# References and relevant issues Related to #280 # Description Fixes a few typos, typesetting details. Updates content for the viewer tutorial, including new gui elements. Images will also need to be updated. --------- Co-authored-by: Peter Sobolewski <[email protected]> Co-authored-by: Draga Doncila Pop <[email protected]>
Now that keybindings are becoming more stable, would it be a good idea to use the
{kbd}
role for keys in documentation? For example, using thesyntax shows this in the rendered docs:
A few things to consider:
kbd
role in both myst and sphinx may be styled differently from the rest of the literal/code rendering we have currently, so marking those keys makes it easier to change this in the future.The text was updated successfully, but these errors were encountered: