webby 0.9.2 → 0.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. data/History.txt +13 -0
  2. data/Manifest.txt +44 -33
  3. data/Rakefile +2 -2
  4. data/bin/webby +33 -0
  5. data/bin/webby-gen +33 -0
  6. data/examples/presentation/content/presentation/s5/bodybg.gif +0 -0
  7. data/examples/presentation/content/presentation/s5/print.css +25 -1
  8. data/examples/webby/content/release-notes/rel-0-9-3/index.txt +49 -0
  9. data/lib/webby.rb +3 -10
  10. data/lib/webby/apps/generator.rb +41 -48
  11. data/lib/webby/apps/main.rb +22 -0
  12. data/lib/webby/auto_builder.rb +78 -6
  13. data/lib/webby/builder.rb +9 -9
  14. data/lib/webby/core_ext/kernel.rb +5 -0
  15. data/lib/webby/filters/wiki_words.rb +14 -0
  16. data/lib/webby/helpers/url_helper.rb +6 -0
  17. data/lib/webby/journal.rb +126 -0
  18. data/lib/webby/renderer.rb +11 -6
  19. data/lib/webby/resources/meta_file.rb +8 -5
  20. data/lib/webby/stelan/paginator.rb +2 -2
  21. data/lib/webby/tasks/growl.rake +4 -3
  22. data/spec/data/outline/basic.out +81 -0
  23. data/spec/data/outline/basic.txt +25 -0
  24. data/spec/data/outline/no_clobber.out +86 -0
  25. data/spec/data/outline/numbering.out +81 -0
  26. data/spec/data/outline/numbering_only.out +21 -0
  27. data/spec/data/outline/toc_range_1.out +66 -0
  28. data/spec/data/outline/toc_range_2.out +55 -0
  29. data/spec/data/outline/toc_style.out +81 -0
  30. data/spec/data/{Sitefile → site/Sitefile} +0 -0
  31. data/spec/data/{content → site/content}/_partial.txt +0 -0
  32. data/spec/data/{content → site/content}/css/coderay.css +0 -0
  33. data/spec/data/{content → site/content}/css/site.css +0 -0
  34. data/spec/data/{content → site/content}/css/tumblog.css +0 -0
  35. data/spec/data/{content → site/content}/images/tumblog/permalink.gif +0 -0
  36. data/spec/data/{content → site/content}/images/tumblog/rss.gif +0 -0
  37. data/spec/data/{content → site/content}/index.txt +0 -0
  38. data/spec/data/{content → site/content}/photos.txt +0 -0
  39. data/spec/data/{content → site/content}/tumblog/200806/the-noble-chicken/index.txt +0 -0
  40. data/spec/data/{content → site/content}/tumblog/200807/historical-perspectives-on-the-classic-chicken-joke/index.txt +0 -0
  41. data/spec/data/{content → site/content}/tumblog/200807/mad-city-chickens/index.txt +0 -0
  42. data/spec/data/{content → site/content}/tumblog/200807/the-wisdom-of-the-dutch/index.txt +0 -0
  43. data/spec/data/{content → site/content}/tumblog/200807/up-a-tree/index.txt +0 -0
  44. data/spec/data/{content → site/content}/tumblog/index.txt +0 -0
  45. data/spec/data/{content → site/content}/tumblog/rss.txt +0 -0
  46. data/spec/data/{layouts → site/layouts}/default.txt +0 -0
  47. data/spec/data/{layouts → site/layouts}/tumblog/default.txt +0 -0
  48. data/spec/data/{layouts → site/layouts}/tumblog/post.txt +0 -0
  49. data/spec/data/{lib → site/lib}/breadcrumbs.rb +0 -0
  50. data/spec/data/{lib → site/lib}/tumblog_helper.rb +0 -0
  51. data/spec/data/{tasks → site/tasks}/tumblog.rake +0 -0
  52. data/spec/data/{templates → site/templates}/_partial.erb +0 -0
  53. data/spec/data/{templates → site/templates}/atom_feed.erb +0 -0
  54. data/spec/data/{templates → site/templates}/page.erb +0 -0
  55. data/{examples/website → spec/data/site}/templates/presentation.erb +0 -0
  56. data/spec/data/{templates → site/templates}/tumblog/conversation.erb +0 -0
  57. data/spec/data/{templates → site/templates}/tumblog/link.erb +0 -0
  58. data/spec/data/{templates → site/templates}/tumblog/photo.erb +0 -0
  59. data/spec/data/{templates → site/templates}/tumblog/post.erb +0 -0
  60. data/spec/data/{templates → site/templates}/tumblog/quote.erb +0 -0
  61. data/spec/spec_helper.rb +4 -4
  62. data/spec/webby/apps/generator_spec.rb +3 -2
  63. data/spec/webby/filters/basepath_spec.rb +167 -0
  64. data/spec/webby/filters/outline_spec.rb +92 -0
  65. data/spec/webby/renderer_spec.rb +1 -1
  66. data/spec/webby/resources/db_spec.rb +1 -1
  67. data/spec/webby/resources/layout_spec.rb +1 -1
  68. data/spec/webby/resources/meta_file_spec.rb +27 -13
  69. data/spec/webby/resources/page_spec.rb +1 -1
  70. data/spec/webby/resources/resource_spec.rb +1 -1
  71. data/spec/webby/resources_spec.rb +1 -1
  72. data/tasks/gem.rake +93 -32
  73. data/tasks/manifest.rake +3 -4
  74. data/tasks/rubyforge.rake +2 -4
  75. metadata +67 -56
  76. data/lib/webby/tasks/heel.rake +0 -28
  77. data/spec/data/templates/presentation.erb +0 -40
@@ -74,7 +74,9 @@ class MetaFile
74
74
  # found at the beginning of the stream.
75
75
  #
76
76
  def read
77
- @io.seek(meta_end || 0)
77
+ count = meta_end
78
+ @io.seek 0
79
+ count.times {@io.gets} unless count.nil?
78
80
  @io.read
79
81
  end
80
82
 
@@ -188,12 +190,13 @@ class MetaFile
188
190
  return unless META_SEP =~ line
189
191
 
190
192
  @io.seek 0
191
- pos = nil
192
- buffer = @io.gets.length
193
+ @io.gets
194
+ pos, count = nil, 1
195
+
193
196
  while line = @io.gets
194
- buffer += line.length
197
+ count += 1
195
198
  if META_SEP =~ line
196
- pos = buffer
199
+ pos = count
197
200
  @meta_count += 1
198
201
  end
199
202
  end
@@ -73,7 +73,7 @@ class Paginator
73
73
  end
74
74
 
75
75
  # Finalizer method that should be called when the paginator is finished
76
- def done
76
+ def reset
77
77
  resource._reset(@meta_data)
78
78
  end
79
79
 
@@ -92,7 +92,7 @@ class Paginator
92
92
  @offset = (number - 1) * pager.per_page
93
93
  @select = select
94
94
 
95
- @pager.resource._reset
95
+ @pager.reset
96
96
  if number > 1
97
97
  if ::Webby.site.create_mode == 'directory'
98
98
  @pager.resource['directory'] = File.join(@pager.directory, number.to_s)
@@ -2,12 +2,13 @@
2
2
  unless WINDOWS
3
3
 
4
4
  task :growl do
5
- Logging::Logger['Webby'].add_appenders(Logging::Appenders::Growl.new(
6
- "Webby",
5
+ growl = Logging::Appenders::Growl.new('growl',
7
6
  :layout => Logging::Layouts::Pattern.new(:pattern => "%5l - Webby\000%m"),
8
7
  :coalesce => true,
9
8
  :separator => "\000"
10
- ))
9
+ )
10
+ Logging::Logger['Webby'].add_appenders(growl)
11
+ Logging::Logger['Webby::Journal'].add_appenders(growl)
11
12
  end
12
13
 
13
14
  end # unless WINDOWS
