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
@@ -4,24 +4,24 @@
4
4
  // .xref
5
5
  The section <<page-break>> describes how to add a page break.
6
6
 
7
- // .xref_interdoc
7
+ // .xref-interdoc
8
8
  The section <<manual.adoc#page-break>> describes how to add a page break.
9
9
 
10
- // .xref_with_text
10
+ // .xref-with-text
11
11
  The section <<page-break, Page break>> describes how to add a page break.
12
12
 
13
- // .xref_resolved_text
13
+ // .xref-resolved-text
14
14
  Refer to <<Section A>>.
15
15
 
16
16
  == Section A
17
17
 
18
- // .xref_reftext
18
+ // .xref-reftext
19
19
  Refer to <<install>>.
20
20
 
21
21
  [#install, reftext="Installation Procedure"]
22
22
  == Installation
23
23
 
24
- // .xref_xrefstyle
24
+ // .xref-xrefstyle
25
25
  // Supported since Asciidoctor 1.5.6.
26
26
  :sectnums:
27
27
  :section-refsig: Sec.
@@ -36,7 +36,7 @@ Refer to <<install>>.
36
36
  [bibliography]
37
37
  * [[[prag]]] Andy Hunt & Dave Thomas. The Pragmatic Programmer
38
38
 
39
- // .bibref_with_text
39
+ // .bibref-with-text
40
40
  // Supported since Asciidoctor 1.5.6.
41
41
  // This is an item (anchor) in the bibliography, not a link to it.
42
42
  [bibliography]
@@ -45,12 +45,12 @@ Refer to <<install>>.
45
45
  // .link
46
46
  http://www.asciidoctor.org
47
47
 
48
- // .link_with_text
48
+ // .link-with-text
49
49
  irc://irc.freenode.org/#asciidoctor[Asciidoctor IRC channel]
50
50
 
51
- // .link_with_target_blank
51
+ // .link-with-target-blank
52
52
  link:view-source:asciidoctor.org[Asciidoctor homepage^]
53
53
 
54
- // .link_with_role
54
+ // .link-with-role
55
55
  :linkattrs:
56
56
  http://discuss.asciidoctor.org/[*mailing list*, role="green"]
@@ -1,4 +1,4 @@
1
- // .plus_sign
1
+ // .plus-sign
2
2
  Rubies are red, +
3
3
  Topazes are blue.
4
4
 
@@ -5,5 +5,5 @@ Apocalyptic party.footnote:[The double hail-and-rainbow level makes my toes ting
5
5
  A bold statement.footnoteref:[disclaimer,Opinions are my own.]
6
6
  Another outrageous statement.footnoteref:[disclaimer]
7
7
 
8
- // .xref_unresolved
8
+ // .xref-unresolved
9
9
  A bold statement.footnoteref:[foobar]
@@ -1,44 +1,44 @@
1
1
  // .image
2
2
  image:linux.svg[]
3
3
 
4
- // .image_with_alt_text
4
+ // .image-with-alt-text
5
5
  image:linux.svg[Tux]
6
6
 
7
- // .image_with_dimensions
7
+ // .image-with-dimensions
8
8
  image:linux.svg[Tux, 25, 35]
9
9
 
10
- // .image_with_float
10
+ // .image-with-float
11
11
  image:linux.svg[float="right"]
12
12
 
13
- // .image_with_link
13
+ // .image-with-link
14
14
  image:linux.svg[link="http://inkscape.org/doc/examples/tux.svg"]
15
15
 
16
- // .image_with_role
16
+ // .image-with-role
17
17
  image:linux.svg[role="black"]
18
18
 
19
19
  // .icon
20
20
  :icons:
21
21
  icon:tags[]
22
22
 
23
- // .icon_with_dimensions
23
+ // .icon-with-dimensions
24
24
  :icons:
25
25
  icon:tags[height=25, width=35]
26
26
 
27
- // .icon_with_float
27
+ // .icon-with-float
28
28
  :icons:
29
29
  icon:heart[float="right"]
30
30
 
31
- // .icon_with_link
31
+ // .icon-with-link
32
32
  :icons:
33
33
  icon:download[link="http://rubygems.org/downloads/asciidoctor-1.5.2.gem"]
34
34
 
35
- // .icon_with_title
35
+ // .icon-with-title
36
36
  :icons:
37
37
  icon:heart[title="I <3 Asciidoctor"]
38
38
 
39
- // .icon_with_role
39
+ // .icon-with-role
40
40
  :icons:
41
41
  icon:tags[role="blue"]
42
42
 
43
- // .icon_no_icons
43
+ // .icon-no-icons
44
44
  icon:tags[]
@@ -4,31 +4,31 @@
4
4
  // .emphasis
5
5
  _chunky bacon_
6
6
 
7
- // .emphasis_with_role
7
+ // .emphasis-with-role
8
8
  [why]_chunky bacon_
9
9
 
10
10
  // .strong
11
11
  *chunky bacon*
12
12
 
13
- // .strong_with_role
13
+ // .strong-with-role
14
14
  [why]*chunky bacon*
15
15
 
16
16
  // .monospaced
17
17
  `hello world!`
18
18
 
19
- // .monospaced_with_role
19
+ // .monospaced-with-role
20
20
  [why]`hello world!`
21
21
 
22
22
  // .superscript
23
23
  ^super^chunky bacon
24
24
 
25
- // .superscript_with_role
25
+ // .superscript-with-role
26
26
  [why]^super^chunky bacon
27
27
 
28
28
  // .subscript
29
29
  ~sub~chunky bacon
30
30
 
31
- // .subscript_with_role
31
+ // .subscript-with-role
32
32
  [why]~sub~chunky bacon
33
33
 
34
34
  // .mark
@@ -37,13 +37,13 @@ _chunky bacon_
37
37
  // .double
38
38
  "`chunky bacon`"
39
39
 
40
- // .double_with_role
40
+ // .double-with-role
41
41
  [why]"`chunky bacon`"
42
42
 
43
43
  // .single
44
44
  '`chunky bacon`'
45
45
 
46
- // .single_with_role
46
+ // .single-with-role
47
47
  [why]'`chunky bacon`'
48
48
 
49
49
  // .asciimath
@@ -52,8 +52,8 @@ asciimath:[sqrt(4) = 2]
52
52
  // .latexmath
53
53
  latexmath:[$C = \alpha + \beta Y^{\gamma} + \epsilon$]
54
54
 
55
- // .with_id
55
+ // .with-id
56
56
  [#why]_chunky bacon_
57
57
 
58
- // .mixed_monospace_bold_italic
58
+ // .mixed-monospace-bold-italic
59
59
  `*_monospace bold italic phrase_*` and le``**__tt__**``ers
@@ -5,7 +5,7 @@ read name
5
5
  echo "Hello, $name!"
6
6
  ----
7
7
 
8
- // .basic_with_title
8
+ // .basic-with-title
9
9
  .Reading user input
10
10
  ----
11
11
  echo -n "Please enter your name: "
@@ -13,13 +13,13 @@ read name
13
13
  echo "Hello, $name!"
14
14
  ----
15
15
 
16
- // .basic_nowrap
16
+ // .basic-nowrap
17
17
  [options="nowrap"]
18
18
  ----
19
19
  ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
20
20
  ----
21
21
 
22
- // .basic_with_id_and_role
22
+ // .basic-with-id-and-role
23
23
  [#code.example]
24
24
  ----
25
25
  echo -n "Please enter your name: "
@@ -35,7 +35,7 @@ echo "Hello, $name!"
35
35
  end
36
36
  ----
37
37
 
38
- // .source_with_title
38
+ // .source-with-title
39
39
  [source]
40
40
  .Odelay!
41
41
  ----
@@ -44,7 +44,7 @@ end
44
44
  end
45
45
  ----
46
46
 
47
- // .source_with_language
47
+ // .source-with-language
48
48
  [source, ruby]
49
49
  ----
50
50
  5.times do
@@ -52,7 +52,7 @@ end
52
52
  end
53
53
  ----
54
54
 
55
- // .source_nowrap
55
+ // .source-nowrap
56
56
  [source, java, options="nowrap"]
57
57
  ----
58
58
  public class ApplicationConfigurationProvider extends HttpConfigurationProvider {
@@ -5,7 +5,7 @@ absolutely fatal: operation initiation lost in the dodecahedron of doom
5
5
  would you like to die again? y/n
6
6
  ....
7
7
 
8
- // .with_title
8
+ // .with-title
9
9
  .Die again?
10
10
  ....
11
11
  error: The requested operation returned error: 1954 Forbidden search for defensive operations manual
@@ -13,7 +13,7 @@ absolutely fatal: operation initiation lost in the dodecahedron of doom
13
13
  would you like to die again? y/n
14
14
  ....
15
15
 
16
- // .with_id_and_role
16
+ // .with-id-and-role
17
17
  [#error.fatal]
18
18
  ....
19
19
  error: The requested operation returned error: 1954 Forbidden search for defensive operations manual
@@ -3,19 +3,19 @@
3
3
  . Step 2
4
4
  . Step 3
5
5
 
6
- // .with_start
6
+ // .with-start
7
7
  [start=6]
8
8
  . Step 1
9
9
  . Step 2
10
10
  . Step 3
11
11
 
12
- // .with_reversed
12
+ // .with-reversed
13
13
  [%reversed]
14
14
  . Step 1
15
15
  . Step 2
16
16
  . Step 3
17
17
 
18
- // .with_numeration_styles
18
+ // .with-numeration-styles
19
19
  [decimal]
20
20
  . level 1
21
21
  [upperalpha]
@@ -27,19 +27,19 @@
27
27
  [lowergreek]
28
28
  ..... level 5
29
29
 
30
- // .with_title
30
+ // .with-title
31
31
  .Steps
32
32
  . Step 1
33
33
  . Step 2
34
34
  . Step 3
35
35
 
36
- // .with_id_and_role
36
+ // .with-id-and-role
37
37
  [#steps.green]
38
38
  . Step 1
39
39
  . Step 2
40
40
  . Step 3
41
41
 
42
- // .max_nesting
42
+ // .max-nesting
43
43
  . level 1
44
44
  .. level 2
45
45
  ... level 3
@@ -47,7 +47,7 @@
47
47
  ..... level 5
48
48
  .. level 2
49
49
 
50
- // .complex_content
50
+ // .complex-content
51
51
  . Every list item has at least one paragraph of content,
52
52
  which may be wrapped, even using a hanging indent.
53
53
  +
@@ -4,14 +4,14 @@ An open block can be an anonymous container,
4
4
  or it can masquerade as any other block.
5
5
  --
6
6
 
7
- // .basic_with_title
7
+ // .basic-with-title
8
8
  .An open block
9
9
  --
10
10
  An open block can be an anonymous container,
11
11
  or it can masquerade as any other block.
12
12
  --
13
13
 
14
- // .basic_with_id_and_role
14
+ // .basic-with-id-and-role
15
15
  [#open.example]
16
16
  --
17
17
  An open block can be an anonymous container,
@@ -24,7 +24,7 @@ or it can masquerade as any other block.
24
24
  This is an abstract quote block.
25
25
  --
26
26
 
27
- // .abstract_with_title
27
+ // .abstract-with-title
28
28
  [abstract]
29
29
  .Abstract title is abstract
30
30
  --
@@ -32,7 +32,7 @@ This is an abstract quote block.
32
32
  Who knows what it really means?
33
33
  --
34
34
 
35
- // .abstract_with_id_and_role
35
+ // .abstract-with-id-and-role
36
36
  [abstract, id="open", role="example"]
37
37
  --
38
38
  This is an abstract quote block.
@@ -4,14 +4,14 @@ A paragraph is just one or more lines of consecutive text.
4
4
 
5
5
  To begin a new paragraph, separate it by at least one blank line.
6
6
 
7
- // .with_title
7
+ // .with-title
8
8
  .Paragraphs
9
9
  Paragraphs don't require any special markup in AsciiDoc.
10
10
  A paragraph is just one or more lines of consecutive text.
11
11
 
12
12
  To begin a new paragraph, separate it by at least one blank line.
13
13
 
14
- // .with_id_and_role
14
+ // .with-id-and-role
15
15
  [#para-1.red]
16
16
  Paragraphs don't require any special markup in AsciiDoc.
17
17
  A paragraph is just one or more lines of consecutive text.
@@ -7,7 +7,7 @@ Our intrepid team is in desperate need of double shot mochas, but the milk expir
7
7
  == Cavern Glow
8
8
  The river rages through the cavern, rattling its content.
9
9
 
10
- // .toc_placement_preamble
10
+ // .toc-placement-preamble
11
11
  = The Dangerous and Thrilling Documentation Chronicles
12
12
  :toc:
13
13
  :toc-placement: preamble
@@ -3,20 +3,20 @@
3
3
  Four score and seven years ago our fathers brought forth
4
4
  on this continent a new nation...
5
5
 
6
- // .with_attribution
6
+ // .with-attribution
7
7
  [quote, Albert Einstein]
8
8
  A person who never made a mistake never tried anything new.
9
9
 
10
- // .with_attribution_and_citetitle
10
+ // .with-attribution-and-citetitle
11
11
  [quote, Captain James T. Kirk, Star Trek IV: The Voyage Home]
12
12
  Everybody remember where we parked.
13
13
 
14
- // .with_title
14
+ // .with-title
15
15
  .After landing the cloaked Klingon bird of prey in Golden Gate park:
16
16
  [quote]
17
17
  Everybody remember where we parked.
18
18
 
19
- // .with_id_and_role
19
+ // .with-id-and-role
20
20
  [quote, id="parking", role="startrek"]
21
21
  Everybody remember where we parked.
22
22
 
@@ -13,7 +13,7 @@
13
13
  // .level5
14
14
  ====== Section Level 5
15
15
 
16
- // .max_nesting
16
+ // .max-nesting
17
17
  == Section Level 1
18
18
 
19
19
  === Section Level 2
@@ -26,11 +26,11 @@
26
26
 
27
27
  === Section Level 2
28
28
 
29
- // .with_custom_id
29
+ // .with-custom-id
30
30
  [#foo]
31
31
  == Section Title
32
32
 
33
- // .with_roles
33
+ // .with-roles
34
34
  [.center.red]
35
35
  == Section Title
36
36
 
@@ -42,7 +42,7 @@
42
42
  :sectlinks:
43
43
  == Linked title
44
44
 
45
- // .sectanchors_and_sectlinks
45
+ // .sectanchors-and-sectlinks
46
46
  :sectanchors:
47
47
  :sectlinks:
48
48
  == Linked title with anchor
@@ -63,7 +63,7 @@
63
63
 
64
64
  == Terms and Concepts
65
65
 
66
- // .numbered_sectnumlevels_1
66
+ // .numbered-sectnumlevels-1
67
67
  :numbered:
68
68
  :sectnumlevels: 1
69
69
  == Introduction to Asciidoctor