summaryrefslogtreecommitdiff
path: root/examples/chronicles-example.adoc
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2019-07-21 17:58:12 -0600
committerDan Allen <dan.j.allen@gmail.com>2019-07-21 17:58:12 -0600
commitab5b4b481d6f4f80a788020d7993067904905aa7 (patch)
tree92e680ab39958ac4c10f4f634d91d0de2a8ae9a1 /examples/chronicles-example.adoc
parent1bc652030c8d762efa9a0c6f17183e2ba002a37e (diff)
use official AsciiDoc syntax in examples
Diffstat (limited to 'examples/chronicles-example.adoc')
-rw-r--r--examples/chronicles-example.adoc10
1 files changed, 6 insertions, 4 deletions
diff --git a/examples/chronicles-example.adoc b/examples/chronicles-example.adoc
index 542fd479..35fc2908 100644
--- a/examples/chronicles-example.adoc
+++ b/examples/chronicles-example.adoc
@@ -284,20 +284,22 @@ Install Prawn:
Then create your first PDF document in Ruby!
.Generates a basic PDF document using Prawn
-```ruby
+[source,ruby]
+----
require 'prawn' # <1>
Prawn::Document.generate 'output.pdf' do # <3>
text 'Hello, World!' # <2>
end
-```
+----
<1> Imports Prawn library
<2> Adds text “Hello, World!” to first page
<3> Writes PDF to [file]_output.pdf_ after executing all statements
How about some source code that styles code? So meta!
-```css
+[source,css]
+----
code {
padding: 2px 4px;
font-size: 90%;
@@ -307,7 +309,7 @@ code {
background-color: #f9f2f4;
border-radius: 4px;
}
-```
+----
Where could we go without some Java?
Naturally, some autosizing is necessary.