1. Section Title 1 (About this guide)

2. Section Title 2

2.1. Subsection Title X.1

2.1.1. Subsection Title X.1.1

2.1.1.1. Subsection Title X.1.1.1

2.2. Subsection Title X.2

2.3. Subsection Title X.3

3. Tables

Table 1. Three columns table with header row and double sized middle column
Column 1, Line 1 Column 2, Line 1 Column 3, Line 1

Column 1, Line 2

Column 2, Line 2

Column 3, Line 2

Column 1, Line 2

Column 2, Line 3

Column 3, Line 3

Table 2. Four columns table with header row
Column 1, Line 1 Column 2, Line 1 Column 3, Line 1 Column 4, Line 1

Column 1, Line 2

Column 2, Line 2

Column 3, Line 2

Column 4, Line 2

Column 1, Line 2

Column 2, Line 3

Column 3, Line 3

Column 4, Line 3

4. Steps and lists

4.1. Steps

To write Steps for a process use "1::, 2::, 3::, x::" with "[horizontal]" attribute on top:

1

Step 1

2

Step 2

3

Step 3

4.2. Unordered list

  • Item

  • Item

  • Item

4.2.1. Unordered list with sublevels

  • level 1

    • level 2

      • level 3

        • level 4

          • level 5

  • level 1

4.3. Ordered list

  1. Item 1

  2. Item 2

  3. Item 3

4.3.1. Ordered list with sublevels

  1. level 1

    1. level 2

      1. level 3

        1. level 4

          1. level 5

  2. level 1

4.4. Mixed list:

Operating Systems
Linux
  1. Fedora

    • Desktop

  2. Ubuntu

    • Desktop

    • Server

BSD
  1. FreeBSD

  2. NetBSD

Cloud Providers
PaaS
  1. OpenShift

  2. CloudBees

IaaS
  1. Amazon EC2

  2. Rackspace

4.5. Checklist:

  • checked

  • also checked

  • not checked

  • normal list item

5. Text formatting

5.1. Fonts

Bold

Italics

Bold Italics

monospace

5.2. Colors

To color some text, use the following syntax:

[color-name]#the text you want to color#

For example:

  • this is a blue text

  • this is a green text with some italic

  • this is a red text with some bold

  • this is a purple text with bold and italic

  • this is a yellow text

  • and finally some fuchsia text

You can use any of the following colors:

  • white

  • silver

  • gray

  • black

  • red

  • maroon

  • yellow

  • olive

  • lime

  • green

  • aqua

  • teal

  • blue

  • navy

  • fuchsia

  • purple

5.3. Superscripts and Subscripts

Put ^carets on either^ side of the text to be superscripted, put ~tildes on either side~ of text to be subscripted. For example:

  • eπi +1 = 0

  • H2O

  • x10

  • Some supertext and subtext

5.4. Other text formatting attributes

  • this is a text with yellow highlight

  • Underline text

  • overline text

  • line-through

  • bigger font text

  • small font text

5.5. Combining text formatting elements

You can combine many text formatting elements into the same attribute, for example:

  • bold blue and line-through.

  • this is a blue text with yellow highlight

  • big red

  • big red bold

  • small blue

  • bold blue and line-through

  • bigger and subscript font text

6. Codeblocks

Plain codeblock, not used so much
Codeblock in a shell.
Codeblock with java script
Codeblock with xml script

7. Callouts

Callout numbers (aka callouts) provide a means to add annotations to lines in a verbatim block.

Callout in shell codeblock. (1)
1 Some text.

8. Images

Floating image title
Figure 1. Image title caption

Image inline Image name can be blank with text. The images should be stored in a folder images on the same level as the adoc file.

9. Admonitions

Note about something
Tip for something
Important information about something
Caution
Warning regarding something

Admonitions can also encapsulate any block content:

Feeding the Werewolves

While werewolves are hardy community members, keep in mind the following dietary concerns:

  1. They are allergic to cinnamon.

  2. More than two glasses of orange juice in 24 hours makes them howl in harmony with alarms and sirens.

  3. Celery makes them sad.

10. Internal cross-references

To create a link to a heading, just include the heading title in <<>>.

For details, see section <<Appendix>>.

It will be automatically resolved as link to the respective section.

To create a link anywhere in the document, just insert [[someID]] where you need to reference to, and <<someID,optionaltextshown>> where you want to place the link. Make sure the ID is unique and does not contain any special characters. The ID is also case-sensitive.

For example, this is a link to the colors list.

12. Include files

You can include content from another file into the current AsciiDoc document using the include directive. The included content can be AsciiDoc or it can be any other text format. Where that content is included in the document determines how it will be processed.

An include directive must be placed on a line by itself with the following syntax:

The leveloffset, lines, tag(s)`, indent, and opts attributes are optional, making the simplest case look like:

Unresolved directive in Product_Documentation_Template.adoc - include::content.adoc[]

Offset Section Levels

The leveloffset attribute can help here by pushing all headings in the included document down by the specified number of levels. This allows you to publish each chapter as a standalone document (complete with a document title), but still be able to include the chapters into a primary document (which has its own document title).

= My Book

Unresolved directive in Product_Documentation_Template.adoc - include::chapter01.adoc[leveloffset=+1]

Unresolved directive in Product_Documentation_Template.adoc - include::chapter02.adoc[leveloffset=+1]

Unresolved directive in Product_Documentation_Template.adoc - include::chapter03.adoc[leveloffset=+1]