@@ -0,0 +1,81 @@
1
+ <ol>
2
+ <li>
3
+ <a href="#h1">First Header</a>
4
+ <ol>
5
+ <li>
6
+ <a href="#h1_1">Second Header</a>
7
+ </li>
8
+ <li>
9
+ <a href="#h1_2">Third Header</a>
10
+ </li>
11
+ </ol>
12
+ </li>
13
+ <li>
14
+ <a href="#h2">Fourth Header</a>
15
+ </li>
16
+ <li>
17
+ <a href="#h3">Fifth Header</a>
18
+ <ol>
19
+ <li>
20
+ <a href="#h3_1">Sixth Header</a>
21
+ <ol>
22
+ <li>
23
+ <a href="#h3_1_1">Seventh Header</a>
24
+ <ol>
25
+ <li>
26
+ <a href="#h3_1_1_1">Eighth Header</a>
27
+ <ol>
28
+ <li>
29
+ <a href="#h3_1_1_1_1">Ninth Header</a>
30
+ <ol>
31
+ <li>
32
+ <a href="#h3_1_1_1_1_1">Tenth Header</a>
33
+ </li>
34
+ </ol>
35
+ </li>
36
+ </ol>
37
+ </li>
38
+ </ol>
39
+ </li>
40
+ </ol>
41
+ </li>
42
+ <li>
43
+ <a href="#h3_2">Eleventh Header</a>
44
+ <ol>
45
+ <li>
46
+ <a href="#h3_2_1">Twelfth Header</a>
47
+ </li>
48
+ <li>
49
+ <a href="#h3_2_2">Thirteenth Header</a>
50
+ </li>
51
+ </ol>
52
+ </li>
53
+ </ol>
54
+ </li>
55
+ <li>
56
+ <a href="#h4">Fourteenth Header</a>
57
+ <ol>
58
+ <li>
59
+ <a href="#h4_1">Fifteenth Header</a>
60
+ </li>
61
+ </ol></li></ol>
62
+
63
+ <h1 id="h1"><span class="heading-num">1</span>First Header</h1>
64
+ <h2 id="h1_1"><span class="heading-num">1.1</span>Second Header</h2>
65
+ <h2 id="h1_2"><span class="heading-num">1.2</span>Third Header</h2>
66
+
67
+ <h1 id="h2"><span class="heading-num">2</span>Fourth Header</h1>
68
+
69
+ <h1 id="h3"><span class="heading-num">3</span>Fifth Header</h1>
70
+ <h2 id="h3_1"><span class="heading-num">3.1</span>Sixth Header</h2>
71
+ <h3 id="h3_1_1"><span class="heading-num">3.1.1</span>Seventh Header</h3>
72
+ <h4 id="h3_1_1_1"><span class="heading-num">3.1.1.1</span>Eighth Header</h4>
73
+ <h5 id="h3_1_1_1_1"><span class="heading-num">3.1.1.1.1</span>Ninth Header</h5>
74
+ <h6 id="h3_1_1_1_1_1"><span class="heading-num">3.1.1.1.1.1</span>Tenth Header</h6>
75
+
76
+ <h2 id="h3_2"><span class="heading-num">3.2</span>Eleventh Header</h2>
77
+ <h3 id="h3_2_1"><span class="heading-num">3.2.1</span>Twelfth Header</h3>
78
+ <h3 id="h3_2_2"><span class="heading-num">3.2.2</span>Thirteenth Header</h3>
79
+
80
+ <h1 id="h4"><span class="heading-num">4</span>Fourteenth Header</h1>
81
+ <h2 id="h4_1"><span class="heading-num">4.1</span>Fifteenth Header</h2>
@@ -0,0 +1,25 @@
1
+ ---
2
+ title: Outline Test
3
+ filter: outline
4
+ ---
5
+ <toc />
6
+
7
+ <h1>First Header</h1>
8
+ <h2>Second Header</h2>
9
+ <h2>Third Header</h2>
10
+
11
+ <h1>Fourth Header</h1>
12
+
13
+ <h1>Fifth Header</h1>
14
+ <h2>Sixth Header</h2>
15
+ <h3>Seventh Header</h3>
16
+ <h4>Eighth Header</h4>
17
+ <h5>Ninth Header</h5>
18
+ <h6>Tenth Header</h6>
19
+
20
+ <h2>Eleventh Header</h2>
21
+ <h3>Twelfth Header</h3>
22
+ <h3>Thirteenth Header</h3>
23
+
24
+ <h1>Fourteenth Header</h1>
25
+ <h2>Fifteenth Header</h2>
@@ -0,0 +1,86 @@
1
+ <div>
2
+ <p>This is the title</p>
3
+ <ol>
4
+ <li>
5
+ <a href="#h1">First Header</a>
6
+ <ol>
7
+ <li>
8
+ <a href="#h1_1">Second Header</a>
9
+ </li>
10
+ <li>
11
+ <a href="#h1_2">Third Header</a>
12
+ </li>
13
+ </ol>
14
+ </li>
15
+ <li>
16
+ <a href="#h2">Fourth Header</a>
17
+ </li>
18
+ <li>
19
+ <a href="#h3">Fifth Header</a>
20
+ <ol>
21
+ <li>
22
+ <a href="#h3_1">Sixth Header</a>
23
+ <ol>
24
+ <li>
25
+ <a href="#h3_1_1">Seventh Header</a>
26
+ <ol>
27
+ <li>
28
+ <a href="#h3_1_1_1">Eighth Header</a>
29
+ <ol>
30
+ <li>
31
+ <a href="#h3_1_1_1_1">Ninth Header</a>
32
+ <ol>
33
+ <li>
34
+ <a href="#h3_1_1_1_1_1">Tenth Header</a>
35
+ </li>
36
+ </ol>
37
+ </li>
38
+ </ol>
39
+ </li>
40
+ </ol>
41
+ </li>
42
+ </ol>
43
+ </li>
44
+ <li>
45
+ <a href="#h3_2">Eleventh Header</a>
46
+ <ol>
47
+ <li>
48
+ <a href="#h3_2_1">Twelfth Header</a>
49
+ </li>
50
+ <li>
51
+ <a href="#h3_2_2">Thirteenth Header</a>
52
+ </li>
53
+ </ol>
54
+ </li>
55
+ </ol>
56
+ </li>
57
+ <li>
58
+ <a href="#h4">Fourteenth Header</a>
59
+ <ol>
60
+ <li>
61
+ <a href="#h4_1">Fifteenth Header</a>
62
+ </li>
63
+ </ol></li></ol>
64
+ <p>And some sampler text</p>
65
+ </div>
66
+
67
+
68
+ <h1 id="h1"><span class="heading-num">1</span>First Header</h1>
69
+ <h2 id="h1_1"><span class="heading-num">1.1</span>Second Header</h2>
70
+ <h2 id="h1_2"><span class="heading-num">1.2</span>Third Header</h2>
71
+
72
+ <h1 id="h2"><span class="heading-num">2</span>Fourth Header</h1>
73
+
74
+ <h1 id="h3"><span class="heading-num">3</span>Fifth Header</h1>
75
+ <h2 id="h3_1"><span class="heading-num">3.1</span>Sixth Header</h2>
76
+ <h3 id="h3_1_1"><span class="heading-num">3.1.1</span>Seventh Header</h3>
77
+ <h4 id="h3_1_1_1"><span class="heading-num">3.1.1.1</span>Eighth Header</h4>
78
+ <h5 id="h3_1_1_1_1"><span class="heading-num">3.1.1.1.1</span>Ninth Header</h5>
79
+ <h6 id="h3_1_1_1_1_1"><span class="heading-num">3.1.1.1.1.1</span>Tenth Header</h6>
80
+
81
+ <h2 id="h3_2"><span class="heading-num">3.2</span>Eleventh Header</h2>
82
+ <h3 id="h3_2_1"><span class="heading-num">3.2.1</span>Twelfth Header</h3>
83
+ <h3 id="h3_2_2"><span class="heading-num">3.2.2</span>Thirteenth Header</h3>
84
+
85
+ <h1 id="h4"><span class="heading-num">4</span>Fourteenth Header</h1>
86
+ <h2 id="h4_1"><span class="heading-num">4.1</span>Fifteenth Header</h2>
@@ -0,0 +1,81 @@
1
+ <ol start="3">
2
+ <li>
3
+ <a href="#h3">First Header</a>
4
+ <ol>
5
+ <li>
6
+ <a href="#h3_1">Second Header</a>
7
+ </li>
8
+ <li>
9
+ <a href="#h3_2">Third Header</a>
10
+ </li>
11
+ </ol>
12
+ </li>
13
+ <li>
14
+ <a href="#h4">Fourth Header</a>
15
+ </li>
16
+ <li>
17
+ <a href="#h5">Fifth Header</a>
18
+ <ol>
19
+ <li>
20
+ <a href="#h5_1">Sixth Header</a>
21
+ <ol>
22
+ <li>
23
+ <a href="#h5_1_1">Seventh Header</a>
24
+ <ol>
25
+ <li>
26
+ <a href="#h5_1_1_1">Eighth Header</a>
27
+ <ol>
28
+ <li>
29
+ <a href="#h5_1_1_1_1">Ninth Header</a>
30
+ <ol>
31
+ <li>
32
+ <a href="#h5_1_1_1_1_1">Tenth Header</a>
33
+ </li>
34
+ </ol>
35
+ </li>
36
+ </ol>
37
+ </li>
38
+ </ol>
39
+ </li>
40
+ </ol>
41
+ </li>
42
+ <li>
43
+ <a href="#h5_2">Eleventh Header</a>
44
+ <ol>
45
+ <li>
46
+ <a href="#h5_2_1">Twelfth Header</a>
47
+ </li>
48
+ <li>
49
+ <a href="#h5_2_2">Thirteenth Header</a>
50
+ </li>
51
+ </ol>
52
+ </li>
53
+ </ol>
54
+ </li>
55
+ <li>
56
+ <a href="#h6">Fourteenth Header</a>
57
+ <ol>
58
+ <li>
59
+ <a href="#h6_1">Fifteenth Header</a>
60
+ </li>
61
+ </ol></li></ol>
62
+
63
+ <h1 id="h3"><span class="heading-num">3</span>First Header</h1>
64
+ <h2 id="h3_1"><span class="heading-num">3.1</span>Second Header</h2>
65
+ <h2 id="h3_2"><span class="heading-num">3.2</span>Third Header</h2>
66
+
67
+ <h1 id="h4"><span class="heading-num">4</span>Fourth Header</h1>
68
+
69
+ <h1 id="h5"><span class="heading-num">5</span>Fifth Header</h1>
70
+ <h2 id="h5_1"><span class="heading-num">5.1</span>Sixth Header</h2>
71
+ <h3 id="h5_1_1"><span class="heading-num">5.1.1</span>Seventh Header</h3>
72
+ <h4 id="h5_1_1_1"><span class="heading-num">5.1.1.1</span>Eighth Header</h4>
73
+ <h5 id="h5_1_1_1_1"><span class="heading-num">5.1.1.1.1</span>Ninth Header</h5>
74
+ <h6 id="h5_1_1_1_1_1"><span class="heading-num">5.1.1.1.1.1</span>Tenth Header</h6>
75
+
76
+ <h2 id="h5_2"><span class="heading-num">5.2</span>Eleventh Header</h2>
77
+ <h3 id="h5_2_1"><span class="heading-num">5.2.1</span>Twelfth Header</h3>
78
+ <h3 id="h5_2_2"><span class="heading-num">5.2.2</span>Thirteenth Header</h3>
79
+
80
+ <h1 id="h6"><span class="heading-num">6</span>Fourteenth Header</h1>
81
+ <h2 id="h6_1"><span class="heading-num">6.1</span>Fifteenth Header</h2>
@@ -0,0 +1,21 @@
1
+
2
+
3
+ <h1 id="h1"><span class="heading-num">1</span>First Header</h1>
4
+ <h2 id="h1_1"><span class="heading-num">1.1</span>Second Header</h2>
5
+ <h2 id="h1_2"><span class="heading-num">1.2</span>Third Header</h2>
6
+
7
+ <h1 id="h2"><span class="heading-num">2</span>Fourth Header</h1>
8
+
9
+ <h1 id="h3"><span class="heading-num">3</span>Fifth Header</h1>
10
+ <h2 id="h3_1"><span class="heading-num">3.1</span>Sixth Header</h2>
11
+ <h3 id="h3_1_1"><span class="heading-num">3.1.1</span>Seventh Header</h3>
12
+ <h4 id="h3_1_1_1"><span class="heading-num">3.1.1.1</span>Eighth Header</h4>
13
+ <h5 id="h3_1_1_1_1"><span class="heading-num">3.1.1.1.1</span>Ninth Header</h5>
14
+ <h6 id="h3_1_1_1_1_1"><span class="heading-num">3.1.1.1.1.1</span>Tenth Header</h6>
15
+
16
+ <h2 id="h3_2"><span class="heading-num">3.2</span>Eleventh Header</h2>
17
+ <h3 id="h3_2_1"><span class="heading-num">3.2.1</span>Twelfth Header</h3>
18
+ <h3 id="h3_2_2"><span class="heading-num">3.2.2</span>Thirteenth Header</h3>
19
+
20
+ <h1 id="h4"><span class="heading-num">4</span>Fourteenth Header</h1>
21
+ <h2 id="h4_1"><span class="heading-num">4.1</span>Fifteenth Header</h2>
@@ -0,0 +1,66 @@
1
+ <ol>
2
+ <li>
3
+ <a href="#h1">First Header</a>
4
+ <ol>
5
+ <li>
6
+ <a href="#h1_1">Second Header</a>
7
+ </li>
8
+ <li>
9
+ <a href="#h1_2">Third Header</a>
10
+ </li>
11
+ </ol>
12
+ </li>
13
+ <li>
14
+ <a href="#h2">Fourth Header</a>
15
+ </li>
16
+ <li>
17
+ <a href="#h3">Fifth Header</a>
18
+ <ol>
19
+ <li>
20
+ <a href="#h3_1">Sixth Header</a>
21
+ <ol>
22
+ <li>
23
+ <a href="#h3_1_1">Seventh Header</a>
24
+ </li>
25
+ </ol>
26
+ </li>
27
+ <li>
28
+ <a href="#h3_2">Eleventh Header</a>
29
+ <ol>
30
+ <li>
31
+ <a href="#h3_2_1">Twelfth Header</a>
32
+ </li>
33
+ <li>
34
+ <a href="#h3_2_2">Thirteenth Header</a>
35
+ </li>
36
+ </ol>
37
+ </li>
38
+ </ol>
39
+ </li>
40
+ <li>
41
+ <a href="#h4">Fourteenth Header</a>
42
+ <ol>
43
+ <li>
44
+ <a href="#h4_1">Fifteenth Header</a>
45
+ </li>
46
+ </ol></li></ol>
47
+
48
+ <h1 id="h1"><span class="heading-num">1</span>First Header</h1>
49
+ <h2 id="h1_1"><span class="heading-num">1.1</span>Second Header</h2>
50
+ <h2 id="h1_2"><span class="heading-num">1.2</span>Third Header</h2>
51
+
52
+ <h1 id="h2"><span class="heading-num">2</span>Fourth Header</h1>
53
+
54
+ <h1 id="h3"><span class="heading-num">3</span>Fifth Header</h1>
55
+ <h2 id="h3_1"><span class="heading-num">3.1</span>Sixth Header</h2>
56
+ <h3 id="h3_1_1"><span class="heading-num">3.1.1</span>Seventh Header</h3>
57
+ <h4>Eighth Header</h4>
58
+ <h5>Ninth Header</h5>
59
+ <h6>Tenth Header</h6>
60
+
61
+ <h2 id="h3_2"><span class="heading-num">3.2</span>Eleventh Header</h2>
62
+ <h3 id="h3_2_1"><span class="heading-num">3.2.1</span>Twelfth Header</h3>
63
+ <h3 id="h3_2_2"><span class="heading-num">3.2.2</span>Thirteenth Header</h3>
64
+
65
+ <h1 id="h4"><span class="heading-num">4</span>Fourteenth Header</h1>
66
+ <h2 id="h4_1"><span class="heading-num">4.1</span>Fifteenth Header</h2>
@@ -0,0 +1,55 @@
1
+ <ol>
2
+ <li>
3
+ <a href="#h1">Second Header</a>
4
+ </li>
5
+ <li>
6
+ <a href="#h2">Third Header</a>
7
+ </li>
8
+ <li>
9
+ <a href="#h3">Sixth Header</a>
10
+ <ol>
11
+ <li>
12
+ <a href="#h3_1">Seventh Header</a>
13
+ <ol>
14
+ <li>
15
+ <a href="#h3_1_1">Eighth Header</a>
16
+ </li>
17
+ </ol>
18
+ </li>
19
+ </ol>
20
+ </li>
21
+ <li>
22
+ <a href="#h4">Eleventh Header</a>
23
+ <ol>
24
+ <li>
25
+ <a href="#h4_1">Twelfth Header</a>
26
+ </li>
27
+ <li>
28
+ <a href="#h4_2">Thirteenth Header</a>
29
+ </li>
30
+ </ol>
31
+ </li>
32
+ <li>
33
+ <a href="#h5">Fifteenth Header</a>
34
+ </li>
35
+ </ol>
36
+
37
+ <h1>First Header</h1>
38
+ <h2 id="h1"><span class="heading-num">1</span>Second Header</h2>
39
+ <h2 id="h2"><span class="heading-num">2</span>Third Header</h2>
40
+
41
+ <h1>Fourth Header</h1>
42
+
43
+ <h1>Fifth Header</h1>
44
+ <h2 id="h3"><span class="heading-num">3</span>Sixth Header</h2>
45
+ <h3 id="h3_1"><span class="heading-num">3.1</span>Seventh Header</h3>
46
+ <h4 id="h3_1_1"><span class="heading-num">3.1.1</span>Eighth Header</h4>
47
+ <h5>Ninth Header</h5>
48
+ <h6>Tenth Header</h6>
49
+
50
+ <h2 id="h4"><span class="heading-num">4</span>Eleventh Header</h2>
51
+ <h3 id="h4_1"><span class="heading-num">4.1</span>Twelfth Header</h3>
52
+ <h3 id="h4_2"><span class="heading-num">4.2</span>Thirteenth Header</h3>
53
+
54
+ <h1>Fourteenth Header</h1>
55
+ <h2 id="h5"><span class="heading-num">5</span>Fifteenth Header</h2>