asciidoctor-doctest 2.0.0.beta.2 → 2.0.0.beta.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/README.adoc +37 -37
  3. data/data/examples/asciidoc/{block_admonition.adoc → admonition.adoc} +15 -15
  4. data/data/examples/asciidoc/{block_audio.adoc → audio.adoc} +3 -3
  5. data/data/examples/asciidoc/{block_colist.adoc → colist.adoc} +2 -2
  6. data/data/examples/asciidoc/{block_dlist.adoc → dlist.adoc} +11 -11
  7. data/data/examples/asciidoc/document.adoc +9 -9
  8. data/data/examples/asciidoc/{block_example.adoc → example.adoc} +2 -2
  9. data/data/examples/asciidoc/{block_floating_title.adoc → floating_title.adoc} +2 -2
  10. data/data/examples/asciidoc/{block_image.adoc → image.adoc} +8 -8
  11. data/data/examples/asciidoc/inline_anchor.adoc +9 -9
  12. data/data/examples/asciidoc/inline_break.adoc +1 -1
  13. data/data/examples/asciidoc/inline_footnote.adoc +1 -1
  14. data/data/examples/asciidoc/inline_image.adoc +11 -11
  15. data/data/examples/asciidoc/inline_quoted.adoc +9 -9
  16. data/data/examples/asciidoc/{block_listing.adoc → listing.adoc} +6 -6
  17. data/data/examples/asciidoc/{block_literal.adoc → literal.adoc} +2 -2
  18. data/data/examples/asciidoc/{block_olist.adoc → olist.adoc} +7 -7
  19. data/data/examples/asciidoc/{block_open.adoc → open.adoc} +4 -4
  20. data/data/examples/asciidoc/{block_outline.adoc → outline.adoc} +0 -0
  21. data/data/examples/asciidoc/{block_page_break.adoc → page_break.adoc} +0 -0
  22. data/data/examples/asciidoc/{block_paragraph.adoc → paragraph.adoc} +2 -2
  23. data/data/examples/asciidoc/{block_pass.adoc → pass.adoc} +0 -0
  24. data/data/examples/asciidoc/{block_preamble.adoc → preamble.adoc} +1 -1
  25. data/data/examples/asciidoc/{block_quote.adoc → quote.adoc} +4 -4
  26. data/data/examples/asciidoc/section.adoc +5 -5
  27. data/data/examples/asciidoc/{block_sidebar.adoc → sidebar.adoc} +2 -2
  28. data/data/examples/asciidoc/{block_stem.adoc → stem.adoc} +2 -2
  29. data/data/examples/asciidoc/{block_table.adoc → table.adoc} +17 -17
  30. data/data/examples/asciidoc/{block_thematic_break.adoc → thematic_break.adoc} +0 -0
  31. data/data/examples/asciidoc/{block_toc.adoc → toc.adoc} +6 -6
  32. data/data/examples/asciidoc/{block_ulist.adoc → ulist.adoc} +4 -4
  33. data/data/examples/asciidoc/{block_verse.adoc → verse.adoc} +4 -4
  34. data/data/examples/asciidoc/{block_video.adoc → video.adoc} +7 -7
  35. data/features/fixtures/html-slim/examples/asciidoc/document.adoc +1 -1
  36. data/features/fixtures/html-slim/examples/asciidoc/{block_quote.adoc → quote.adoc} +3 -3
  37. data/features/fixtures/html-slim/examples/html/document.html +1 -1
  38. data/features/fixtures/html-slim/examples/html/{block_quote.html → quote.html} +2 -2
  39. data/features/fixtures/html-slim/templates/{block_paragraph.html.slim → paragraph.html.slim} +0 -0
  40. data/features/fixtures/html-slim/templates/{block_quote.html.slim → quote.html.slim} +0 -0
  41. data/features/generator_html.feature +24 -24
  42. data/features/test_html.feature +13 -13
  43. data/lib/asciidoctor/doctest/example.rb +1 -1
  44. data/lib/asciidoctor/doctest/rake_tasks.rb +2 -2
  45. data/lib/asciidoctor/doctest/version.rb +1 -1
  46. metadata +35 -35
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6d85bdcda3e26954a6f4e42e9825d3a5e033db0c
4
- data.tar.gz: 3a10413538b9524867318215b715205c096d99ab
3
+ metadata.gz: 22928854e2f234ef48e4ddf8180e8c0c94f82341
4
+ data.tar.gz: 8b0c16c9b9373c95245c2a559363e1caf0e06618
5
5
  SHA512:
