Skip to content

Instantly share code, notes, and snippets.

@griffin-stewie
Created January 30, 2018 15:08
Show Gist options
  • Save griffin-stewie/7f416bc074fc0394531685755307918d to your computer and use it in GitHub Desktop.
Save griffin-stewie/7f416bc074fc0394531685755307918d to your computer and use it in GitHub Desktop.
sample asciidoc

Document Title

A sample AsciiDoc document.

Introduction

A paragraph followed by a simple list.

                   +-------------+
                   | Asciidoctor |-------+
                   |  Diagram    |       |
                   +-------------+       | PNG out
                       ^                 |
                       | ditaa in        |
                       |                 v
 +--------+   +--------+----+    /----------------\
 |        | --+ Asciidoctor +--> |                |
 |  Text  |   +-------------+    |Beautiful output|
 |Document|   |   !magic!   |    |                |
 |     {d}|   |             |    |                |
 +---+----+   +-------------+    \----------------/
     :                                   ^
     |          Lots of work             |
     +-----------------------------------+
digraph g {
    a -> b
    b -> c
    c -> d
    d -> a
}
The PlantUML block extension class
class BlockProcessor
class PlantUmlBlock
BlockProcessor <|-- PlantUmlBlock

Ruby source sample

puts ['AsciiDoc', 'GitHub', 'AsciiDoc on GitHub'].map {|item|
  "I use #{item}!"
} * "\n"
  • item 1

  • item 2

Here’s how you say ``Hello, World!'' in Ruby.

A basic Ruby application
puts "Hello, World!"
Tip
asciidoctor-fopub takes the pain out of converting a DocBook file to a PDF file like this one. All you need is a Java Development Kit (JDK) and this project. The rest of the software is fetched and configured by Gradle.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment