emerald 0.0.1.alpha3 → 0.0.1.alpha4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/data/javascripts/{toc.js → functions.js} +12 -0
- data/data/stylesheets/rdoc.css +36 -9
- data/data/templates/layout.html.erb +57 -41
- data/data/templates/toplevel.html.erb +2 -1
- data/lib/rdoc/generator/emerald.rb +45 -1
- data/pkg/emerald-0.0.1.alpha4/CHANGELOG.rdoc +7 -0
- data/pkg/emerald-0.0.1.alpha4/COPYING.rdoc +664 -0
- data/pkg/emerald-0.0.1.alpha4/LEGAL.rdoc +140 -0
- data/pkg/emerald-0.0.1.alpha4/README.rdoc +119 -0
- data/pkg/emerald-0.0.1.alpha4/lib/rdoc/discover.rb +4 -0
- data/pkg/emerald-0.0.1.alpha4/lib/rdoc/generator/emerald.rb +304 -0
- data/pkg/emerald-0.0.1.alpha4/lib/rdoc/generator/emerald/options.rb +37 -0
- metadata +24 -13
@@ -0,0 +1,37 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
|
3
|
+
# This mixin module contains the extra options Emerald
|
4
|
+
# adds to the default RDoc ones. It is used in the
|
5
|
+
# RDoc::Generator::Emerald::setup_options method.
|
6
|
+
module RDoc::Generator::Emerald::Options
|
7
|
+
|
8
|
+
# Tells RDoc’s OptionParser about the new options when
|
9
|
+
# the RDoc::Options object is extended with this mixin.
|
10
|
+
def self.extended(options)
|
11
|
+
op = options.option_parser
|
12
|
+
|
13
|
+
op.separator ""
|
14
|
+
op.separator "Emerald generator options:"
|
15
|
+
op.separator ""
|
16
|
+
|
17
|
+
op.on("--[no-]generate-toc",
|
18
|
+
"Enables or disables generation of the",
|
19
|
+
"table of contents (ToC) for toplevel files."){|val| options.generate_toc = val}
|
20
|
+
end
|
21
|
+
|
22
|
+
# Whether or not to generate a Table of Contents (ToC) for
|
23
|
+
# toplevel files. Defaults to true.
|
24
|
+
#
|
25
|
+
# Note that the mechanism is implemented in JavaScript,
|
26
|
+
# which has therefore to be enabled in your browser.
|
27
|
+
def generate_toc
|
28
|
+
@generate_toc = true unless defined?(@generate_toc)
|
29
|
+
@generate_toc
|
30
|
+
end
|
31
|
+
|
32
|
+
# Setter for #generate_toc.
|
33
|
+
def generate_toc=(val)
|
34
|
+
@generate_toc = val
|
35
|
+
end
|
36
|
+
|
37
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: emerald
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.
|
4
|
+
version: 0.0.1.alpha4
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-10-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rdoc
|
@@ -54,27 +54,38 @@ email: quintus@quintilianus.eu
|
|
54
54
|
executables: []
|
55
55
|
extensions: []
|
56
56
|
extra_rdoc_files:
|
57
|
-
-
|
58
|
-
-
|
59
|
-
-
|
57
|
+
- pkg/emerald-0.0.1.alpha4/COPYING.rdoc
|
58
|
+
- pkg/emerald-0.0.1.alpha4/LEGAL.rdoc
|
59
|
+
- pkg/emerald-0.0.1.alpha4/CHANGELOG.rdoc
|
60
|
+
- pkg/emerald-0.0.1.alpha4/README.rdoc
|
60
61
|
- COPYING.rdoc
|
62
|
+
- LEGAL.rdoc
|
63
|
+
- CHANGELOG.rdoc
|
64
|
+
- README.rdoc
|
61
65
|
files:
|
62
|
-
- lib/rdoc/
|
63
|
-
- lib/rdoc/generator/emerald/options.rb
|
66
|
+
- pkg/emerald-0.0.1.alpha4/lib/rdoc/discover.rb
|
67
|
+
- pkg/emerald-0.0.1.alpha4/lib/rdoc/generator/emerald/options.rb
|
68
|
+
- pkg/emerald-0.0.1.alpha4/lib/rdoc/generator/emerald.rb
|
64
69
|
- lib/rdoc/discover.rb
|
65
|
-
-
|
66
|
-
-
|
67
|
-
-
|
70
|
+
- lib/rdoc/generator/emerald/options.rb
|
71
|
+
- lib/rdoc/generator/emerald.rb
|
72
|
+
- pkg/emerald-0.0.1.alpha4/COPYING.rdoc
|
73
|
+
- pkg/emerald-0.0.1.alpha4/LEGAL.rdoc
|
74
|
+
- pkg/emerald-0.0.1.alpha4/CHANGELOG.rdoc
|
75
|
+
- pkg/emerald-0.0.1.alpha4/README.rdoc
|
68
76
|
- COPYING.rdoc
|
77
|
+
- LEGAL.rdoc
|
78
|
+
- CHANGELOG.rdoc
|
79
|
+
- README.rdoc
|
69
80
|
- data/stylesheets/rdoc.css
|
81
|
+
- data/javascripts/functions.js
|
70
82
|
- data/javascripts/jquery.js
|
71
|
-
- data/javascripts/toc.js
|
72
83
|
- data/javascripts/emerald.js
|
73
84
|
- data/images/zoom.png
|
74
85
|
- data/images/tag_blue.png
|
75
|
-
- data/templates/toplevel.html.erb
|
76
|
-
- data/templates/classmodule.html.erb
|
77
86
|
- data/templates/layout.html.erb
|
87
|
+
- data/templates/classmodule.html.erb
|
88
|
+
- data/templates/toplevel.html.erb
|
78
89
|
- VERSION
|
79
90
|
homepage: https://github.com/Quintus/emerald
|
80
91
|
licenses: []
|