AsciiDoc markup elements used in Red Hat documentation
Note
|
Some markup examples used in this overview are based on new Asciidoctor features and they are not a part of the standard set of elements. Please, use the |
Element | Mark-up | Example rendered output | ||
---|---|---|---|---|
Anchor
|
[id="section-header_{variable}"] Section Header |
Section Header |
||
Application name |
No special markup |
The foo application. |
||
Code blocks |
[source,java] ---- public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World"); } } ---- |
|
||
Code - inline |
`print("Hello, World!")` |
|
||
Command block |
---- $ echo "Hello, World!" > hello.txt ---- |
$ echo "Hello, World!" > hello.txt |
||
Command - inline |
Use the [command]`oc get` command to get a list of services. |
Use the |
||
Emphasis for a term |
In this release, the terms _worker machine_ and _compute machine_ are used interchangeably. |
In this release, the terms worker machine and compute machine are used interchangeably. |
||
Filenames or directory paths |
Edit the [filename]`kubeconfig` file as required and save your changes. The [filename]`express.conf` configuration file is located in the [filename]`/usr/share/` directory. |
Edit the The |
||
GUI Text |
The web browser displays *404* for an unreachable URL. |
The web browser displays 404 for an unreachable URL. |
||
GUI Button |
Click btn:[Save As] to save the file under a different name. |
Click Save As to save the file under a different name. |
||
GUI Menu |
Navigate to menu:File[Import>Import csv] to import a csv file. |
Navigate to to import a csv file. |
||
Inline Image |
image::image.png[width=25px] |
|||
Block Image |
.Tux image::image.png[width=100px] |
Figure 1. Tux
|
||
Inline operations and user input |
The `GET` operation can be used to do something. Answer by typing `Yes` or `No` when prompted. |
The Answer by typing |
||
Keyboard shortcuts |
kbd:[Ctrl+Alt+Del] |
Ctrl+Alt+Del |
||
Link (external) |
link:http://www.redhat.com[Red Hat] |
|||
Lists
|
.Ordered list . First item . Second item . Third item .Unordered list * This * That * The other .Definition or labeled list Term A:: description Term B:: description |
Ordered list
Unordered list
Definition or labeled list
|
||
Literal value |
The function returns `true`. |
The function returns |
||
Package |
Install the [package]`iscsi-initiators-utils` package. |
Install the |
||
Product name |
No special markup. Use {nbsp} in the company and product names. Example: Red{nbsp}Hat JBoss{nbsp}Data{nbsp}Grid |
Red Hat JBoss Data Grid |
||
Reference to Red Hat guides |
For more information, see the JBoss EAP link:https://access.redhat.com/documentation/en-us/red_hat_jboss_enterprise_application_platform/7.2/html/getting_started_guide/index[_Getting Started Guide_]. |
For more information, see the JBoss EAP Getting Started Guide. |
||
System or software variable to be replaced by the user |
Use the following command to roll back a deployment, specifying the deployment name: `oc rollback _<deployment>_`. |
Use the following command to roll back a deployment, specifying the deployment name: |
||
System or software configuration parameter or environment variable |
Use the `_IP_ADDRESS_` environment variable for the server IP address. |
Use the |
||
System item, daemon, or service |
Include the `libfreetype` library. Stop the `NetworkManager` daemon. Start the `mysql` service. |
Include the Stop the Start the |