emerald 0.0.1.alpha4 → 0.0.1
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.
- checksums.yaml +7 -0
- data/README.rdoc +1 -1
- data/VERSION +1 -1
- data/data/javascripts/emerald.js +9 -4
- data/data/javascripts/functions.js +1 -13
- data/data/javascripts/jquery.js +5 -2
- data/data/stylesheets/rdoc.css +41 -37
- data/data/templates/classmodule.html.erb +4 -4
- data/data/templates/layout.html.erb +2 -12
- data/data/templates/toplevel.html.erb +1 -1
- data/lib/rdoc/generator/emerald.rb +7 -6
- metadata +34 -53
- data/pkg/emerald-0.0.1.alpha4/CHANGELOG.rdoc +0 -7
- data/pkg/emerald-0.0.1.alpha4/COPYING.rdoc +0 -664
- data/pkg/emerald-0.0.1.alpha4/LEGAL.rdoc +0 -140
- data/pkg/emerald-0.0.1.alpha4/README.rdoc +0 -119
- data/pkg/emerald-0.0.1.alpha4/lib/rdoc/discover.rb +0 -4
- data/pkg/emerald-0.0.1.alpha4/lib/rdoc/generator/emerald.rb +0 -304
- data/pkg/emerald-0.0.1.alpha4/lib/rdoc/generator/emerald/options.rb +0 -37
@@ -1,37 +0,0 @@
|
|
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
|