Blocks & Quotes
This page showcases different block types in AsciiDoc.
Example Block
Here’s an example of a basic configuration:
site:
title: My Documentation
url: https://docs.example.com
This configuration sets the site title and base URL.
Follow these steps:
-
Create a new file
-
Add the configuration
-
Save and test
touch config.yml
echo "site:" >> config.yml
antora config.yml
Quote Block
Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world.
A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
The Hitchhiker's Guide to the Galaxy
Verse Block
Shall I compare thee to a summer’s day? Thou art more lovely and more temperate: Rough winds do shake the darling buds of May, And summer’s lease hath all too short a date.
Sonnet 18
Literal Block
A literal block preserves whitespace and displays text in a monospace font:
,---. / \ | | | ^_^ | | | \ / `---'
Listing Block
This is a listing block. It's similar to a literal block but uses different delimiters. Commonly used for terminal output or file contents. $ command --option value Output line 1 Output line 2
Open Block
An open block is a generic container that can hold other blocks:
This is an open block.
It can contain:
-
Lists
-
Paragraphs
-
Other elements
console.log('Even code blocks!');
Passthrough Block
A passthrough block passes content directly through without processing:
This HTML is passed through directly.
Collapsible Block (Details)
Details
This content is hidden by default.
Click the summary to reveal it.
-
Hidden item 1
-
Hidden item 2
-
Hidden item 3
Click to reveal advanced configuration
advanced:
cache:
enabled: true
ttl: 3600
logging:
level: debug
format: json