mirror of
https://github.com/readthedocs/sphinx_rtd_theme.git
synced 2025-02-25 18:55:21 -06:00
Demo Docs: add kbd and menuselection
This commit is contained in:
parent
5c704b8108
commit
bc7fff2a45
@ -93,23 +93,27 @@ cross-references (example_), external hyperlinks with embedded URIs
|
||||
(`Python web site <http://www.python.org>`__), footnote references
|
||||
(manually numbered [1]_, anonymous auto-numbered [#]_, labeled
|
||||
auto-numbered [#label]_, or symbolic [*]_), citation references
|
||||
([CIT2002]_), substitution references (|example|), and _`inline
|
||||
hyperlink targets` (see Targets_ below for a reference back to here).
|
||||
Character-level inline markup is also possible (although exceedingly
|
||||
ugly!) in *re*\ ``Structured``\ *Text*. Problems are indicated by
|
||||
|problematic| text (generated by processing errors; this one is
|
||||
intentional).
|
||||
([CIT2002]_), substitution references (|example|), and _`inline hyperlink targets`
|
||||
(see Targets_ below for a reference back to here).
|
||||
Character-level inline markup is also possible (although exceedingly ugly!)
|
||||
in *re*\ ``Structured``\ *Text*. Problems are indicated by |problematic| text
|
||||
(generated by processing errors; this one is intentional).
|
||||
|
||||
The default role for interpreted text is `Title Reference`. Here are
|
||||
some explicit interpreted text roles: a PEP reference (:PEP:`287`); an
|
||||
RFC reference (:RFC:`2822`); a :sub:`subscript`; a :sup:`superscript`;
|
||||
and explicit roles for :emphasis:`standard` :strong:`inline`
|
||||
:literal:`markup`.
|
||||
and explicit roles for :emphasis:`standard` :strong:`inline` :literal:`markup`.
|
||||
|
||||
GUI labels are a useful way to indicate that :guilabel:`Some action` is
|
||||
to be taken by the user. The GUI label should not run over
|
||||
``line-height`` so as not to :guilabel:`interfere` with text from adjacent lines.
|
||||
|
||||
Key-bindings indicate that the read is to press a button on the keyboard or mouse,
|
||||
for example :kbd:`MMB` and :kbd:`Shift-MMB`. Another useful markup to indicate a user action
|
||||
is to use ``menuselection`` this can be used to show short and long menus in software.
|
||||
For example, and ``menuselection`` can be seen here that breaks is too long to fit on this line.
|
||||
:menuselection:`My --> Software --> Some menu --> Some sub menu 1 --> sub menu 2`.
|
||||
|
||||
.. DO NOT RE-WRAP THE FOLLOWING PARAGRAPH!
|
||||
|
||||
Let's test wrapping and whitespace significance in inline literals:
|
||||
|
Loading…
Reference in New Issue
Block a user