puppet 0.24.6 → 0.24.7
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of puppet might be problematic. Click here for more details.
- data/CHANGELOG +115 -0
- data/Rakefile +43 -14
- data/bin/puppetca +6 -5
- data/bin/puppetdoc +109 -15
- data/bin/ralsh +3 -1
- data/conf/redhat/puppet.spec +74 -48
- data/examples/mcx_dock_absent.pp +4 -0
- data/examples/mcx_dock_default.pp +118 -0
- data/examples/mcx_dock_full.pp +125 -0
- data/examples/mcx_dock_invalid.pp +9 -0
- data/examples/mcx_nogroup.pp +118 -0
- data/examples/mcx_notexists_absent.pp +4 -0
- data/ext/emacs/puppet-mode.el +1 -1
- data/lib/puppet.rb +1 -1
- data/lib/puppet/external/nagios/base.rb +114 -71
- data/lib/puppet/feature/base.rb +6 -0
- data/lib/puppet/indirector/yaml.rb +12 -3
- data/lib/puppet/module.rb +1 -1
- data/lib/puppet/network/client/master.rb +1 -1
- data/lib/puppet/network/xmlrpc/client.rb +3 -1
- data/lib/puppet/parameter.rb +1 -1
- data/lib/puppet/parser/ast.rb +15 -0
- data/lib/puppet/parser/ast/astarray.rb +1 -2
- data/lib/puppet/parser/ast/casestatement.rb +2 -0
- data/lib/puppet/parser/ast/collection.rb +2 -0
- data/lib/puppet/parser/ast/comparison_operator.rb +4 -0
- data/lib/puppet/parser/ast/definition.rb +2 -0
- data/lib/puppet/parser/ast/else.rb +3 -0
- data/lib/puppet/parser/ast/function.rb +19 -12
- data/lib/puppet/parser/ast/hostclass.rb +9 -1
- data/lib/puppet/parser/ast/ifstatement.rb +3 -0
- data/lib/puppet/parser/ast/node.rb +3 -0
- data/lib/puppet/parser/ast/resource.rb +3 -0
- data/lib/puppet/parser/ast/resource_defaults.rb +2 -0
- data/lib/puppet/parser/ast/resource_override.rb +3 -0
- data/lib/puppet/parser/ast/vardef.rb +3 -0
- data/lib/puppet/parser/functions.rb +14 -0
- data/lib/puppet/parser/functions/inline_template.rb +21 -0
- data/lib/puppet/parser/functions/template.rb +3 -2
- data/lib/puppet/parser/lexer.rb +56 -7
- data/lib/puppet/parser/parser.rb +114 -98
- data/lib/puppet/parser/parser_support.rb +24 -4
- data/lib/puppet/parser/resource/reference.rb +4 -3
- data/lib/puppet/parser/templatewrapper.rb +30 -22
- data/lib/puppet/property.rb +1 -1
- data/lib/puppet/property/list.rb +7 -2
- data/lib/puppet/property/ordered_list.rb +22 -0
- data/lib/puppet/provider/augeas/augeas.rb +189 -0
- data/lib/puppet/provider/computer/computer.rb +22 -0
- data/lib/puppet/provider/confine.rb +4 -1
- data/lib/puppet/provider/confine/variable.rb +13 -2
- data/lib/puppet/provider/confine_collection.rb +4 -1
- data/lib/puppet/provider/confiner.rb +1 -1
- data/lib/puppet/provider/group/directoryservice.rb +6 -3
- data/lib/puppet/provider/group/groupadd.rb +5 -2
- data/lib/puppet/provider/group/ldap.rb +11 -9
- data/lib/puppet/provider/group/netinfo.rb +8 -4
- data/lib/puppet/provider/group/pw.rb +5 -1
- data/lib/puppet/provider/host/netinfo.rb +5 -2
- data/lib/puppet/provider/macauthorization/macauthorization.rb +315 -0
- data/lib/puppet/provider/mcx/mcxcontent.rb +201 -0
- data/lib/puppet/provider/nameservice/directoryservice.rb +210 -107
- data/lib/puppet/provider/nameservice/netinfo.rb +7 -2
- data/lib/puppet/provider/package/appdmg.rb +0 -3
- data/lib/puppet/provider/package/apt.rb +6 -0
- data/lib/puppet/provider/package/rpm.rb +2 -0
- data/lib/puppet/provider/package/yum.rb +5 -1
- data/lib/puppet/provider/package/yumhelper.py +9 -0
- data/lib/puppet/provider/service/base.rb +9 -6
- data/lib/puppet/provider/service/daemontools.rb +25 -15
- data/lib/puppet/provider/service/debian.rb +6 -2
- data/lib/puppet/provider/service/freebsd.rb +5 -2
- data/lib/puppet/provider/service/gentoo.rb +6 -3
- data/lib/puppet/provider/service/init.rb +31 -21
- data/lib/puppet/provider/service/launchd.rb +195 -0
- data/lib/puppet/provider/service/redhat.rb +5 -2
- data/lib/puppet/provider/service/runit.rb +30 -20
- data/lib/puppet/provider/service/smf.rb +7 -4
- data/lib/puppet/provider/ssh_authorized_key/parsed.rb +21 -1
- data/lib/puppet/provider/user/directoryservice.rb +1 -0
- data/lib/puppet/provider/user/netinfo.rb +9 -3
- data/lib/puppet/provider/user/user_role_add.rb +43 -6
- data/lib/puppet/provider/zfs/solaris.rb +45 -0
- data/lib/puppet/provider/zone/solaris.rb +8 -4
- data/lib/puppet/provider/zpool/solaris.rb +116 -0
- data/lib/puppet/rails/database/003_add_environment_to_host.rb +9 -0
- data/lib/puppet/rails/database/schema.rb +1 -0
- data/lib/puppet/rails/host.rb +4 -0
- data/lib/puppet/reference/configuration.rb +1 -1
- data/lib/puppet/reports/tagmail.rb +15 -6
- data/lib/puppet/transaction/change.rb +3 -5
- data/lib/puppet/transportable.rb +1 -0
- data/lib/puppet/type/augeas.rb +155 -0
- data/lib/puppet/type/computer.rb +62 -0
- data/lib/puppet/type/exec.rb +2 -1
- data/lib/puppet/type/file.rb +1 -1
- data/lib/puppet/type/file/ensure.rb +8 -5
- data/lib/puppet/type/file/mode.rb +0 -14
- data/lib/puppet/type/file/owner.rb +32 -64
- data/lib/puppet/type/file/selcontext.rb +3 -8
- data/lib/puppet/type/group.rb +27 -45
- data/lib/puppet/type/k5login.rb +1 -1
- data/lib/puppet/type/macauthorization.rb +141 -0
- data/lib/puppet/type/mcx.rb +115 -0
- data/lib/puppet/type/mount.rb +1 -1
- data/lib/puppet/type/nagios_hostdependency.rb +3 -0
- data/lib/puppet/type/ssh_authorized_key.rb +16 -0
- data/lib/puppet/type/tidy.rb +43 -14
- data/lib/puppet/type/user.rb +25 -1
- data/lib/puppet/type/zfs.rb +51 -0
- data/lib/puppet/type/zone.rb +8 -0
- data/lib/puppet/type/zpool.rb +93 -0
- data/lib/puppet/util.rb +17 -38
- data/lib/puppet/util/file_locking.rb +44 -0
- data/lib/puppet/util/filetype.rb +3 -3
- data/lib/puppet/util/log.rb +1 -16
- data/lib/puppet/util/metric.rb +0 -5
- data/lib/puppet/util/rdoc.rb +85 -0
- data/lib/puppet/util/rdoc/code_objects.rb +219 -0
- data/lib/puppet/util/rdoc/generators/puppet_generator.rb +829 -0
- data/lib/puppet/util/rdoc/generators/template/puppet/puppet.rb +1051 -0
- data/lib/puppet/util/rdoc/parser.rb +437 -0
- data/lib/puppet/util/selinux.rb +135 -63
- data/lib/puppet/util/settings.rb +136 -126
- data/lib/puppet/util/storage.rb +4 -2
- data/spec/Rakefile +91 -0
- data/spec/integration/checksum.rb +47 -0
- data/spec/integration/defaults.rb +47 -0
- data/spec/integration/file_serving/configuration.rb +43 -0
- data/spec/integration/file_serving/content.rb +18 -0
- data/spec/integration/file_serving/metadata.rb +18 -0
- data/spec/integration/indirector/direct_file_server.rb +80 -0
- data/spec/integration/indirector/file_content/file_server.rb +18 -0
- data/spec/integration/indirector/file_metadata/file_server.rb +18 -0
- data/spec/integration/indirector/module_files.rb +57 -0
- data/spec/integration/indirector/node/ldap.rb +15 -0
- data/spec/integration/indirector/rest.rb +464 -0
- data/spec/integration/network/server/mongrel.rb +48 -0
- data/spec/integration/network/server/webrick.rb +48 -0
- data/spec/integration/node.rb +93 -0
- data/spec/integration/node/catalog.rb +54 -0
- data/spec/integration/node/facts.rb +45 -0
- data/spec/integration/provider/package.rb +26 -0
- data/spec/integration/provider/service/init.rb +32 -0
- data/spec/integration/reference/providers.rb +17 -0
- data/spec/integration/reports.rb +14 -0
- data/spec/integration/transaction/report.rb +26 -0
- data/spec/integration/type/package.rb +22 -0
- data/spec/integration/util/file_locking.rb +36 -0
- data/spec/monkey_patches/add_confine_and_runnable_to_rspec_dsl.rb +46 -0
- data/spec/monkey_patches/alias_should_to_must.rb +5 -0
- data/spec/shared_behaviours/file_server_terminus.rb +42 -0
- data/spec/shared_behaviours/file_serving.rb +64 -0
- data/spec/shared_behaviours/memory_terminus.rb +32 -0
- data/spec/spec.opts +5 -0
- data/spec/spec_helper.rb +36 -0
- data/spec/unit/executables/client/certhandler.rb +122 -0
- data/spec/unit/file_serving/configuration.rb +224 -0
- data/spec/unit/file_serving/configuration/parser.rb +135 -0
- data/spec/unit/file_serving/content.rb +71 -0
- data/spec/unit/file_serving/file_base.rb +124 -0
- data/spec/unit/file_serving/fileset.rb +239 -0
- data/spec/unit/file_serving/indirection_hooks.rb +124 -0
- data/spec/unit/file_serving/metadata.rb +187 -0
- data/spec/unit/file_serving/mount.rb +143 -0
- data/spec/unit/file_serving/terminus_helper.rb +76 -0
- data/spec/unit/indirector.rb +152 -0
- data/spec/unit/indirector/catalog/compiler.rb +156 -0
- data/spec/unit/indirector/catalog/yaml.rb +25 -0
- data/spec/unit/indirector/checksum/file.rb +139 -0
- data/spec/unit/indirector/code.rb +33 -0
- data/spec/unit/indirector/direct_file_server.rb +89 -0
- data/spec/unit/indirector/envelope.rb +47 -0
- data/spec/unit/indirector/exec.rb +51 -0
- data/spec/unit/indirector/facts/facter.rb +76 -0
- data/spec/unit/indirector/facts/yaml.rb +26 -0
- data/spec/unit/indirector/file.rb +154 -0
- data/spec/unit/indirector/file_content/file.rb +18 -0
- data/spec/unit/indirector/file_content/file_server.rb +18 -0
- data/spec/unit/indirector/file_content/modules.rb +18 -0
- data/spec/unit/indirector/file_content/rest.rb +11 -0
- data/spec/unit/indirector/file_metadata/file.rb +52 -0
- data/spec/unit/indirector/file_metadata/file_server.rb +18 -0
- data/spec/unit/indirector/file_metadata/modules.rb +42 -0
- data/spec/unit/indirector/file_metadata/rest.rb +9 -0
- data/spec/unit/indirector/file_server.rb +184 -0
- data/spec/unit/indirector/indirection.rb +731 -0
- data/spec/unit/indirector/ldap.rb +143 -0
- data/spec/unit/indirector/memory.rb +29 -0
- data/spec/unit/indirector/module_files.rb +259 -0
- data/spec/unit/indirector/node/exec.rb +69 -0
- data/spec/unit/indirector/node/ldap.rb +424 -0
- data/spec/unit/indirector/node/memory.rb +19 -0
- data/spec/unit/indirector/node/plain.rb +19 -0
- data/spec/unit/indirector/node/rest.rb +13 -0
- data/spec/unit/indirector/node/yaml.rb +25 -0
- data/spec/unit/indirector/plain.rb +29 -0
- data/spec/unit/indirector/report/processor.rb +81 -0
- data/spec/unit/indirector/request.rb +87 -0
- data/spec/unit/indirector/rest.rb +372 -0
- data/spec/unit/indirector/ssl_rsa/file.rb +116 -0
- data/spec/unit/indirector/terminus.rb +245 -0
- data/spec/unit/indirector/yaml.rb +145 -0
- data/spec/unit/module.rb +247 -0
- data/spec/unit/network/client.rb +45 -0
- data/spec/unit/network/client/master.rb +442 -0
- data/spec/unit/network/handler/fileserver.rb +179 -0
- data/spec/unit/network/http.rb +35 -0
- data/spec/unit/network/http/mongrel.rb +117 -0
- data/spec/unit/network/http/mongrel/rest.rb +377 -0
- data/spec/unit/network/http/mongrel/xmlrpc.rb +0 -0
- data/spec/unit/network/http/webrick.rb +127 -0
- data/spec/unit/network/http/webrick/rest.rb +323 -0
- data/spec/unit/network/http/webrick/xmlrpc.rb +0 -0
- data/spec/unit/network/http_pool.rb +238 -0
- data/spec/unit/network/server.rb +316 -0
- data/spec/unit/network/xmlrpc/client.rb +13 -0
- data/spec/unit/node.rb +167 -0
- data/spec/unit/node/catalog.rb +864 -0
- data/spec/unit/node/environment.rb +37 -0
- data/spec/unit/node/facts.rb +44 -0
- data/spec/unit/other/checksum.rb +92 -0
- data/spec/unit/other/pgraph.rb +210 -0
- data/spec/unit/other/transaction.rb +33 -0
- data/spec/unit/other/transbucket.rb +172 -0
- data/spec/unit/other/transobject.rb +92 -0
- data/spec/unit/parameter.rb +24 -0
- data/spec/unit/parser/ast.rb +37 -0
- data/spec/unit/parser/ast/arithmetic_operator.rb +73 -0
- data/spec/unit/parser/ast/astarray.rb +66 -0
- data/spec/unit/parser/ast/boolean_operator.rb +53 -0
- data/spec/unit/parser/ast/collexpr.rb +92 -0
- data/spec/unit/parser/ast/comparison_operator.rb +92 -0
- data/spec/unit/parser/ast/definition.rb +195 -0
- data/spec/unit/parser/ast/function.rb +77 -0
- data/spec/unit/parser/ast/hostclass.rb +148 -0
- data/spec/unit/parser/ast/minus.rb +36 -0
- data/spec/unit/parser/ast/node.rb +125 -0
- data/spec/unit/parser/ast/nop.rb +20 -0
- data/spec/unit/parser/ast/not.rb +30 -0
- data/spec/unit/parser/ast/resource_override.rb +51 -0
- data/spec/unit/parser/ast/resource_reference.rb +63 -0
- data/spec/unit/parser/ast/vardef.rb +47 -0
- data/spec/unit/parser/collector.rb +426 -0
- data/spec/unit/parser/compiler.rb +561 -0
- data/spec/unit/parser/functions.rb +83 -0
- data/spec/unit/parser/functions/inline_template.rb +59 -0
- data/spec/unit/parser/functions/template.rb +62 -0
- data/spec/unit/parser/interpreter.rb +138 -0
- data/spec/unit/parser/lexer.rb +646 -0
- data/spec/unit/parser/parser.rb +228 -0
- data/spec/unit/parser/resource.rb +336 -0
- data/spec/unit/parser/resource/reference.rb +95 -0
- data/spec/unit/parser/scope.rb +87 -0
- data/spec/unit/parser/templatewrapper.rb +129 -0
- data/spec/unit/property.rb +35 -0
- data/spec/unit/property/keyvalue.rb +168 -0
- data/spec/unit/property/list.rb +156 -0
- data/spec/unit/property/ordered_list.rb +64 -0
- data/spec/unit/provider/augeas/augeas.rb +238 -0
- data/spec/unit/provider/confine.rb +78 -0
- data/spec/unit/provider/confine/exists.rb +81 -0
- data/spec/unit/provider/confine/false.rb +53 -0
- data/spec/unit/provider/confine/feature.rb +60 -0
- data/spec/unit/provider/confine/true.rb +53 -0
- data/spec/unit/provider/confine/variable.rb +107 -0
- data/spec/unit/provider/confine_collection.rb +134 -0
- data/spec/unit/provider/confiner.rb +63 -0
- data/spec/unit/provider/group/groupadd.rb +31 -0
- data/spec/unit/provider/group/ldap.rb +105 -0
- data/spec/unit/provider/ldap.rb +248 -0
- data/spec/unit/provider/macauthorization.rb +147 -0
- data/spec/unit/provider/mcx/mcxcontent.rb +175 -0
- data/spec/unit/provider/mount.rb +130 -0
- data/spec/unit/provider/mount/parsed.rb +185 -0
- data/spec/unit/provider/package/apt.rb +138 -0
- data/spec/unit/provider/package/dpkg.rb +163 -0
- data/spec/unit/provider/package/gem.rb +87 -0
- data/spec/unit/provider/package/hpux.rb +52 -0
- data/spec/unit/provider/selboolean.rb +37 -0
- data/spec/unit/provider/selmodule-example.pp +0 -0
- data/spec/unit/provider/selmodule.rb +66 -0
- data/spec/unit/provider/service/daemontools.rb +124 -0
- data/spec/unit/provider/service/launchd.rb +134 -0
- data/spec/unit/provider/service/runit.rb +117 -0
- data/spec/unit/provider/ssh_authorized_key/parsed.rb +102 -0
- data/spec/unit/provider/user/hpux.rb +25 -0
- data/spec/unit/provider/user/ldap.rb +279 -0
- data/spec/unit/provider/user/user_role_add.rb +249 -0
- data/spec/unit/provider/user/useradd.rb +115 -0
- data/spec/unit/provider/zfs/solaris.rb +87 -0
- data/spec/unit/provider/zone/solaris.rb +42 -0
- data/spec/unit/provider/zpool/solaris.rb +179 -0
- data/spec/unit/rails.rb +125 -0
- data/spec/unit/relationship.rb +149 -0
- data/spec/unit/reports.rb +61 -0
- data/spec/unit/resource_reference.rb +73 -0
- data/spec/unit/simple_graph.rb +280 -0
- data/spec/unit/transaction/change.rb +187 -0
- data/spec/unit/transaction/event.rb +25 -0
- data/spec/unit/transaction/report.rb +40 -0
- data/spec/unit/type.rb +64 -0
- data/spec/unit/type/augeas.rb +113 -0
- data/spec/unit/type/computer.rb +82 -0
- data/spec/unit/type/exec.rb +91 -0
- data/spec/unit/type/file.rb +155 -0
- data/spec/unit/type/file/ensure.rb +21 -0
- data/spec/unit/type/file/group.rb +118 -0
- data/spec/unit/type/file/owner.rb +132 -0
- data/spec/unit/type/file/selinux.rb +82 -0
- data/spec/unit/type/group.rb +40 -0
- data/spec/unit/type/macauthorization.rb +78 -0
- data/spec/unit/type/mcx.rb +108 -0
- data/spec/unit/type/mount.rb +219 -0
- data/spec/unit/type/nagios.rb +63 -0
- data/spec/unit/type/noop_metaparam.rb +38 -0
- data/spec/unit/type/package.rb +246 -0
- data/spec/unit/type/resources.rb +27 -0
- data/spec/unit/type/schedule.rb +339 -0
- data/spec/unit/type/selboolean.rb +47 -0
- data/spec/unit/type/selmodule.rb +18 -0
- data/spec/unit/type/service.rb +254 -0
- data/spec/unit/type/ssh_authorized_key.rb +106 -0
- data/spec/unit/type/tidy.rb +68 -0
- data/spec/unit/type/user.rb +260 -0
- data/spec/unit/type/zfs.rb +45 -0
- data/spec/unit/type/zone.rb +20 -0
- data/spec/unit/type/zpool.rb +110 -0
- data/spec/unit/util/checksums.rb +99 -0
- data/spec/unit/util/constant_inflector.rb +70 -0
- data/spec/unit/util/file_locking.rb +115 -0
- data/spec/unit/util/ldap/connection.rb +169 -0
- data/spec/unit/util/ldap/generator.rb +54 -0
- data/spec/unit/util/ldap/manager.rb +654 -0
- data/spec/unit/util/loadedfile.rb +65 -0
- data/spec/unit/util/log.rb +107 -0
- data/spec/unit/util/metric.rb +95 -0
- data/spec/unit/util/nagios_maker.rb +128 -0
- data/spec/unit/util/posix.rb +256 -0
- data/spec/unit/util/resource_template.rb +58 -0
- data/spec/unit/util/selinux.rb +219 -0
- data/spec/unit/util/settings.rb +847 -0
- data/spec/unit/util/storage.rb +248 -0
- data/spec/unit/util/tagging.rb +92 -0
- data/spec/unit/util/uri_helper.rb +41 -0
- data/spec/unit/util/user_attr.rb +47 -0
- data/spec/unit/util/warnings.rb +35 -0
- data/test/certmgr/support.rb +0 -6
- data/test/data/providers/ssh_authorized_key/parsed/authorized_keys +1 -0
- data/test/data/snippets/multilinecomments.pp +6 -0
- data/test/data/snippets/multipleclass.pp +9 -0
- data/test/language/functions.rb +11 -1
- data/test/language/snippets.rb +16 -0
- data/test/lib/puppettest/runnable_test.rb +1 -1
- data/test/network/handler/fileserver.rb +5 -0
- data/test/other/report.rb +0 -4
- data/test/ral/type/resources.rb +2 -19
- data/test/util/settings.rb +4 -4
- data/test/util/storage.rb +0 -24
- data/test/util/utiltest.rb +0 -33
- metadata +319 -26
- data/conf/debian/README.source +0 -2
- data/conf/debian/TODO.Debian +0 -1
- data/conf/debian/changelog +0 -257
- data/conf/debian/compat +0 -1
- data/conf/debian/control +0 -45
- data/conf/debian/copyright +0 -17
- data/conf/debian/docs +0 -1
- data/conf/debian/fileserver.conf +0 -12
- data/conf/debian/puppet.NEWS +0 -63
- data/conf/debian/puppet.conf +0 -8
- data/conf/debian/puppet.dirs +0 -7
- data/conf/debian/puppet.files +0 -6
- data/conf/debian/puppet.init +0 -64
- data/conf/debian/puppet.logrotate +0 -11
- data/conf/debian/puppet.postinst +0 -9
- data/conf/debian/puppet.postrm +0 -21
- data/conf/debian/puppet.preinst +0 -25
- data/conf/debian/puppetmaster.files +0 -4
- data/conf/debian/puppetmaster.init +0 -58
- data/conf/debian/rules +0 -115
- data/conf/debian/watch +0 -2
- data/lib/puppet/type/nagios_hostgroupescalation.rb +0 -3
@@ -0,0 +1,1051 @@
|
|
1
|
+
#
|
2
|
+
# = CSS2 RDoc HTML template
|
3
|
+
#
|
4
|
+
# This is a template for RDoc that uses XHTML 1.0 Transitional and dictates a
|
5
|
+
# bit more of the appearance of the output to cascading stylesheets than the
|
6
|
+
# default. It was designed for clean inline code display, and uses DHTMl to
|
7
|
+
# toggle the visbility of each method's source with each click on the '[source]'
|
8
|
+
# link.
|
9
|
+
#
|
10
|
+
# == Authors
|
11
|
+
#
|
12
|
+
# * Michael Granger <ged@FaerieMUD.org>
|
13
|
+
#
|
14
|
+
# Copyright (c) 2002, 2003 The FaerieMUD Consortium. Some rights reserved.
|
15
|
+
#
|
16
|
+
# This work is licensed under the Creative Commons Attribution License. To view
|
17
|
+
# a copy of this license, visit http://creativecommons.org/licenses/by/1.0/ or
|
18
|
+
# send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California
|
19
|
+
# 94305, USA.
|
20
|
+
#
|
21
|
+
|
22
|
+
module RDoc
|
23
|
+
module Page
|
24
|
+
|
25
|
+
FONTS = "Verdana,Arial,Helvetica,sans-serif"
|
26
|
+
|
27
|
+
STYLE = %{
|
28
|
+
body {
|
29
|
+
font-family: Verdana,Arial,Helvetica,sans-serif;
|
30
|
+
font-size: 90%;
|
31
|
+
margin: 0;
|
32
|
+
margin-left: 40px;
|
33
|
+
padding: 0;
|
34
|
+
background: white;
|
35
|
+
}
|
36
|
+
|
37
|
+
h1,h2,h3,h4 { margin: 0; color: #efefef; background: transparent; }
|
38
|
+
h1 { font-size: 150%; }
|
39
|
+
h2,h3,h4 { margin-top: 1em; }
|
40
|
+
|
41
|
+
a { background: #eef; color: #039; text-decoration: none; }
|
42
|
+
a:hover { background: #039; color: #eef; }
|
43
|
+
|
44
|
+
/* Override the base stylesheet's Anchor inside a table cell */
|
45
|
+
td > a {
|
46
|
+
background: transparent;
|
47
|
+
color: #039;
|
48
|
+
text-decoration: none;
|
49
|
+
}
|
50
|
+
|
51
|
+
/* and inside a section title */
|
52
|
+
.section-title > a {
|
53
|
+
background: transparent;
|
54
|
+
color: #eee;
|
55
|
+
text-decoration: none;
|
56
|
+
}
|
57
|
+
|
58
|
+
/* === Structural elements =================================== */
|
59
|
+
|
60
|
+
div#index {
|
61
|
+
margin: 0;
|
62
|
+
margin-left: -40px;
|
63
|
+
padding: 0;
|
64
|
+
font-size: 90%;
|
65
|
+
}
|
66
|
+
|
67
|
+
|
68
|
+
div#index a {
|
69
|
+
margin-left: 0.7em;
|
70
|
+
}
|
71
|
+
|
72
|
+
div#index .section-bar {
|
73
|
+
margin-left: 0px;
|
74
|
+
padding-left: 0.7em;
|
75
|
+
background: #ccc;
|
76
|
+
font-size: small;
|
77
|
+
}
|
78
|
+
|
79
|
+
|
80
|
+
div#classHeader, div#fileHeader {
|
81
|
+
width: auto;
|
82
|
+
color: white;
|
83
|
+
padding: 0.5em 1.5em 0.5em 1.5em;
|
84
|
+
margin: 0;
|
85
|
+
margin-left: -40px;
|
86
|
+
border-bottom: 3px solid #006;
|
87
|
+
}
|
88
|
+
|
89
|
+
div#classHeader a, div#fileHeader a {
|
90
|
+
background: inherit;
|
91
|
+
color: white;
|
92
|
+
}
|
93
|
+
|
94
|
+
div#classHeader td, div#fileHeader td {
|
95
|
+
background: inherit;
|
96
|
+
color: white;
|
97
|
+
}
|
98
|
+
|
99
|
+
|
100
|
+
div#fileHeader {
|
101
|
+
background: #057;
|
102
|
+
}
|
103
|
+
|
104
|
+
div#classHeader {
|
105
|
+
background: #048;
|
106
|
+
}
|
107
|
+
|
108
|
+
div#nodeHeader {
|
109
|
+
background: #7f7f7f;
|
110
|
+
}
|
111
|
+
|
112
|
+
.class-name-in-header {
|
113
|
+
font-size: 180%;
|
114
|
+
font-weight: bold;
|
115
|
+
}
|
116
|
+
|
117
|
+
|
118
|
+
div#bodyContent {
|
119
|
+
padding: 0 1.5em 0 1.5em;
|
120
|
+
}
|
121
|
+
|
122
|
+
div#description {
|
123
|
+
padding: 0.5em 1.5em;
|
124
|
+
background: #efefef;
|
125
|
+
border: 1px dotted #999;
|
126
|
+
}
|
127
|
+
|
128
|
+
div#description h1,h2,h3,h4,h5,h6 {
|
129
|
+
color: #125;;
|
130
|
+
background: transparent;
|
131
|
+
}
|
132
|
+
|
133
|
+
div#validator-badges {
|
134
|
+
text-align: center;
|
135
|
+
}
|
136
|
+
div#validator-badges img { border: 0; }
|
137
|
+
|
138
|
+
div#copyright {
|
139
|
+
color: #333;
|
140
|
+
background: #efefef;
|
141
|
+
font: 0.75em sans-serif;
|
142
|
+
margin-top: 5em;
|
143
|
+
margin-bottom: 0;
|
144
|
+
padding: 0.5em 2em;
|
145
|
+
}
|
146
|
+
|
147
|
+
|
148
|
+
/* === Classes =================================== */
|
149
|
+
|
150
|
+
table.header-table {
|
151
|
+
color: white;
|
152
|
+
font-size: small;
|
153
|
+
}
|
154
|
+
|
155
|
+
.type-note {
|
156
|
+
font-size: small;
|
157
|
+
color: #DEDEDE;
|
158
|
+
}
|
159
|
+
|
160
|
+
.xxsection-bar {
|
161
|
+
background: #eee;
|
162
|
+
color: #333;
|
163
|
+
padding: 3px;
|
164
|
+
}
|
165
|
+
|
166
|
+
.section-bar {
|
167
|
+
color: #333;
|
168
|
+
border-bottom: 1px solid #999;
|
169
|
+
margin-left: -20px;
|
170
|
+
}
|
171
|
+
|
172
|
+
|
173
|
+
.section-title {
|
174
|
+
background: #79a;
|
175
|
+
color: #eee;
|
176
|
+
padding: 3px;
|
177
|
+
margin-top: 2em;
|
178
|
+
margin-left: -30px;
|
179
|
+
border: 1px solid #999;
|
180
|
+
}
|
181
|
+
|
182
|
+
.top-aligned-row { vertical-align: top }
|
183
|
+
.bottom-aligned-row { vertical-align: bottom }
|
184
|
+
|
185
|
+
/* --- Context section classes ----------------------- */
|
186
|
+
|
187
|
+
.context-row { }
|
188
|
+
.context-item-name { font-family: monospace; font-weight: bold; color: black; }
|
189
|
+
.context-item-value { font-size: small; color: #448; }
|
190
|
+
.context-item-desc { color: #333; padding-left: 2em; }
|
191
|
+
|
192
|
+
/* --- Method classes -------------------------- */
|
193
|
+
.method-detail {
|
194
|
+
background: #efefef;
|
195
|
+
padding: 0;
|
196
|
+
margin-top: 0.5em;
|
197
|
+
margin-bottom: 1em;
|
198
|
+
border: 1px dotted #ccc;
|
199
|
+
}
|
200
|
+
.method-heading {
|
201
|
+
color: black;
|
202
|
+
background: #ccc;
|
203
|
+
border-bottom: 1px solid #666;
|
204
|
+
padding: 0.2em 0.5em 0 0.5em;
|
205
|
+
}
|
206
|
+
.method-signature { color: black; background: inherit; }
|
207
|
+
.method-name { font-weight: bold; }
|
208
|
+
.method-args { font-style: italic; }
|
209
|
+
.method-description { padding: 0 0.5em 0 0.5em; }
|
210
|
+
|
211
|
+
/* --- Source code sections -------------------- */
|
212
|
+
|
213
|
+
a.source-toggle { font-size: 90%; }
|
214
|
+
div.method-source-code {
|
215
|
+
background: #262626;
|
216
|
+
color: #ffdead;
|
217
|
+
margin: 1em;
|
218
|
+
padding: 0.5em;
|
219
|
+
border: 1px dashed #999;
|
220
|
+
overflow: hidden;
|
221
|
+
}
|
222
|
+
|
223
|
+
div.method-source-code pre { color: #ffdead; overflow: hidden; }
|
224
|
+
|
225
|
+
/* --- Ruby keyword styles --------------------- */
|
226
|
+
|
227
|
+
.standalone-code { background: #221111; color: #ffdead; overflow: hidden; }
|
228
|
+
|
229
|
+
.ruby-constant { color: #7fffd4; background: transparent; }
|
230
|
+
.ruby-keyword { color: #00ffff; background: transparent; }
|
231
|
+
.ruby-ivar { color: #eedd82; background: transparent; }
|
232
|
+
.ruby-operator { color: #00ffee; background: transparent; }
|
233
|
+
.ruby-identifier { color: #ffdead; background: transparent; }
|
234
|
+
.ruby-node { color: #ffa07a; background: transparent; }
|
235
|
+
.ruby-comment { color: #b22222; font-weight: bold; background: transparent; }
|
236
|
+
.ruby-regexp { color: #ffa07a; background: transparent; }
|
237
|
+
.ruby-value { color: #7fffd4; background: transparent; }
|
238
|
+
}
|
239
|
+
|
240
|
+
|
241
|
+
#####################################################################
|
242
|
+
### H E A D E R T E M P L A T E
|
243
|
+
#####################################################################
|
244
|
+
|
245
|
+
XHTML_PREAMBLE = %{<?xml version="1.0" encoding="%charset%"?>
|
246
|
+
<!DOCTYPE html
|
247
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
248
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
249
|
+
}
|
250
|
+
|
251
|
+
HEADER = XHTML_PREAMBLE + %{
|
252
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
253
|
+
<head>
|
254
|
+
<title>%title%</title>
|
255
|
+
<meta http-equiv="Content-Type" content="text/html; charset=%charset%" />
|
256
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
257
|
+
<link rel="stylesheet" href="%style_url%" type="text/css" media="screen" />
|
258
|
+
<script type="text/javascript">
|
259
|
+
// <![CDATA[
|
260
|
+
|
261
|
+
function popupCode( url ) {
|
262
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
263
|
+
}
|
264
|
+
|
265
|
+
function toggleCode( id ) {
|
266
|
+
if ( document.getElementById )
|
267
|
+
elem = document.getElementById( id );
|
268
|
+
else if ( document.all )
|
269
|
+
elem = eval( "document.all." + id );
|
270
|
+
else
|
271
|
+
return false;
|
272
|
+
|
273
|
+
elemStyle = elem.style;
|
274
|
+
|
275
|
+
if ( elemStyle.display != "block" ) {
|
276
|
+
elemStyle.display = "block"
|
277
|
+
} else {
|
278
|
+
elemStyle.display = "none"
|
279
|
+
}
|
280
|
+
|
281
|
+
return true;
|
282
|
+
}
|
283
|
+
|
284
|
+
// Make codeblocks hidden by default
|
285
|
+
document.writeln( "<style type=\\"text/css\\">div.method-source-code { display: none }</style>" )
|
286
|
+
|
287
|
+
// ]]>
|
288
|
+
</script>
|
289
|
+
|
290
|
+
</head>
|
291
|
+
<body>
|
292
|
+
}
|
293
|
+
|
294
|
+
|
295
|
+
#####################################################################
|
296
|
+
### C O N T E X T C O N T E N T T E M P L A T E
|
297
|
+
#####################################################################
|
298
|
+
|
299
|
+
CONTEXT_CONTENT = %{
|
300
|
+
}
|
301
|
+
|
302
|
+
|
303
|
+
#####################################################################
|
304
|
+
### F O O T E R T E M P L A T E
|
305
|
+
#####################################################################
|
306
|
+
FOOTER = %{
|
307
|
+
<div id="validator-badges">
|
308
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
309
|
+
</div>
|
310
|
+
|
311
|
+
</body>
|
312
|
+
</html>
|
313
|
+
}
|
314
|
+
|
315
|
+
|
316
|
+
#####################################################################
|
317
|
+
### F I L E P A G E H E A D E R T E M P L A T E
|
318
|
+
#####################################################################
|
319
|
+
|
320
|
+
FILE_PAGE = %{
|
321
|
+
<div id="fileHeader">
|
322
|
+
<h1>%short_name%</h1>
|
323
|
+
<table class="header-table">
|
324
|
+
<tr class="top-aligned-row">
|
325
|
+
<td><strong>Path:</strong></td>
|
326
|
+
<td>%full_path%
|
327
|
+
IF:cvsurl
|
328
|
+
(<a href="%cvsurl%"><acronym title="Concurrent Versioning System">CVS</acronym></a>)
|
329
|
+
ENDIF:cvsurl
|
330
|
+
</td>
|
331
|
+
</tr>
|
332
|
+
<tr class="top-aligned-row">
|
333
|
+
<td><strong>Last Update:</strong></td>
|
334
|
+
<td>%dtm_modified%</td>
|
335
|
+
</tr>
|
336
|
+
</table>
|
337
|
+
</div>
|
338
|
+
}
|
339
|
+
|
340
|
+
|
341
|
+
#####################################################################
|
342
|
+
### C L A S S P A G E H E A D E R T E M P L A T E
|
343
|
+
#####################################################################
|
344
|
+
|
345
|
+
CLASS_PAGE = %{
|
346
|
+
<div id="classHeader">
|
347
|
+
<table class="header-table">
|
348
|
+
<tr class="top-aligned-row">
|
349
|
+
<td><strong>%classmod%</strong></td>
|
350
|
+
<td class="class-name-in-header">%full_name%</td>
|
351
|
+
</tr>
|
352
|
+
<tr class="top-aligned-row">
|
353
|
+
<td><strong>In:</strong></td>
|
354
|
+
<td>
|
355
|
+
START:infiles
|
356
|
+
IF:full_path_url
|
357
|
+
<a href="%full_path_url%">
|
358
|
+
ENDIF:full_path_url
|
359
|
+
%full_path%
|
360
|
+
IF:full_path_url
|
361
|
+
</a>
|
362
|
+
ENDIF:full_path_url
|
363
|
+
IF:cvsurl
|
364
|
+
(<a href="%cvsurl%"><acronym title="Concurrent Versioning System">CVS</acronym></a>)
|
365
|
+
ENDIF:cvsurl
|
366
|
+
<br />
|
367
|
+
END:infiles
|
368
|
+
</td>
|
369
|
+
</tr>
|
370
|
+
|
371
|
+
IF:parent
|
372
|
+
<tr class="top-aligned-row">
|
373
|
+
<td><strong>Parent:</strong></td>
|
374
|
+
<td>
|
375
|
+
IF:par_url
|
376
|
+
<a href="%par_url%">
|
377
|
+
ENDIF:par_url
|
378
|
+
%parent%
|
379
|
+
IF:par_url
|
380
|
+
</a>
|
381
|
+
ENDIF:par_url
|
382
|
+
</td>
|
383
|
+
</tr>
|
384
|
+
ENDIF:parent
|
385
|
+
</table>
|
386
|
+
</div>
|
387
|
+
}
|
388
|
+
|
389
|
+
NODE_PAGE = %{
|
390
|
+
<div id="nodeHeader">
|
391
|
+
<table class="header-table">
|
392
|
+
<tr class="top-aligned-row">
|
393
|
+
<td><strong>%classmod%</strong></td>
|
394
|
+
<td class="class-name-in-header">%full_name%</td>
|
395
|
+
</tr>
|
396
|
+
<tr class="top-aligned-row">
|
397
|
+
<td><strong>In:</strong></td>
|
398
|
+
<td>
|
399
|
+
START:infiles
|
400
|
+
IF:full_path_url
|
401
|
+
<a href="%full_path_url%">
|
402
|
+
ENDIF:full_path_url
|
403
|
+
%full_path%
|
404
|
+
IF:full_path_url
|
405
|
+
</a>
|
406
|
+
ENDIF:full_path_url
|
407
|
+
IF:cvsurl
|
408
|
+
(<a href="%cvsurl%"><acronym title="Concurrent Versioning System">CVS</acronym></a>)
|
409
|
+
ENDIF:cvsurl
|
410
|
+
<br />
|
411
|
+
END:infiles
|
412
|
+
</td>
|
413
|
+
</tr>
|
414
|
+
|
415
|
+
IF:parent
|
416
|
+
<tr class="top-aligned-row">
|
417
|
+
<td><strong>Parent:</strong></td>
|
418
|
+
<td>
|
419
|
+
IF:par_url
|
420
|
+
<a href="%par_url%">
|
421
|
+
ENDIF:par_url
|
422
|
+
%parent%
|
423
|
+
IF:par_url
|
424
|
+
</a>
|
425
|
+
ENDIF:par_url
|
426
|
+
</td>
|
427
|
+
</tr>
|
428
|
+
ENDIF:parent
|
429
|
+
</table>
|
430
|
+
</div>
|
431
|
+
}
|
432
|
+
|
433
|
+
PLUGIN_PAGE = %{
|
434
|
+
<div id="classHeader">
|
435
|
+
<table class="header-table">
|
436
|
+
<tr class="top-aligned-row">
|
437
|
+
<td><strong>%classmod%</strong></td>
|
438
|
+
<td class="class-name-in-header">%full_name%</td>
|
439
|
+
</tr>
|
440
|
+
<tr class="top-aligned-row">
|
441
|
+
<td><strong>In:</strong></td>
|
442
|
+
<td>
|
443
|
+
START:infiles
|
444
|
+
IF:full_path_url
|
445
|
+
<a href="%full_path_url%">
|
446
|
+
ENDIF:full_path_url
|
447
|
+
%full_path%
|
448
|
+
IF:full_path_url
|
449
|
+
</a>
|
450
|
+
ENDIF:full_path_url
|
451
|
+
IF:cvsurl
|
452
|
+
(<a href="%cvsurl%"><acronym title="Concurrent Versioning System">CVS</acronym></a>)
|
453
|
+
ENDIF:cvsurl
|
454
|
+
<br />
|
455
|
+
END:infiles
|
456
|
+
</td>
|
457
|
+
</tr>
|
458
|
+
</table>
|
459
|
+
</div>
|
460
|
+
}
|
461
|
+
|
462
|
+
|
463
|
+
#####################################################################
|
464
|
+
### M E T H O D L I S T T E M P L A T E
|
465
|
+
#####################################################################
|
466
|
+
|
467
|
+
PLUGIN_LIST = %{
|
468
|
+
|
469
|
+
<div id="contextContent">
|
470
|
+
IF:description
|
471
|
+
<div id="description">
|
472
|
+
%description%
|
473
|
+
</div>
|
474
|
+
ENDIF:description
|
475
|
+
|
476
|
+
|
477
|
+
IF:toc
|
478
|
+
<div id="contents-list">
|
479
|
+
<h3 class="section-bar">Contents</h3>
|
480
|
+
<ul>
|
481
|
+
START:toc
|
482
|
+
<li><a href="#%href%">%secname%</a></li>
|
483
|
+
END:toc
|
484
|
+
</ul>
|
485
|
+
ENDIF:toc
|
486
|
+
</div>
|
487
|
+
|
488
|
+
</div>
|
489
|
+
|
490
|
+
<!-- Confine -->
|
491
|
+
IF:confine
|
492
|
+
START:confine
|
493
|
+
<div id="attribute-list">
|
494
|
+
<h3 class="section-bar">Confine</h3>
|
495
|
+
%type% %value%
|
496
|
+
<div class="name-list">
|
497
|
+
</div>
|
498
|
+
</div>
|
499
|
+
END:confine
|
500
|
+
ENDIF:confine
|
501
|
+
|
502
|
+
<!-- Type -->
|
503
|
+
IF:type
|
504
|
+
<div id="attribute-list">
|
505
|
+
<h3 class="section-bar">Type</h3>
|
506
|
+
%type%
|
507
|
+
<div class="name-list">
|
508
|
+
</div>
|
509
|
+
</div>
|
510
|
+
ENDIF:type
|
511
|
+
|
512
|
+
START:sections
|
513
|
+
<div id="section">
|
514
|
+
IF:sectitle
|
515
|
+
<h2 class="section-title"><a name="%secsequence%">%sectitle%</a></h2>
|
516
|
+
IF:seccomment
|
517
|
+
<div class="section-comment">
|
518
|
+
%seccomment%
|
519
|
+
</div>
|
520
|
+
ENDIF:seccomment
|
521
|
+
ENDIF:sectitle
|
522
|
+
END:sections
|
523
|
+
}
|
524
|
+
|
525
|
+
|
526
|
+
METHOD_LIST = %{
|
527
|
+
|
528
|
+
<div id="contextContent">
|
529
|
+
IF:diagram
|
530
|
+
<div id="diagram">
|
531
|
+
%diagram%
|
532
|
+
</div>
|
533
|
+
ENDIF:diagram
|
534
|
+
|
535
|
+
IF:description
|
536
|
+
<div id="description">
|
537
|
+
%description%
|
538
|
+
</div>
|
539
|
+
ENDIF:description
|
540
|
+
|
541
|
+
IF:requires
|
542
|
+
<div id="requires-list">
|
543
|
+
<h3 class="section-bar">Required files</h3>
|
544
|
+
|
545
|
+
<div class="name-list">
|
546
|
+
START:requires
|
547
|
+
HREF:aref:name:
|
548
|
+
END:requires
|
549
|
+
</div>
|
550
|
+
</div>
|
551
|
+
ENDIF:requires
|
552
|
+
|
553
|
+
IF:toc
|
554
|
+
<div id="contents-list">
|
555
|
+
<h3 class="section-bar">Contents</h3>
|
556
|
+
<ul>
|
557
|
+
START:toc
|
558
|
+
<li><a href="#%href%">%secname%</a></li>
|
559
|
+
END:toc
|
560
|
+
</ul>
|
561
|
+
ENDIF:toc
|
562
|
+
</div>
|
563
|
+
|
564
|
+
IF:methods
|
565
|
+
<div id="method-list">
|
566
|
+
<h3 class="section-bar">Defines</h3>
|
567
|
+
|
568
|
+
<div class="name-list">
|
569
|
+
START:methods
|
570
|
+
HREF:aref:name:
|
571
|
+
END:methods
|
572
|
+
</div>
|
573
|
+
</div>
|
574
|
+
ENDIF:methods
|
575
|
+
|
576
|
+
IF:resources
|
577
|
+
<div id="method-list">
|
578
|
+
<h3 class="section-bar">Resources</h3>
|
579
|
+
|
580
|
+
<div class="name-list">
|
581
|
+
START:resources
|
582
|
+
HREF:aref:name:
|
583
|
+
END:resources
|
584
|
+
</div>
|
585
|
+
</div>
|
586
|
+
ENDIF:resources
|
587
|
+
|
588
|
+
</div>
|
589
|
+
|
590
|
+
|
591
|
+
<!-- if includes -->
|
592
|
+
IF:includes
|
593
|
+
<div id="includes">
|
594
|
+
<h3 class="section-bar">Included Classes</h3>
|
595
|
+
|
596
|
+
<div id="includes-list">
|
597
|
+
START:includes
|
598
|
+
<span class="include-name">HREF:aref:name:</span>
|
599
|
+
END:includes
|
600
|
+
</div>
|
601
|
+
</div>
|
602
|
+
ENDIF:includes
|
603
|
+
|
604
|
+
START:sections
|
605
|
+
<div id="section">
|
606
|
+
IF:sectitle
|
607
|
+
<h2 class="section-title"><a name="%secsequence%">%sectitle%</a></h2>
|
608
|
+
IF:seccomment
|
609
|
+
<div class="section-comment">
|
610
|
+
%seccomment%
|
611
|
+
</div>
|
612
|
+
ENDIF:seccomment
|
613
|
+
ENDIF:sectitle
|
614
|
+
|
615
|
+
|
616
|
+
<!-- if facts -->
|
617
|
+
IF:facts
|
618
|
+
<div id="class-list">
|
619
|
+
<h3 class="section-bar">Custom Facts</h3>
|
620
|
+
START:facts
|
621
|
+
HREF:aref:name:
|
622
|
+
END:facts
|
623
|
+
</div>
|
624
|
+
ENDIF:facts
|
625
|
+
|
626
|
+
<!-- if plugins -->
|
627
|
+
IF:plugins
|
628
|
+
<div id="class-list">
|
629
|
+
<h3 class="section-bar">Plugins</h3>
|
630
|
+
START:plugins
|
631
|
+
HREF:aref:name:
|
632
|
+
END:plugins
|
633
|
+
</div>
|
634
|
+
ENDIF:plugins
|
635
|
+
|
636
|
+
<!-- if nodes -->
|
637
|
+
IF:nodelist
|
638
|
+
<div id="class-list">
|
639
|
+
<h3 class="section-bar">Nodes</h3>
|
640
|
+
|
641
|
+
%nodelist%
|
642
|
+
</div>
|
643
|
+
ENDIF:nodelist
|
644
|
+
|
645
|
+
<!-- if class -->
|
646
|
+
IF:classlist
|
647
|
+
<div id="class-list">
|
648
|
+
<h3 class="section-bar">Classes and Modules</h3>
|
649
|
+
|
650
|
+
%classlist%
|
651
|
+
</div>
|
652
|
+
ENDIF:classlist
|
653
|
+
|
654
|
+
IF:constants
|
655
|
+
<div id="constants-list">
|
656
|
+
<h3 class="section-bar">Global Variables</h3>
|
657
|
+
|
658
|
+
<div class="name-list">
|
659
|
+
<table summary="Variables">
|
660
|
+
START:constants
|
661
|
+
<tr class="top-aligned-row context-row">
|
662
|
+
<td class="context-item-name">%name%</td>
|
663
|
+
<td>=</td>
|
664
|
+
<td class="context-item-value">%value%</td>
|
665
|
+
IF:desc
|
666
|
+
<td width="3em"> </td>
|
667
|
+
<td class="context-item-desc">%desc%</td>
|
668
|
+
ENDIF:desc
|
669
|
+
</tr>
|
670
|
+
END:constants
|
671
|
+
</table>
|
672
|
+
</div>
|
673
|
+
</div>
|
674
|
+
ENDIF:constants
|
675
|
+
|
676
|
+
IF:aliases
|
677
|
+
<div id="aliases-list">
|
678
|
+
<h3 class="section-bar">External Aliases</h3>
|
679
|
+
|
680
|
+
<div class="name-list">
|
681
|
+
<table summary="aliases">
|
682
|
+
START:aliases
|
683
|
+
<tr class="top-aligned-row context-row">
|
684
|
+
<td class="context-item-name">%old_name%</td>
|
685
|
+
<td>-></td>
|
686
|
+
<td class="context-item-value">%new_name%</td>
|
687
|
+
</tr>
|
688
|
+
IF:desc
|
689
|
+
<tr class="top-aligned-row context-row">
|
690
|
+
<td> </td>
|
691
|
+
<td colspan="2" class="context-item-desc">%desc%</td>
|
692
|
+
</tr>
|
693
|
+
ENDIF:desc
|
694
|
+
END:aliases
|
695
|
+
</table>
|
696
|
+
</div>
|
697
|
+
</div>
|
698
|
+
ENDIF:aliases
|
699
|
+
|
700
|
+
|
701
|
+
IF:attributes
|
702
|
+
<div id="attribute-list">
|
703
|
+
<h3 class="section-bar">Attributes</h3>
|
704
|
+
|
705
|
+
<div class="name-list">
|
706
|
+
<table>
|
707
|
+
START:attributes
|
708
|
+
<tr class="top-aligned-row context-row">
|
709
|
+
<td class="context-item-name">%name%</td>
|
710
|
+
IF:rw
|
711
|
+
<td class="context-item-value"> [%rw%] </td>
|
712
|
+
ENDIF:rw
|
713
|
+
IFNOT:rw
|
714
|
+
<td class="context-item-value"> </td>
|
715
|
+
ENDIF:rw
|
716
|
+
<td class="context-item-desc">%a_desc%</td>
|
717
|
+
</tr>
|
718
|
+
END:attributes
|
719
|
+
</table>
|
720
|
+
</div>
|
721
|
+
</div>
|
722
|
+
ENDIF:attributes
|
723
|
+
|
724
|
+
|
725
|
+
|
726
|
+
<!-- if method_list -->
|
727
|
+
IF:method_list
|
728
|
+
<div id="methods">
|
729
|
+
START:method_list
|
730
|
+
IF:methods
|
731
|
+
<h3 class="section-bar">Defines</h3>
|
732
|
+
|
733
|
+
START:methods
|
734
|
+
<div id="method-%aref%" class="method-detail">
|
735
|
+
<a name="%aref%"></a>
|
736
|
+
|
737
|
+
<div class="method-heading">
|
738
|
+
IF:codeurl
|
739
|
+
<a href="%codeurl%" target="Code" class="method-signature"
|
740
|
+
onclick="popupCode('%codeurl%');return false;">
|
741
|
+
ENDIF:codeurl
|
742
|
+
IF:sourcecode
|
743
|
+
<a href="#%aref%" class="method-signature">
|
744
|
+
ENDIF:sourcecode
|
745
|
+
IF:callseq
|
746
|
+
<span class="method-name">%callseq%</span>
|
747
|
+
ENDIF:callseq
|
748
|
+
IFNOT:callseq
|
749
|
+
<span class="method-name">%name%</span><span class="method-args">%params%</span>
|
750
|
+
ENDIF:callseq
|
751
|
+
IF:codeurl
|
752
|
+
</a>
|
753
|
+
ENDIF:codeurl
|
754
|
+
IF:sourcecode
|
755
|
+
</a>
|
756
|
+
ENDIF:sourcecode
|
757
|
+
</div>
|
758
|
+
|
759
|
+
<div class="method-description">
|
760
|
+
IF:m_desc
|
761
|
+
%m_desc%
|
762
|
+
ENDIF:m_desc
|
763
|
+
IF:sourcecode
|
764
|
+
<p><a class="source-toggle" href="#"
|
765
|
+
onclick="toggleCode('%aref%-source');return false;">[Source]</a></p>
|
766
|
+
<div class="method-source-code" id="%aref%-source">
|
767
|
+
<pre>
|
768
|
+
%sourcecode%
|
769
|
+
</pre>
|
770
|
+
</div>
|
771
|
+
ENDIF:sourcecode
|
772
|
+
</div>
|
773
|
+
</div>
|
774
|
+
|
775
|
+
END:methods
|
776
|
+
ENDIF:methods
|
777
|
+
END:method_list
|
778
|
+
|
779
|
+
</div>
|
780
|
+
ENDIF:method_list
|
781
|
+
|
782
|
+
|
783
|
+
<!-- if resource_list -->
|
784
|
+
IF:resource_list
|
785
|
+
<div id="resources">
|
786
|
+
<h3 class="section-bar">Resources</h3>
|
787
|
+
START:resource_list
|
788
|
+
|
789
|
+
<div id="method-%aref%" class="method-detail">
|
790
|
+
<a name="%aref%"></a>
|
791
|
+
|
792
|
+
<div class="method-heading">
|
793
|
+
<span class="method-name">%name%</span><br />
|
794
|
+
IF:params
|
795
|
+
START:params
|
796
|
+
<span class="method-args">%name% => %value%</span><br />
|
797
|
+
END:params
|
798
|
+
ENDIF:params
|
799
|
+
</div>
|
800
|
+
|
801
|
+
<div class="method-description">
|
802
|
+
IF:m_desc
|
803
|
+
%m_desc%
|
804
|
+
ENDIF:m_desc
|
805
|
+
</div>
|
806
|
+
</div>
|
807
|
+
END:resource_list
|
808
|
+
|
809
|
+
</div>
|
810
|
+
ENDIF:resource_list
|
811
|
+
|
812
|
+
END:sections
|
813
|
+
}
|
814
|
+
|
815
|
+
|
816
|
+
#####################################################################
|
817
|
+
### B O D Y T E M P L A T E
|
818
|
+
#####################################################################
|
819
|
+
|
820
|
+
BODY = HEADER + %{
|
821
|
+
|
822
|
+
!INCLUDE! <!-- banner header -->
|
823
|
+
|
824
|
+
<div id="bodyContent">
|
825
|
+
|
826
|
+
} + METHOD_LIST + %{
|
827
|
+
|
828
|
+
</div>
|
829
|
+
|
830
|
+
} + FOOTER
|
831
|
+
|
832
|
+
BODYINC = HEADER + %{
|
833
|
+
|
834
|
+
!INCLUDE! <!-- banner header -->
|
835
|
+
|
836
|
+
<div id="bodyContent">
|
837
|
+
|
838
|
+
!INCLUDE!
|
839
|
+
|
840
|
+
</div>
|
841
|
+
|
842
|
+
} + FOOTER
|
843
|
+
|
844
|
+
|
845
|
+
|
846
|
+
#####################################################################
|
847
|
+
### S O U R C E C O D E T E M P L A T E
|
848
|
+
#####################################################################
|
849
|
+
|
850
|
+
SRC_PAGE = XHTML_PREAMBLE + %{
|
851
|
+
<html>
|
852
|
+
<head>
|
853
|
+
<title>%title%</title>
|
854
|
+
<meta http-equiv="Content-Type" content="text/html; charset=%charset%" />
|
855
|
+
<link rel="stylesheet" href="%style_url%" type="text/css" media="screen" />
|
856
|
+
</head>
|
857
|
+
<body class="standalone-code">
|
858
|
+
<pre>%code%</pre>
|
859
|
+
</body>
|
860
|
+
</html>
|
861
|
+
}
|
862
|
+
|
863
|
+
|
864
|
+
#####################################################################
|
865
|
+
### I N D E X F I L E T E M P L A T E S
|
866
|
+
#####################################################################
|
867
|
+
|
868
|
+
FR_INDEX_BODY = %{
|
869
|
+
!INCLUDE!
|
870
|
+
}
|
871
|
+
|
872
|
+
FILE_INDEX = XHTML_PREAMBLE + %{
|
873
|
+
<!--
|
874
|
+
|
875
|
+
%list_title%
|
876
|
+
|
877
|
+
-->
|
878
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
879
|
+
<head>
|
880
|
+
<title>%list_title%</title>
|
881
|
+
<meta http-equiv="Content-Type" content="text/html; charset=%charset%" />
|
882
|
+
<link rel="stylesheet" href="%style_url%" type="text/css" />
|
883
|
+
<base target="docwin" />
|
884
|
+
</head>
|
885
|
+
<body>
|
886
|
+
<div id="index">
|
887
|
+
<h1 class="section-bar">%list_title%</h1>
|
888
|
+
<div id="index-entries">
|
889
|
+
START:entries
|
890
|
+
<a href="%href%">%name%</a><br />
|
891
|
+
END:entries
|
892
|
+
</div>
|
893
|
+
</div>
|
894
|
+
</body>
|
895
|
+
</html>
|
896
|
+
}
|
897
|
+
|
898
|
+
TOP_INDEX = XHTML_PREAMBLE + %{
|
899
|
+
<!--
|
900
|
+
|
901
|
+
%list_title%
|
902
|
+
|
903
|
+
-->
|
904
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
905
|
+
<head>
|
906
|
+
<title>%list_title%</title>
|
907
|
+
<meta http-equiv="Content-Type" content="text/html; charset=%charset%" />
|
908
|
+
<link rel="stylesheet" href="%style_url%" type="text/css" />
|
909
|
+
<base target="classes" />
|
910
|
+
<SCRIPT LANGUAGE="JavaScript">
|
911
|
+
<!--
|
912
|
+
function load(classlist,module) {
|
913
|
+
parent.classes.location.href = classlist;
|
914
|
+
parent.docwin.location.href = module;
|
915
|
+
}
|
916
|
+
//--></SCRIPT>
|
917
|
+
</head>
|
918
|
+
<body>
|
919
|
+
<div id="index">
|
920
|
+
<h1 class="section-bar">%list_title%</h1>
|
921
|
+
<div id="index-entries">
|
922
|
+
START:entries
|
923
|
+
<a href="%classlist%" onclick="load('%classlist%','%module%'); return true;">%name%</a><br />
|
924
|
+
END:entries
|
925
|
+
</div>
|
926
|
+
</div>
|
927
|
+
</body>
|
928
|
+
</html>
|
929
|
+
}
|
930
|
+
|
931
|
+
|
932
|
+
CLASS_INDEX = FILE_INDEX
|
933
|
+
METHOD_INDEX = FILE_INDEX
|
934
|
+
|
935
|
+
COMBO_INDEX = XHTML_PREAMBLE + %{
|
936
|
+
<!--
|
937
|
+
|
938
|
+
%classes_title% & %defines_title%
|
939
|
+
|
940
|
+
-->
|
941
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
942
|
+
<head>
|
943
|
+
<title>%classes_title% & %defines_title%</title>
|
944
|
+
<meta http-equiv="Content-Type" content="text/html; charset=%charset%" />
|
945
|
+
<link rel="stylesheet" href="../%style_url%" type="text/css" />
|
946
|
+
<base target="docwin" />
|
947
|
+
<SCRIPT LANGUAGE="JavaScript">
|
948
|
+
<!--
|
949
|
+
function load(url) {
|
950
|
+
parent.docwin.location.href = url;
|
951
|
+
}
|
952
|
+
//--></SCRIPT>
|
953
|
+
|
954
|
+
</head>
|
955
|
+
<body>
|
956
|
+
<div id="index">
|
957
|
+
|
958
|
+
<a href="../fr_class_index.html" target="classes">All Classes</a><br />
|
959
|
+
|
960
|
+
|
961
|
+
<h1 class="section-bar">Module</h1>
|
962
|
+
<div id="index-entries">
|
963
|
+
START:module
|
964
|
+
<a href="%href%" onclick="load('%href%'); return true;">%name%</a><br />
|
965
|
+
END:module
|
966
|
+
</div>
|
967
|
+
</div>
|
968
|
+
<div id="index">
|
969
|
+
|
970
|
+
IF:nodes
|
971
|
+
<h1 class="section-bar">%nodes_title%</h1>
|
972
|
+
<div id="index-entries">
|
973
|
+
START:nodes
|
974
|
+
<a href="%href%" onclick="load('%href%'); return true;">%name%</a><br />
|
975
|
+
END:nodes
|
976
|
+
</div>
|
977
|
+
ENDIF:nodes
|
978
|
+
|
979
|
+
IF:classes
|
980
|
+
<h1 class="section-bar">%classes_title%</h1>
|
981
|
+
<div id="index-entries">
|
982
|
+
START:classes
|
983
|
+
<a href="%href%" onclick="load('%href%'); return true;">%name%</a><br />
|
984
|
+
END:classes
|
985
|
+
</div>
|
986
|
+
ENDIF:classes
|
987
|
+
|
988
|
+
IF:defines
|
989
|
+
<h1 class="section-bar">%defines_title%</h1>
|
990
|
+
<div id="index-entries">
|
991
|
+
START:defines
|
992
|
+
<a href="%href%" onclick="load('%href%'); return true;">%name%</a><br />
|
993
|
+
END:defines
|
994
|
+
</div>
|
995
|
+
ENDIF:defines
|
996
|
+
|
997
|
+
IF:facts
|
998
|
+
<h1 class="section-bar">%facts_title%</h1>
|
999
|
+
<div id="index-entries">
|
1000
|
+
START:facts
|
1001
|
+
<a href="%href%" onclick="load('%href%'); return true;">%name%</a><br />
|
1002
|
+
END:facts
|
1003
|
+
</div>
|
1004
|
+
ENDIF:facts
|
1005
|
+
|
1006
|
+
|
1007
|
+
IF:plugins
|
1008
|
+
<h1 class="section-bar">%plugins_title%</h1>
|
1009
|
+
<div id="index-entries">
|
1010
|
+
START:plugins
|
1011
|
+
<a href="%href%" onclick="load('%href%'); return true;">%name%</a><br />
|
1012
|
+
END:plugins
|
1013
|
+
</div>
|
1014
|
+
ENDIF:plugins
|
1015
|
+
|
1016
|
+
</div>
|
1017
|
+
</body>
|
1018
|
+
</html>
|
1019
|
+
}
|
1020
|
+
|
1021
|
+
INDEX = %{<?xml version="1.0" encoding="%charset%"?>
|
1022
|
+
<!DOCTYPE html
|
1023
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
|
1024
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
|
1025
|
+
|
1026
|
+
<!--
|
1027
|
+
|
1028
|
+
%title%
|
1029
|
+
|
1030
|
+
-->
|
1031
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1032
|
+
<head>
|
1033
|
+
<title>%title%</title>
|
1034
|
+
<meta http-equiv="Content-Type" content="text/html; charset=%charset%" />
|
1035
|
+
</head>
|
1036
|
+
<frameset cols="20%, 80%">
|
1037
|
+
<frameset rows="30%,70%">
|
1038
|
+
<frame src="fr_modules_index.html" title="All Modules" />
|
1039
|
+
<frame src="fr_class_index.html" name="classes" title="Classes & Defines" />
|
1040
|
+
</frameset>
|
1041
|
+
<frame src="%initial_page%" name="docwin" />
|
1042
|
+
</frameset>
|
1043
|
+
</html>
|
1044
|
+
}
|
1045
|
+
|
1046
|
+
|
1047
|
+
|
1048
|
+
end # module Page
|
1049
|
+
end # class RDoc
|
1050
|
+
|
1051
|
+
require 'rdoc/generators/template/html/one_page_html'
|