6
- metadata.gz: f3c70197f8139884fba053dfc57c69d2d30f318b06b4df04e246af603592df20e579156108671902341ff69f93b46882fc514c984e97c9137c29cc0b42a1a9ab
7
- data.tar.gz: 8080e196a4b71d0aa87711368abaee6d7d2a2191d068d8dfc9567d71310146c2fcd92cf9649c34e981e41b29579b2dbd51f82fba8a9932c2f9ba860ce954e4e2
6
+ metadata.gz: d4d4ba60bd2919139cd2717d54696f967f423e0e6cdd2c264f5a7547c4bed6765a4c72f5c2efada82a7798fe3faf75cd650af08e6ad734805f055e091cad4724
7
+ data.tar.gz: 8634445f1342b9cfdc5b86485d9bbf9b8568dfd0b22f57932cb829bb62b54ee5d2e4c5e5227666e9f59435183d3ca787ee32f22a3b91e46a7b5aedc633b02171
data/README.adoc CHANGED
@@ -100,7 +100,7 @@ bundle exec rake doctest:test
100
100
  To test only specific examples, use `PATTERN` with glob-like expression:
101
101
 
102
102
  [source, sh]
103
- bundle exec rake doctest:test PATTERN='block_*:*'
103
+ bundle exec rake doctest:test PATTERN='inline_*:*'
104
104
 
105
105
  For verbose output, use `VERBOSE=yes`:
106
106
 
@@ -117,10 +117,10 @@ Example should consider one case of the generated output, i.e. it should reflect
117
117
  Examples are grouped in _example groups_.
118
118
  Each group focuses on one block or inline element — more precisely Asciidoctor’s AST node (paragraph, table, anchor, footnote…).
119
119
 
120
- Examples group is a text file named similar to Asciidoctor templates, i.e. the AST node name with an extension according to syntax, for example `block_table.adoc`, `block_table.html`. See below for a list of the AST nodes.
120
+ Examples group is a text file named similar to Asciidoctor templates, i.e. the AST node name with an extension according to syntax, for example `table.adoc`, `table.html`. See below for a list of the AST nodes.
121
121
  Individual examples in the group file are separated by a special header with the name of the example, an optional description and options.
122
122
 
123
- Each example is identified by its name and the group name like this: `{group_name}:{example_name}` (e.g. `block_table:with_title`).
123
+ Each example is identified by its name and the group name like this: `{group_name}:{example_name}` (e.g. `table:with-title`).
124
124
  Input and output examples are paired — for every input example there should be an output example with the same identifier.
125
125
  When you <<run-tests, run tests>>, the input example is converted using the tested backend (or templates) and its actual output is compared with the expected output example.
126
126
 
@@ -129,31 +129,31 @@ When you <<run-tests, run tests>>, the input example is converted using the test
129
129
  document:: TODO
130
130
  embedded:: TODO
131
131
  section:: {doctor-man-uri}/#sections[document sections], i.e. headings
