Inline elements¶
Sphinx enables specific pieces of inline text. This is emphasized by semantic markups that format text in a different style.
Use the markups included in this section as consistent with their semantic meaning.
Note
An inline semantic markup has no effect when applied to a piece of text within a code-block element.
To insert a semantic markup into your document, use the syntax below.
Syntax
:markup:`inline text`
Application¶
A software application within a line of text.
Markup |
|
Syntax |
|
Example of output |
Configure |
Code¶
A fragment of code within a line of text.
Markup |
|
Syntax |
|
Example of output |
The following command launches an instance with
the |
Command¶
An inline sub-command for the command-line interfaces and inline command for different operating systems.
Markup |
|
Syntax |
|
Example of output |
Run the nova boot command to launch an instance. |
File name and path¶
Any part of a path specification, including device name, directory, file name, and extension.
Markup |
|
Syntax |
|
Example of output |
By default, the |
GUI element¶
Any part of interactive user interface.
Markup |
|
Syntax |
|
Example of output |
From the Project > View tab you can view and manage the resources in a selected project. |
Keyboard key combination¶
A sequence of two or more keystrokes or mouse actions.
Markup |
|
Syntax |
|
Example of output |
Press |
Parameter¶
Any parameter for sub-commands for the command-line interfaces.
Markup |
|
Syntax |
`` |
Example of output |
|
Option¶
Any option for sub-commands for the command-line interfaces or configuration option.
Markup |
|
Syntax |
`` |
Example of output |
|
Note
When documenting Boolean configuration options:
Explicitly include the truth value
Add spaces around the equal sign (
=
)
Correct usage
force_dhcp_release = True
use_ipv6 = False
Variable¶
A literal text with a variable part in it wrapped in curly braces.
Markup |
|
Syntax |
|
Example of output |
Use the |
This documentation, is a derivative of RST conventions by OpenStack, used under CC BY.