diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2015-06-23 18:35:19 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2015-06-23 18:35:19 -0600 |
| commit | 475fe1b6a20202bfd7baaa22714e17726e81e302 (patch) | |
| tree | 4cb9f509e538f07255f64101d9eb175b50cb122f /examples/basic-example.adoc | |
| parent | c53780cca61e22d8ea6052de5faefbbee2af7852 (diff) | |
add -example suffix to example file names
Diffstat (limited to 'examples/basic-example.adoc')
| -rw-r--r-- | examples/basic-example.adoc | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/examples/basic-example.adoc b/examples/basic-example.adoc new file mode 100644 index 00000000..1677224c --- /dev/null +++ b/examples/basic-example.adoc @@ -0,0 +1,29 @@ += Document Title +Doc Writer <doc@example.com> +:doctype: book +:source-highlighter: coderay +:listing-caption: Listing +// Uncomment next line to set page size (default is Letter) +//:pdf-page-size: A4 + +A simple http://asciidoc.org[AsciiDoc] document. + +== Introduction + +A paragraph followed by a simple list with square bullets. + +[square] +* item 1 +* item 2 + +Here's how you say "`Hello, World!`" in Prawn: + +.Create a basic PDF document using Prawn +[source,ruby] +---- +require 'prawn' + +Prawn::Document.generate 'example.pdf' do + text 'Hello, World!' +end +---- |