132
- block_admonition:: {doctor-man-uri}/#admonition[an admonition block]
133
- block_audio:: {doctor-man-uri}/#audio[an audio block]
134
- block_colist:: {doctor-man-uri}/#callouts[a code callouts] list
135
- block_dlist:: {doctor-man-uri}/#labeled-list[a labeled list] (aka definition list) and {doctor-man-uri}/#question-and-answer-style-list[a Q&A style list]
136
- block_example:: {doctor-man-uri}/#example[an example block]
137
- block_floating_title:: {doctor-man-uri}/#discrete-or-floating-section-titles[a discrete or floating section title]
138
- block_image:: {doctor-man-uri}/#images[an image block]
139
- block_listing:: {doctor-man-uri}/#listing-blocks[a listing and source code block]
140
- block_literal:: {doctor-man-uri}/#literal-text-and-blocks[a literal block]
141
- block_olist:: {doctor-man-uri}/#ordered-lists[an ordered list] (i.e. numbered list)
142
- block_open:: {doctor-man-uri}/#open-blocks[open blocks], {doctor-man-uri}/#user-abstractabstract[abstract], …
143
- block_outline:: an actual {doctor-man-uri}/#user-toc[TOC] content (i.e. list of links), usually recursively called
144
- block_page_break:: {doctor-man-uri}/#page-break[page break]
145
- block_paragraph:: {doctor-man-uri}/#paragraph[a paragraph]
146
- block_pass:: {doctor-man-uri}/#pass-bl[a passthrough block]
147
- block_preamble:: {doctor-man-uri}/#doc-preamble[a preamble], optionally with a TOC
148
- block_quote:: {doctor-man-uri}/#quote[a quote block]
149
- block_sidebar:: {doctor-man-uri}/#sidebar[a sidebar]
150
- block_stem:: {doctor-man-uri}/#stem[a STEM block] (Science, Technology, Engineering and Math)
151
- block_table:: {doctor-man-uri}/#tables[a table]
152
- block_thematic_break:: {doctor-man-uri}/#horizontal-rules[a thematic break] (i.e. horizontal rule)
153
- block_toc:: {doctor-man-uri}/#manual-placement[a TOC macro] (i.e. manually placed TOC); This block is used for `toc::[]` macro only and it’s responsible just for rendering of a the TOC “envelope,” not an actual TOC content.
154
- block_ulist:: {doctor-man-uri}/#unordered-lists[an unordered list] (aka bullet list) and a {doctor-man-uri}/#checklist[checklist] (e.g. TODO list)
155
- block_verse:: {doctor-man-uri}/#verse[a verse block]
156
- block_video:: {doctor-man-uri}/#video[a video block]
132
+ admonition:: {doctor-man-uri}/#admonition[an admonition block]
133
+ audio:: {doctor-man-uri}/#audio[an audio block]
134
+ colist:: {doctor-man-uri}/#callouts[a code callouts] list
135
+ dlist:: {doctor-man-uri}/#labeled-list[a labeled list] (aka definition list) and {doctor-man-uri}/#question-and-answer-style-list[a Q&A style list]
136
+ example:: {doctor-man-uri}/#example[an example block]
137
+ floating_title:: {doctor-man-uri}/#discrete-or-floating-section-titles[a discrete or floating section title]
138
+ image:: {doctor-man-uri}/#images[an image block]
139
+ listing:: {doctor-man-uri}/#listing-blocks[a listing and source code block]
140
+ literal:: {doctor-man-uri}/#literal-text-and-blocks[a literal block]
141
+ olist:: {doctor-man-uri}/#ordered-lists[an ordered list] (i.e. numbered list)
142
+ open:: {doctor-man-uri}/#open-blocks[open blocks], {doctor-man-uri}/#user-abstractabstract[abstract], …
143
+ outline:: an actual {doctor-man-uri}/#user-toc[TOC] content (i.e. list of links), usually recursively called
144
+ page_break:: {doctor-man-uri}/#page-break[page break]
145
+ paragraph:: {doctor-man-uri}/#paragraph[a paragraph]
146
+ pass:: {doctor-man-uri}/#pass-bl[a passthrough block]
147
+ preamble:: {doctor-man-uri}/#doc-preamble[a preamble], optionally with a TOC
148
+ quote:: {doctor-man-uri}/#quote[a quote block]
149
+ sidebar:: {doctor-man-uri}/#sidebar[a sidebar]
150
+ stem:: {doctor-man-uri}/#stem[a STEM block] (Science, Technology, Engineering and Math)
151
+ table:: {doctor-man-uri}/#tables[a table]
152
+ thematic_break:: {doctor-man-uri}/#horizontal-rules[a thematic break] (i.e. horizontal rule)
153
+ toc:: {doctor-man-uri}/#manual-placement[a TOC macro] (i.e. manually placed TOC); This block is used for `toc::[]` macro only and it’s responsible just for rendering of a the TOC “envelope,” not an actual TOC content.
154
+ ulist:: {doctor-man-uri}/#unordered-lists[an unordered list] (aka bullet list) and a {doctor-man-uri}/#checklist[checklist] (e.g. TODO list)
155
+ verse:: {doctor-man-uri}/#verse[a verse block]
156
+ video:: {doctor-man-uri}/#video[a video block]
157
157
  inline_anchor:: {doctor-man-uri}/#url[anchors] (links, cross references and bibliography references)
158
158
  inline_break:: {doctor-man-uri}/#line-breaks[line break]
159
159
  inline_button:: {doctor-man-uri}/#ui-buttons[UI button]
@@ -172,7 +172,7 @@ You can find them in link:data/examples/asciidoc[].footnote:[Since GitHub implic
172
172
  There are a lot of test examples and some of them may not be relevant to your backend — that’s okay, when some output example is not found, it’s marked as skipped in test.
173
173
 
174
174
  You can also write your own input examples and use them together with those provided (or replace them).
175
- Just add another directory to your examples_path (e.g. `test/examples/asciidoc`) and create example group files with `.adoc` suffix here (e.g. `block_video.adoc`).
175
+ Just add another directory to your examples_path (e.g. `test/examples/asciidoc`) and create example group files with `.adoc` suffix here (e.g. `video.adoc`).
176
176
  When DocTest is looking for examples to test, it indexes all examples found in files with `.adoc` suffix on the examples_path.
177
177
  If there are two files with the same name, it simply merges their content, and if they contain two examples with the same name, then the first wins (i.e. that from the file that is ahead on the examples_path).
178
178
 
@@ -180,7 +180,7 @@ If there are two files with the same name, it simply merges their content, and i
180
180
 
181
181
  [source, asciidoc]
182
182
  ----
183
- // .first_example
183
+ // .first-example
184
184
  // Each block must be preceded by a header (comment); the first line must
185
185
  // contain the example’s name prefixed with a dot. This text is interpreted
186
186
  // as a description.
@@ -188,7 +188,7 @@ The example’s content in *Asciidoc*.
188
188
 
189
189
  NOTE: The trailing new line (below this) will be removed.
190
190
 
191
- // .second_example
191
+ // .second-example
192
192
  * List item level 1
193
193
  ** List item level 2
194
194
 
@@ -233,7 +233,7 @@ header_footer::
233
233
 
234
234
  [source, html]
235
235
  ----
236
- <!-- .first_example
236
+ <!-- .first-example
237
237
  Each example must be preceded by a header (comment); the first line must
238
238
  contain the example’s name prefixed with a dot. This text is interpreted
239
239
  as a description.
@@ -242,7 +242,7 @@ header_footer::
242
242
 
243
243
  <div class="note">The trailing new line (below this) will be removed.</div>
244
244
 
245
- <!-- .second_example
245
+ <!-- .second-example
246
246
  You may also specify options for comparing or Asciidoctor renderer. Option
247
247
  line starts with a semicolon, then comes the option name ended by a
248
248
  semicolon and after that the option’s value (may be omitted for boolean
@@ -282,15 +282,15 @@ Same as previous, but rewrite existing tested examples:
282
282
  [source, sh]
283
283
  bundle exec rake doctest:generate FORCE=yes
284
284
 
285
- Generate just examples for `block_ulist` node (i.e. all examples in `block_ulist.adoc` file(s) found on the examples_path) that doesn’t exist yet:
285
+ Generate just examples for `ulist` node (i.e. all examples in `ulist.adoc` file(s) found on the examples_path) that doesn’t exist yet:
286
286
 
287
287
  [source, sh]
288
- bundle exec rake doctest:generate PATTERN='block_ulist:*'
288
+ bundle exec rake doctest:generate PATTERN='ulist:*'
289
289
 
290
- (Re)generate examples which name starts with `basic` for all _block_ nodes (i.e. files that starts with `block_`):
290
+ (Re)generate examples which name starts with `basic` for all _inline_ nodes (i.e. files that starts with `inline_`):
291
291
 
292
292
  [source, sh]
293
- bundle exec rake doctest:generate PATTERN='block_*:basic*' FORCE=yes
293
+ bundle exec rake doctest:generate PATTERN='inline_*:basic*' FORCE=yes
294
294
 
295
295
 
296
296
  == How to extend it
@@ -1,15 +1,15 @@
1
1
  // .note
2
2
  NOTE: This is a note.
3
3
 
4
- // .note_with_title
4
+ // .note-with-title
5
5
  .Title of note
6
6
  NOTE: This is a note with title.
7
7
 
8
- // .note_with_id_and_role
8
+ // .note-with-id-and-role
9
9
  [#note-1.yellow]
10
10
  NOTE: This is a note with id and role.
11
11
 
12
- // .note_block
12
+ // .note-block
13
13
  [NOTE]
14
14
  ====
15
15
  This is a note with complex content.
@@ -20,15 +20,15 @@ This is a note with complex content.
20
20
  // .tip
21
21
  TIP: This is a tip.
22
22
 
23
- // .tip_with_title
23
+ // .tip-with-title
24
24
  .Title of tip
25
25
  TIP: This is a tip with title.
26
26
 
27
- // .tip_with_id_and_role
27
+ // .tip-with-id-and-role
28
28
  [#tip-1.blue]
29
29
  TIP: This is a tip with id and role.
30
30
 
31
- // .tip_block
31
+ // .tip-block
32
32
  [TIP]
33
33
  ====
34
34
  This is a tip with complex content.
@@ -39,15 +39,15 @@ This is a tip with complex content.
39
39
  // .important
40
40
  IMPORTANT: This is an important notice.
41
41
 
42
- // .important_with_title
42
+ // .important-with-title
43
43
  .Title of important notice
44
44
  IMPORTANT: This is an important notice with title.
45
45
 
46
- // .important_with_id_and_role
46
+ // .important-with-id-and-role
47
47
  [#important-1.red]
48
48
  IMPORTANT: This is an important notice with id and role.
49
49
 
50
- // .important_block
50
+ // .important-block
51
51
  [IMPORTANT]
52
52
  ====
53
53
  This is an important notice with complex content.
@@ -58,15 +58,15 @@ This is an important notice with complex content.
58
58
  // .caution
59
59
  CAUTION: This is a caution.
60
60
 
61
- // .caution_with_title
61
+ // .caution-with-title
62
62
  .Title of caution
63
63
  CAUTION: This is a caution with title.
64
64
 
65
- // .caution_with_id_and_role
65
+ // .caution-with-id-and-role
66
66
  [#caution-1.red]
67
67
  CAUTION: This is a caution with id and role.
68
68
 
69
- // .caution_block
69
+ // .caution-block
70
70
  [CAUTION]
71
71
  ====
72
72
  This is a caution with complex content.
@@ -77,15 +77,15 @@ This is a caution with complex content.
77
77
  // .warning
78
78
  WARNING: This is a warning.
79
79
 
80
- // .warning_with_title
80
+ // .warning-with-title
81
81
  .Title of warning
82
82
  WARNING: This is a warning with title.
83
83
 
84
- // .warning_with_id_and_role
84
+ // .warning-with-id-and-role
85
85
  [#warning-1.red]
86
86
  WARNING: This is a warning with id and role.
87
87
 
88
- // .warning_block
88
+ // .warning-block
89
89
  [WARNING]
90
90
  ====
91
91
  This is a warning with complex content.
@@ -1,13 +1,13 @@
1
1
  // .basic
2
2
  audio::ocean_waves.mp3[]
3
3
 
4
- // .with_all_options
4
+ // .with-all-options
5
5
  audio::ocean_waves.mp3[options="autoplay, nocontrols, loop"]
6
6
 
7
- // .with_title
7
+ // .with-title
8
8
  .Waves!
9
9
  audio::ocean_waves.mp3[]
10
10
 
11
- // .with_id_and_role
11
+ // .with-id-and-role
12
12
  [#ocean.wave]
13
13
  audio::ocean_waves.mp3[]
@@ -13,7 +13,7 @@ end
13
13
  <2> URL mapping
14
14
  <3> Content for response
15
15
 
16
- // .with_title
16
+ // .with-title
17
17
  // This example should assert only callouts list below the code listing.
18
18
  // For callouts inside the listing is responsible inline_callout.
19
19
  [source, ruby]
@@ -29,7 +29,7 @@ end
29
29
  <2> URL mapping
30
30
  <3> Content for response
31
31
 
32
- // .with_id_and_role
32
+ // .with-id-and-role
33
33
  // This example should assert only callouts list below the code listing.
34
34
  // For callouts inside the listing is responsible inline_callout.
35
35
  [source, ruby]
@@ -4,7 +4,7 @@ Asciidoc::
4
4
  A text document format for writing notes, documentation, articles, books,
5
5
  ebooks, slideshows, web pages, man pages and blogs.
6
6
 
7
- // .basic_block
7
+ // .basic-block
8
8
  About::
9
9
  * An implementation of the AsciiDoc processor in Ruby.
10
10
  * Fast text processor and publishing toolchain.
@@ -15,14 +15,14 @@ from many other individuals in Asciidoctor’s awesome community.
15
15
  +
16
16
  AsciiDoc was started by Stuart Rackham.
17
17
 
18
- // .basic_missing_description
18
+ // .basic-missing-description
19
19
  Definition without a description::
20
20
 
21
- // .basic_with_title
21
+ // .basic-with-title
22
22
  .Asciidoctor
23
23
  License:: MIT
24
24
 
25
- // .basic_with_id_and_role
25
+ // .basic-with-id-and-role
26
26
  [#licenses.open]
27
27
  License:: MIT
28
28
 
@@ -32,7 +32,7 @@ What is Asciidoctor?::
32
32
  An implementation of the AsciiDoc processor in Ruby.
33
33
  What is the answer to the Ultimate Question?:: 42
34
34
 
35
- // .qanda_block
35
+ // .qanda-block
36
36
  [qanda]
37
37
  What is Asciidoctor?::
38
38
  * An implementation of the AsciiDoc processor in Ruby.
@@ -44,16 +44,16 @@ from many other individuals in Asciidoctor’s awesome community.
44
44
  +
45
45
  AsciiDoc was started by Stuart Rackham.
46
46
 
47
- // .qanda_missing_answer
47
+ // .qanda-missing-answer
48
48
  [qanda]
49
49
  Who knows the answer?::
50
50
 
51
- // .qanda_with_title
51
+ // .qanda-with-title
52
52
  [qanda]
53
53
  .The most important questions
54
54
  What is the answer to the Ultimate Question?:: 42
55
55
 
56
- // .qanda_with_id_and_role
56
+ // .qanda-with-id-and-role
57
57
  [qanda, id=faq, role=galaxy]
58
58
  What is the answer to the Ultimate Question?:: 42
59
59
 
@@ -62,18 +62,18 @@ What is the answer to the Ultimate Question?:: 42
62
62
  Hard drive:: Permanent storage for operating system and/or user files.
63
63
  RAM:: Temporarily stores information the CPU uses during operation.
64
64
 
65
- // .horizontal_with_dimensions
65
+ // .horizontal-with-dimensions
66
66
  [horizontal, labelwidth="20", itemwidth="50%"]
67
67
  Hard drive:: Permanent storage for operating system and/or user files.
68
68
  RAM:: Temporarily stores information the CPU uses during operation.
69
69
 
70
- // .horizontal_with_title
70
+ // .horizontal-with-title
71
71
  [horizontal]
72
72
  .Computer terminology for noobs
73
73
  Hard drive:: Permanent storage for operating system and/or user files.
74
74
  RAM:: Temporarily stores information the CPU uses during operation.
75
75
 
76
- // .horizontal_with_id_and_role
76
+ // .horizontal-with-id-and-role
77
77
  [horizontal, id=computer, role=terms]
78
78
  Hard drive:: Permanent storage for operating system and/or user files.
79
79
  RAM:: Temporarily stores information the CPU uses during operation.
@@ -1,29 +1,29 @@
1
1
  // .title
2
2
  = The Dangerous and Thrilling Documentation Chronicles
3
3
 
4
- // .title_with_author
4
+ // .title-with-author
5
5
  = The Dangerous and Thrilling Documentation Chronicles
6
6
  Kismet Rainbow Chameleon <kismet@asciidoctor.org>
7
7
 
8
- // .title_with_author_no_email
8
+ // .title-with-author-no-email
9
9
  = The Dangerous and Thrilling Documentation Chronicles
10
10
  Kismet Rainbow Chameleon
11
11
 
12
- // .title_with_multiple_authors
12
+ // .title-with-multiple-authors
13
13
  = The Dangerous and Thrilling Documentation Chronicles
14
14
  Kismet Rainbow Chameleon <kismet@asciidoctor.org>; Lazarus het_Draeke <lazarus@asciidoctor.org>
15
15
 
16
- // .title_with_revnumber
16
+ // .title-with-revnumber
17
17
  = Document Title
18
18
  Kismet Chameleon
19
19
  v1.0
20
20
 
21
- // .title_with_revdate
21
+ // .title-with-revdate
22
22
  = Document Title
23
23
  Kismet Chameleon
24
24
  v1.0, 2013-10-02
25
25
 
26
- // .title_with_revremark
26
+ // .title-with-revremark
27
27
  = Document Title
28
28
  Kismet Chameleon
29
29
  v1.0, October 2, 2013: First incarnation
@@ -36,14 +36,14 @@ A bold statement.footnoteref:[disclaimer,Opinions are my own.]
36
36
  Another outrageous statement.footnoteref:[disclaimer]
37
37
 
38
38
  // .toc
39
- // Actual TOC content is rendered in block_outline, this template usually
40
- // renders just a "border".
39
+ // Actual TOC content is rendered in the outline template, this template
40
+ // usually renders just a "border".
41
41
  = Document Title
42
42
  :toc:
43
43
 
44
44
  == Cavern Glow
45
45
 
46
- // .toc_title
46
+ // .toc-title
47
47
  = Document Title
48
48
  :toc:
49
49
  :toc-title: Table of Adventures
@@ -4,7 +4,7 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
4
4
  incididunt ut labore et dolore magna aliqua.
5
5
  ====
6
6
 
7
- // .with_title
7
+ // .with-title
8
8
  .Sample document
9
9
  ====
10
10
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
@@ -13,7 +13,7 @@ incididunt ut labore et dolore magna aliqua.
13
13
  The document header is useful, but not required.
14
14
  ====
15
15
 
16
- // .with_id_and_role
16
+ // .with-id-and-role
17
17
  [#lorem.ipsum]
18
18
  ====
19
19
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
@@ -18,10 +18,10 @@
18
18
  [discrete]
19
19
  ====== Discrete Title Level 5
20
20
 
21
- // .with_custom_id
21
+ // .with-custom-id
22
22
  [discrete, id=flying]
23
23
  == Discrete Title Level 1
24
24
 
25
- // .with_roles
25
+ // .with-roles
26
26
  [discrete.flying.circus]
27
27
  === Discrete Title Level 2
@@ -1,28 +1,28 @@
1
1
  // .basic
2
2
  image::sunset.jpg[]
3
3
 
4
- // .with_alt_text
4
+ // .with-alt-text
5
5
  image::sunset.jpg[Shining sun]
6
6
 
7
- // .with_align
7
+ // .with-align
8
8
  image::sunset.jpg[align="center"]
9
9
 
10
- // .with_float
10
+ // .with-float
11
11
  image::sunset.jpg[float="right"]
12
12
 
13
- // .with_dimensions
13
+ // .with-dimensions
14
14
  image::sunset.jpg[Shining sun, 300, 200]
15
15
 
16
- // .with_link
16
+ // .with-link
17
17
  image::sunset.jpg[link="http://www.flickr.com/photos/javh/5448336655"]
18
18
 
19
- // .with_title
19
+ // .with-title
20
20
  .A mountain sunset
21
21
  image::sunset.jpg[]
22
22
 
23
- // .with_id
23
+ // .with-id
24
24
  [[img-sunset]]
25
25
  image::sunset.jpg[]
26
26
 
27
- // .with_roles
27
+ // .with-roles
28
28
  image::sunset.jpg[role="right text-center"]