hyper-pro-gem 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/hyper-pro-gem.gemspec +12 -0
- data/yard-0.9.44/CHANGELOG.md +983 -0
- data/yard-0.9.44/LEGAL +94 -0
- data/yard-0.9.44/LICENSE +22 -0
- data/yard-0.9.44/README.md +329 -0
- data/yard-0.9.44/bin/yard +13 -0
- data/yard-0.9.44/bin/yardoc +13 -0
- data/yard-0.9.44/bin/yri +13 -0
- data/yard-0.9.44/docs/CodeObjects.md +115 -0
- data/yard-0.9.44/docs/GettingStarted.md +705 -0
- data/yard-0.9.44/docs/Handlers.md +152 -0
- data/yard-0.9.44/docs/Overview.md +61 -0
- data/yard-0.9.44/docs/Parser.md +166 -0
- data/yard-0.9.44/docs/Tags.md +304 -0
- data/yard-0.9.44/docs/TagsArch.md +123 -0
- data/yard-0.9.44/docs/Templates.md +497 -0
- data/yard-0.9.44/docs/WhatsNew.md +1297 -0
- data/yard-0.9.44/docs/images/code-objects-class-diagram.png +0 -0
- data/yard-0.9.44/docs/images/handlers-class-diagram.png +0 -0
- data/yard-0.9.44/docs/images/overview-class-diagram.png +0 -0
- data/yard-0.9.44/docs/images/parser-class-diagram.png +0 -0
- data/yard-0.9.44/docs/images/tags-class-diagram.png +0 -0
- data/yard-0.9.44/docs/templates/default/fulldoc/html/full_list_tag.erb +9 -0
- data/yard-0.9.44/docs/templates/default/fulldoc/html/setup.rb +6 -0
- data/yard-0.9.44/docs/templates/default/layout/html/setup.rb +9 -0
- data/yard-0.9.44/docs/templates/default/layout/html/tag_list.erb +11 -0
- data/yard-0.9.44/docs/templates/default/yard_tags/html/list.erb +18 -0
- data/yard-0.9.44/docs/templates/default/yard_tags/html/setup.rb +26 -0
- data/yard-0.9.44/docs/templates/plugin.rb +70 -0
- data/yard-0.9.44/lib/rubygems_plugin.rb +9 -0
- data/yard-0.9.44/lib/yard/autoload.rb +328 -0
- data/yard-0.9.44/lib/yard/cli/command.rb +85 -0
- data/yard-0.9.44/lib/yard/cli/command_parser.rb +93 -0
- data/yard-0.9.44/lib/yard/cli/config.rb +198 -0
- data/yard-0.9.44/lib/yard/cli/diff.rb +278 -0
- data/yard-0.9.44/lib/yard/cli/display.rb +69 -0
- data/yard-0.9.44/lib/yard/cli/gems.rb +84 -0
- data/yard-0.9.44/lib/yard/cli/graph.rb +125 -0
- data/yard-0.9.44/lib/yard/cli/help.rb +20 -0
- data/yard-0.9.44/lib/yard/cli/i18n.rb +70 -0
- data/yard-0.9.44/lib/yard/cli/list.rb +23 -0
- data/yard-0.9.44/lib/yard/cli/markup_types.rb +32 -0
- data/yard-0.9.44/lib/yard/cli/server.rb +266 -0
- data/yard-0.9.44/lib/yard/cli/stats.rb +234 -0
- data/yard-0.9.44/lib/yard/cli/yardoc.rb +791 -0
- data/yard-0.9.44/lib/yard/cli/yardopts_command.rb +110 -0
- data/yard-0.9.44/lib/yard/cli/yri.rb +215 -0
- data/yard-0.9.44/lib/yard/code_objects/base.rb +626 -0
- data/yard-0.9.44/lib/yard/code_objects/class_object.rb +146 -0
- data/yard-0.9.44/lib/yard/code_objects/class_variable_object.rb +11 -0
- data/yard-0.9.44/lib/yard/code_objects/constant_object.rb +16 -0
- data/yard-0.9.44/lib/yard/code_objects/extended_method_object.rb +24 -0
- data/yard-0.9.44/lib/yard/code_objects/extra_file_object.rb +135 -0
- data/yard-0.9.44/lib/yard/code_objects/macro_object.rb +171 -0
- data/yard-0.9.44/lib/yard/code_objects/method_object.rb +196 -0
- data/yard-0.9.44/lib/yard/code_objects/module_object.rb +21 -0
- data/yard-0.9.44/lib/yard/code_objects/namespace_mapper.rb +141 -0
- data/yard-0.9.44/lib/yard/code_objects/namespace_object.rb +200 -0
- data/yard-0.9.44/lib/yard/code_objects/proxy.rb +245 -0
- data/yard-0.9.44/lib/yard/code_objects/root_object.rb +19 -0
- data/yard-0.9.44/lib/yard/config.rb +274 -0
- data/yard-0.9.44/lib/yard/core_ext/array.rb +16 -0
- data/yard-0.9.44/lib/yard/core_ext/file.rb +69 -0
- data/yard-0.9.44/lib/yard/core_ext/hash.rb +16 -0
- data/yard-0.9.44/lib/yard/core_ext/insertion.rb +63 -0
- data/yard-0.9.44/lib/yard/core_ext/module.rb +11 -0
- data/yard-0.9.44/lib/yard/core_ext/string.rb +68 -0
- data/yard-0.9.44/lib/yard/core_ext/symbol_hash.rb +75 -0
- data/yard-0.9.44/lib/yard/docstring.rb +386 -0
- data/yard-0.9.44/lib/yard/docstring_parser.rb +344 -0
- data/yard-0.9.44/lib/yard/gem_index.rb +29 -0
- data/yard-0.9.44/lib/yard/globals.rb +22 -0
- data/yard-0.9.44/lib/yard/handlers/base.rb +617 -0
- data/yard-0.9.44/lib/yard/handlers/c/alias_handler.rb +16 -0
- data/yard-0.9.44/lib/yard/handlers/c/attribute_handler.rb +13 -0
- data/yard-0.9.44/lib/yard/handlers/c/base.rb +164 -0
- data/yard-0.9.44/lib/yard/handlers/c/class_handler.rb +27 -0
- data/yard-0.9.44/lib/yard/handlers/c/constant_handler.rb +13 -0
- data/yard-0.9.44/lib/yard/handlers/c/handler_methods.rb +212 -0
- data/yard-0.9.44/lib/yard/handlers/c/init_handler.rb +20 -0
- data/yard-0.9.44/lib/yard/handlers/c/method_handler.rb +45 -0
- data/yard-0.9.44/lib/yard/handlers/c/mixin_handler.rb +21 -0
- data/yard-0.9.44/lib/yard/handlers/c/module_handler.rb +17 -0
- data/yard-0.9.44/lib/yard/handlers/c/override_comment_handler.rb +31 -0
- data/yard-0.9.44/lib/yard/handlers/c/path_handler.rb +11 -0
- data/yard-0.9.44/lib/yard/handlers/c/struct_handler.rb +13 -0
- data/yard-0.9.44/lib/yard/handlers/c/symbol_handler.rb +8 -0
- data/yard-0.9.44/lib/yard/handlers/common/method_handler.rb +19 -0
- data/yard-0.9.44/lib/yard/handlers/processor.rb +200 -0
- data/yard-0.9.44/lib/yard/handlers/rbs/attribute_handler.rb +79 -0
- data/yard-0.9.44/lib/yard/handlers/rbs/base.rb +38 -0
- data/yard-0.9.44/lib/yard/handlers/rbs/constant_handler.rb +18 -0
- data/yard-0.9.44/lib/yard/handlers/rbs/method_handler.rb +327 -0
- data/yard-0.9.44/lib/yard/handlers/rbs/mixin_handler.rb +20 -0
- data/yard-0.9.44/lib/yard/handlers/rbs/namespace_handler.rb +26 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/alias_handler.rb +45 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/attribute_handler.rb +90 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/base.rb +165 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/class_condition_handler.rb +92 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/class_handler.rb +119 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/class_variable_handler.rb +17 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/comment_handler.rb +10 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/constant_handler.rb +73 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/decorator_handler_methods.rb +123 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/dsl_handler.rb +15 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/dsl_handler_methods.rb +96 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/exception_handler.rb +27 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/extend_handler.rb +22 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/legacy/alias_handler.rb +37 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/legacy/attribute_handler.rb +65 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/legacy/base.rb +245 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/legacy/class_condition_handler.rb +83 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/legacy/class_handler.rb +113 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/legacy/class_variable_handler.rb +15 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/legacy/comment_handler.rb +10 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/legacy/constant_handler.rb +29 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/legacy/dsl_handler.rb +17 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/legacy/exception_handler.rb +13 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/legacy/extend_handler.rb +21 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/legacy/method_handler.rb +90 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/legacy/mixin_handler.rb +39 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/legacy/module_function_handler.rb +19 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/legacy/module_handler.rb +12 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/legacy/private_class_method_handler.rb +22 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/legacy/private_constant_handler.rb +22 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/legacy/visibility_handler.rb +18 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/legacy/yield_handler.rb +29 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/method_condition_handler.rb +9 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/method_handler.rb +104 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/mixin_handler.rb +61 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/module_function_handler.rb +39 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/module_handler.rb +12 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/private_class_method_handler.rb +14 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/private_constant_handler.rb +43 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/public_class_method_handler.rb +14 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/struct_handler_methods.rb +143 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/visibility_handler.rb +35 -0
- data/yard-0.9.44/lib/yard/handlers/ruby/yield_handler.rb +31 -0
- data/yard-0.9.44/lib/yard/i18n/locale.rb +67 -0
- data/yard-0.9.44/lib/yard/i18n/message.rb +57 -0
- data/yard-0.9.44/lib/yard/i18n/messages.rb +56 -0
- data/yard-0.9.44/lib/yard/i18n/po_parser.rb +61 -0
- data/yard-0.9.44/lib/yard/i18n/pot_generator.rb +290 -0
- data/yard-0.9.44/lib/yard/i18n/text.rb +173 -0
- data/yard-0.9.44/lib/yard/logging.rb +260 -0
- data/yard-0.9.44/lib/yard/open_struct.rb +67 -0
- data/yard-0.9.44/lib/yard/options.rb +217 -0
- data/yard-0.9.44/lib/yard/parser/base.rb +57 -0
- data/yard-0.9.44/lib/yard/parser/c/c_parser.rb +235 -0
- data/yard-0.9.44/lib/yard/parser/c/comment_parser.rb +134 -0
- data/yard-0.9.44/lib/yard/parser/c/statement.rb +66 -0
- data/yard-0.9.44/lib/yard/parser/rbs/rbs_parser.rb +325 -0
- data/yard-0.9.44/lib/yard/parser/rbs/statement.rb +75 -0
- data/yard-0.9.44/lib/yard/parser/ruby/ast_node.rb +559 -0
- data/yard-0.9.44/lib/yard/parser/ruby/legacy/irb/slex.rb +294 -0
- data/yard-0.9.44/lib/yard/parser/ruby/legacy/ruby_lex.rb +1360 -0
- data/yard-0.9.44/lib/yard/parser/ruby/legacy/ruby_parser.rb +32 -0
- data/yard-0.9.44/lib/yard/parser/ruby/legacy/statement.rb +68 -0
- data/yard-0.9.44/lib/yard/parser/ruby/legacy/statement_list.rb +394 -0
- data/yard-0.9.44/lib/yard/parser/ruby/legacy/token_list.rb +74 -0
- data/yard-0.9.44/lib/yard/parser/ruby/ruby_parser.rb +792 -0
- data/yard-0.9.44/lib/yard/parser/ruby/token_resolver.rb +158 -0
- data/yard-0.9.44/lib/yard/parser/source_parser.rb +526 -0
- data/yard-0.9.44/lib/yard/rake/yardoc_task.rb +81 -0
- data/yard-0.9.44/lib/yard/registry.rb +439 -0
- data/yard-0.9.44/lib/yard/registry_resolver.rb +225 -0
- data/yard-0.9.44/lib/yard/registry_store.rb +342 -0
- data/yard-0.9.44/lib/yard/rubygems/backports/LICENSE.txt +57 -0
- data/yard-0.9.44/lib/yard/rubygems/backports/MIT.txt +20 -0
- data/yard-0.9.44/lib/yard/rubygems/backports/gem.rb +10 -0
- data/yard-0.9.44/lib/yard/rubygems/backports/source_index.rb +365 -0
- data/yard-0.9.44/lib/yard/rubygems/backports.rb +10 -0
- data/yard-0.9.44/lib/yard/rubygems/doc_manager.rb +90 -0
- data/yard-0.9.44/lib/yard/rubygems/hook.rb +197 -0
- data/yard-0.9.44/lib/yard/rubygems/specification.rb +50 -0
- data/yard-0.9.44/lib/yard/serializers/base.rb +83 -0
- data/yard-0.9.44/lib/yard/serializers/file_system_serializer.rb +123 -0
- data/yard-0.9.44/lib/yard/serializers/process_serializer.rb +24 -0
- data/yard-0.9.44/lib/yard/serializers/stdout_serializer.rb +34 -0
- data/yard-0.9.44/lib/yard/serializers/yardoc_serializer.rb +152 -0
- data/yard-0.9.44/lib/yard/server/adapter.rb +100 -0
- data/yard-0.9.44/lib/yard/server/commands/base.rb +203 -0
- data/yard-0.9.44/lib/yard/server/commands/display_file_command.rb +29 -0
- data/yard-0.9.44/lib/yard/server/commands/display_object_command.rb +65 -0
- data/yard-0.9.44/lib/yard/server/commands/frames_command.rb +16 -0
- data/yard-0.9.44/lib/yard/server/commands/library_command.rb +187 -0
- data/yard-0.9.44/lib/yard/server/commands/library_index_command.rb +28 -0
- data/yard-0.9.44/lib/yard/server/commands/list_command.rb +25 -0
- data/yard-0.9.44/lib/yard/server/commands/root_request_command.rb +15 -0
- data/yard-0.9.44/lib/yard/server/commands/search_command.rb +79 -0
- data/yard-0.9.44/lib/yard/server/commands/static_file_command.rb +23 -0
- data/yard-0.9.44/lib/yard/server/commands/static_file_helpers.rb +60 -0
- data/yard-0.9.44/lib/yard/server/doc_server_helper.rb +91 -0
- data/yard-0.9.44/lib/yard/server/doc_server_serializer.rb +39 -0
- data/yard-0.9.44/lib/yard/server/http_utils.rb +512 -0
- data/yard-0.9.44/lib/yard/server/library_version.rb +277 -0
- data/yard-0.9.44/lib/yard/server/rack_adapter.rb +97 -0
- data/yard-0.9.44/lib/yard/server/router.rb +187 -0
- data/yard-0.9.44/lib/yard/server/static_caching.rb +77 -0
- data/yard-0.9.44/lib/yard/server/templates/default/fulldoc/html/css/custom.css +207 -0
- data/yard-0.9.44/lib/yard/server/templates/default/fulldoc/html/images/processing.gif +0 -0
- data/yard-0.9.44/lib/yard/server/templates/default/fulldoc/html/js/autocomplete.js +203 -0
- data/yard-0.9.44/lib/yard/server/templates/default/layout/html/breadcrumb.erb +21 -0
- data/yard-0.9.44/lib/yard/server/templates/default/layout/html/script_setup.erb +7 -0
- data/yard-0.9.44/lib/yard/server/templates/default/layout/html/setup.rb +8 -0
- data/yard-0.9.44/lib/yard/server/templates/default/method_details/html/permalink.erb +6 -0
- data/yard-0.9.44/lib/yard/server/templates/default/method_details/html/setup.rb +5 -0
- data/yard-0.9.44/lib/yard/server/templates/doc_server/library_list/html/headers.erb +8 -0
- data/yard-0.9.44/lib/yard/server/templates/doc_server/library_list/html/library_list.erb +13 -0
- data/yard-0.9.44/lib/yard/server/templates/doc_server/library_list/html/listing.erb +13 -0
- data/yard-0.9.44/lib/yard/server/templates/doc_server/library_list/html/setup.rb +6 -0
- data/yard-0.9.44/lib/yard/server/templates/doc_server/library_list/html/title.erb +2 -0
- data/yard-0.9.44/lib/yard/server/templates/doc_server/processing/html/processing.erb +58 -0
- data/yard-0.9.44/lib/yard/server/templates/doc_server/processing/html/setup.rb +4 -0
- data/yard-0.9.44/lib/yard/server/templates/doc_server/search/html/search.erb +18 -0
- data/yard-0.9.44/lib/yard/server/templates/doc_server/search/html/setup.rb +9 -0
- data/yard-0.9.44/lib/yard/server/webrick_adapter.rb +45 -0
- data/yard-0.9.44/lib/yard/server.rb +13 -0
- data/yard-0.9.44/lib/yard/tags/default_factory.rb +192 -0
- data/yard-0.9.44/lib/yard/tags/default_tag.rb +13 -0
- data/yard-0.9.44/lib/yard/tags/directives.rb +631 -0
- data/yard-0.9.44/lib/yard/tags/library.rb +633 -0
- data/yard-0.9.44/lib/yard/tags/option_tag.rb +13 -0
- data/yard-0.9.44/lib/yard/tags/overload_tag.rb +72 -0
- data/yard-0.9.44/lib/yard/tags/ref_tag.rb +8 -0
- data/yard-0.9.44/lib/yard/tags/ref_tag_list.rb +28 -0
- data/yard-0.9.44/lib/yard/tags/tag.rb +72 -0
- data/yard-0.9.44/lib/yard/tags/tag_format_error.rb +7 -0
- data/yard-0.9.44/lib/yard/tags/types_explainer.rb +288 -0
- data/yard-0.9.44/lib/yard/templates/engine.rb +185 -0
- data/yard-0.9.44/lib/yard/templates/erb_cache.rb +23 -0
- data/yard-0.9.44/lib/yard/templates/helpers/base_helper.rb +215 -0
- data/yard-0.9.44/lib/yard/templates/helpers/filter_helper.rb +27 -0
- data/yard-0.9.44/lib/yard/templates/helpers/html_helper.rb +688 -0
- data/yard-0.9.44/lib/yard/templates/helpers/html_syntax_highlight_helper.rb +83 -0
- data/yard-0.9.44/lib/yard/templates/helpers/markup/html_entities.rb +2140 -0
- data/yard-0.9.44/lib/yard/templates/helpers/markup/hybrid_markdown.rb +2131 -0
- data/yard-0.9.44/lib/yard/templates/helpers/markup/rdoc_markdown.rb +23 -0
- data/yard-0.9.44/lib/yard/templates/helpers/markup/rdoc_markup.rb +112 -0
- data/yard-0.9.44/lib/yard/templates/helpers/markup_helper.rb +175 -0
- data/yard-0.9.44/lib/yard/templates/helpers/method_helper.rb +77 -0
- data/yard-0.9.44/lib/yard/templates/helpers/module_helper.rb +21 -0
- data/yard-0.9.44/lib/yard/templates/helpers/text_helper.rb +112 -0
- data/yard-0.9.44/lib/yard/templates/helpers/uml_helper.rb +47 -0
- data/yard-0.9.44/lib/yard/templates/section.rb +103 -0
- data/yard-0.9.44/lib/yard/templates/template.rb +420 -0
- data/yard-0.9.44/lib/yard/templates/template_options.rb +91 -0
- data/yard-0.9.44/lib/yard/verifier.rb +151 -0
- data/yard-0.9.44/lib/yard/version.rb +6 -0
- data/yard-0.9.44/lib/yard.rb +75 -0
- data/yard-0.9.44/po/ja.po +31108 -0
- data/yard-0.9.44/templates/default/class/dot/setup.rb +7 -0
- data/yard-0.9.44/templates/default/class/dot/superklass.erb +3 -0
- data/yard-0.9.44/templates/default/class/html/constructor_details.erb +8 -0
- data/yard-0.9.44/templates/default/class/html/setup.rb +2 -0
- data/yard-0.9.44/templates/default/class/html/subclasses.erb +4 -0
- data/yard-0.9.44/templates/default/class/setup.rb +36 -0
- data/yard-0.9.44/templates/default/class/text/setup.rb +12 -0
- data/yard-0.9.44/templates/default/class/text/subclasses.erb +5 -0
- data/yard-0.9.44/templates/default/constant/text/header.erb +11 -0
- data/yard-0.9.44/templates/default/constant/text/setup.rb +4 -0
- data/yard-0.9.44/templates/default/docstring/html/abstract.erb +4 -0
- data/yard-0.9.44/templates/default/docstring/html/deprecated.erb +1 -0
- data/yard-0.9.44/templates/default/docstring/html/index.erb +5 -0
- data/yard-0.9.44/templates/default/docstring/html/note.erb +6 -0
- data/yard-0.9.44/templates/default/docstring/html/private.erb +4 -0
- data/yard-0.9.44/templates/default/docstring/html/returns_void.erb +1 -0
- data/yard-0.9.44/templates/default/docstring/html/text.erb +1 -0
- data/yard-0.9.44/templates/default/docstring/html/todo.erb +6 -0
- data/yard-0.9.44/templates/default/docstring/setup.rb +52 -0
- data/yard-0.9.44/templates/default/docstring/text/abstract.erb +2 -0
- data/yard-0.9.44/templates/default/docstring/text/deprecated.erb +2 -0
- data/yard-0.9.44/templates/default/docstring/text/index.erb +2 -0
- data/yard-0.9.44/templates/default/docstring/text/note.erb +4 -0
- data/yard-0.9.44/templates/default/docstring/text/private.erb +2 -0
- data/yard-0.9.44/templates/default/docstring/text/returns_void.erb +1 -0
- data/yard-0.9.44/templates/default/docstring/text/text.erb +1 -0
- data/yard-0.9.44/templates/default/docstring/text/todo.erb +4 -0
- data/yard-0.9.44/templates/default/fulldoc/html/css/common.css +1 -0
- data/yard-0.9.44/templates/default/fulldoc/html/css/full_list.css +206 -0
- data/yard-0.9.44/templates/default/fulldoc/html/css/style.css +1089 -0
- data/yard-0.9.44/templates/default/fulldoc/html/frames.erb +22 -0
- data/yard-0.9.44/templates/default/fulldoc/html/full_list.erb +40 -0
- data/yard-0.9.44/templates/default/fulldoc/html/full_list_class.erb +2 -0
- data/yard-0.9.44/templates/default/fulldoc/html/full_list_file.erb +7 -0
- data/yard-0.9.44/templates/default/fulldoc/html/full_list_method.erb +10 -0
- data/yard-0.9.44/templates/default/fulldoc/html/js/app.js +801 -0
- data/yard-0.9.44/templates/default/fulldoc/html/js/full_list.js +334 -0
- data/yard-0.9.44/templates/default/fulldoc/html/js/jquery.js +4 -0
- data/yard-0.9.44/templates/default/fulldoc/html/setup.rb +249 -0
- data/yard-0.9.44/templates/default/layout/dot/header.erb +6 -0
- data/yard-0.9.44/templates/default/layout/dot/setup.rb +15 -0
- data/yard-0.9.44/templates/default/layout/html/breadcrumb.erb +11 -0
- data/yard-0.9.44/templates/default/layout/html/files.erb +11 -0
- data/yard-0.9.44/templates/default/layout/html/footer.erb +5 -0
- data/yard-0.9.44/templates/default/layout/html/headers.erb +15 -0
- data/yard-0.9.44/templates/default/layout/html/index.erb +2 -0
- data/yard-0.9.44/templates/default/layout/html/layout.erb +26 -0
- data/yard-0.9.44/templates/default/layout/html/listing.erb +4 -0
- data/yard-0.9.44/templates/default/layout/html/objects.erb +32 -0
- data/yard-0.9.44/templates/default/layout/html/script_setup.erb +4 -0
- data/yard-0.9.44/templates/default/layout/html/search.erb +13 -0
- data/yard-0.9.44/templates/default/layout/html/setup.rb +89 -0
- data/yard-0.9.44/templates/default/method/html/header.erb +17 -0
- data/yard-0.9.44/templates/default/method/setup.rb +4 -0
- data/yard-0.9.44/templates/default/method/text/header.erb +1 -0
- data/yard-0.9.44/templates/default/method_details/html/header.erb +3 -0
- data/yard-0.9.44/templates/default/method_details/html/method_signature.erb +25 -0
- data/yard-0.9.44/templates/default/method_details/html/source.erb +10 -0
- data/yard-0.9.44/templates/default/method_details/setup.rb +11 -0
- data/yard-0.9.44/templates/default/method_details/text/header.erb +10 -0
- data/yard-0.9.44/templates/default/method_details/text/method_signature.erb +12 -0
- data/yard-0.9.44/templates/default/method_details/text/setup.rb +11 -0
- data/yard-0.9.44/templates/default/module/dot/child.erb +1 -0
- data/yard-0.9.44/templates/default/module/dot/dependencies.erb +3 -0
- data/yard-0.9.44/templates/default/module/dot/header.erb +6 -0
- data/yard-0.9.44/templates/default/module/dot/info.erb +14 -0
- data/yard-0.9.44/templates/default/module/dot/setup.rb +15 -0
- data/yard-0.9.44/templates/default/module/html/attribute_details.erb +10 -0
- data/yard-0.9.44/templates/default/module/html/attribute_summary.erb +8 -0
- data/yard-0.9.44/templates/default/module/html/box_info.erb +43 -0
- data/yard-0.9.44/templates/default/module/html/children.erb +8 -0
- data/yard-0.9.44/templates/default/module/html/constant_summary.erb +17 -0
- data/yard-0.9.44/templates/default/module/html/defines.erb +3 -0
- data/yard-0.9.44/templates/default/module/html/header.erb +5 -0
- data/yard-0.9.44/templates/default/module/html/inherited_attributes.erb +14 -0
- data/yard-0.9.44/templates/default/module/html/inherited_constants.erb +8 -0
- data/yard-0.9.44/templates/default/module/html/inherited_methods.erb +20 -0
- data/yard-0.9.44/templates/default/module/html/item_summary.erb +40 -0
- data/yard-0.9.44/templates/default/module/html/method_details_list.erb +9 -0
- data/yard-0.9.44/templates/default/module/html/method_summary.erb +22 -0
- data/yard-0.9.44/templates/default/module/html/methodmissing.erb +12 -0
- data/yard-0.9.44/templates/default/module/html/pre_docstring.erb +1 -0
- data/yard-0.9.44/templates/default/module/setup.rb +187 -0
- data/yard-0.9.44/templates/default/module/text/children.erb +10 -0
- data/yard-0.9.44/templates/default/module/text/class_meths_list.erb +8 -0
- data/yard-0.9.44/templates/default/module/text/extends.erb +8 -0
- data/yard-0.9.44/templates/default/module/text/header.erb +7 -0
- data/yard-0.9.44/templates/default/module/text/includes.erb +8 -0
- data/yard-0.9.44/templates/default/module/text/instance_meths_list.erb +8 -0
- data/yard-0.9.44/templates/default/module/text/setup.rb +13 -0
- data/yard-0.9.44/templates/default/onefile/html/files.erb +5 -0
- data/yard-0.9.44/templates/default/onefile/html/headers.erb +8 -0
- data/yard-0.9.44/templates/default/onefile/html/layout.erb +16 -0
- data/yard-0.9.44/templates/default/onefile/html/readme.erb +3 -0
- data/yard-0.9.44/templates/default/onefile/html/setup.rb +62 -0
- data/yard-0.9.44/templates/default/root/dot/child.erb +3 -0
- data/yard-0.9.44/templates/default/root/dot/setup.rb +6 -0
- data/yard-0.9.44/templates/default/root/html/setup.rb +2 -0
- data/yard-0.9.44/templates/default/tags/html/example.erb +11 -0
- data/yard-0.9.44/templates/default/tags/html/index.erb +3 -0
- data/yard-0.9.44/templates/default/tags/html/option.erb +24 -0
- data/yard-0.9.44/templates/default/tags/html/overload.erb +14 -0
- data/yard-0.9.44/templates/default/tags/html/see.erb +8 -0
- data/yard-0.9.44/templates/default/tags/html/tag.erb +20 -0
- data/yard-0.9.44/templates/default/tags/setup.rb +57 -0
- data/yard-0.9.44/templates/default/tags/text/example.erb +12 -0
- data/yard-0.9.44/templates/default/tags/text/index.erb +1 -0
- data/yard-0.9.44/templates/default/tags/text/option.erb +20 -0
- data/yard-0.9.44/templates/default/tags/text/overload.erb +19 -0
- data/yard-0.9.44/templates/default/tags/text/see.erb +11 -0
- data/yard-0.9.44/templates/default/tags/text/tag.erb +13 -0
- data/yard-0.9.44/templates/guide/class/html/setup.rb +2 -0
- data/yard-0.9.44/templates/guide/docstring/html/setup.rb +2 -0
- data/yard-0.9.44/templates/guide/fulldoc/html/css/style.css +358 -0
- data/yard-0.9.44/templates/guide/fulldoc/html/js/app.js +61 -0
- data/yard-0.9.44/templates/guide/fulldoc/html/setup.rb +74 -0
- data/yard-0.9.44/templates/guide/layout/html/layout.erb +78 -0
- data/yard-0.9.44/templates/guide/layout/html/setup.rb +25 -0
- data/yard-0.9.44/templates/guide/method/html/header.erb +18 -0
- data/yard-0.9.44/templates/guide/method/html/setup.rb +22 -0
- data/yard-0.9.44/templates/guide/module/html/header.erb +7 -0
- data/yard-0.9.44/templates/guide/module/html/method_list.erb +5 -0
- data/yard-0.9.44/templates/guide/module/html/setup.rb +27 -0
- data/yard-0.9.44/templates/guide/onefile/html/files.erb +4 -0
- data/yard-0.9.44/templates/guide/onefile/html/setup.rb +6 -0
- data/yard-0.9.44/templates/guide/onefile/html/toc.erb +3 -0
- data/yard-0.9.44/templates/guide/tags/html/setup.rb +9 -0
- metadata +419 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<% if object.has_tag?(:option) && object.respond_to?(:parameters) %>
|
|
2
|
+
<% object.parameters.each do |param, default| %>
|
|
3
|
+
<% tags = object.tags(:option).select {|x| x.name.to_s == param.to_s.sub(/^\*+|:$/, '') } %>
|
|
4
|
+
<% next if tags.empty? %>
|
|
5
|
+
<p class="tag_title">Options Hash (<tt><%= param %></tt>):</p>
|
|
6
|
+
<ul class="option">
|
|
7
|
+
<% for tag in tags %>
|
|
8
|
+
<li>
|
|
9
|
+
<span class="name"><%= tag.pair.name %></span>
|
|
10
|
+
<span class="type"><%= format_types(tag.pair.types || ['Object']) %></span>
|
|
11
|
+
<span class="default">
|
|
12
|
+
<% if tag.pair.defaults %>
|
|
13
|
+
— default:
|
|
14
|
+
<%= tag.pair.defaults.map {|t| "<tt>#{h t}</tt>" }.join(", ") %>
|
|
15
|
+
<% end %>
|
|
16
|
+
</span>
|
|
17
|
+
<% if tag.pair.text && tag.pair.text =~ /\S/ %>
|
|
18
|
+
— <%= htmlify_line(tag.pair.text) %>
|
|
19
|
+
<% end %>
|
|
20
|
+
</li>
|
|
21
|
+
<% end %>
|
|
22
|
+
</ul>
|
|
23
|
+
<% end %>
|
|
24
|
+
<% end %>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<% if object.tags(:overload).size == 1 %>
|
|
2
|
+
<%= yieldall :object => object.tag(:overload) %>
|
|
3
|
+
<% elsif object.has_tag?(:overload) && object.tags(:overload).any? {|o| !o.docstring.blank? } %>
|
|
4
|
+
<p class="tag_title">Overloads:</p>
|
|
5
|
+
<ul class="overload">
|
|
6
|
+
<% object.tags(:overload).each do |overload| %>
|
|
7
|
+
<% next if overload.docstring.blank? %>
|
|
8
|
+
<li class="overload_item">
|
|
9
|
+
<span class="signature"><%= signature(overload, false, false) %></span>
|
|
10
|
+
<%= yieldall :object => overload %>
|
|
11
|
+
</li>
|
|
12
|
+
<% end %>
|
|
13
|
+
</ul>
|
|
14
|
+
<% end %>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<p class="tag_title"><%= (defined?(@label) && @label) ? @label : YARD::Tags::Library.labels[@name] %>:</p>
|
|
2
|
+
<ul class="<%= @name %>">
|
|
3
|
+
<% object.tags(@name).each do |tag| %>
|
|
4
|
+
<li>
|
|
5
|
+
<% unless @no_names %>
|
|
6
|
+
<span class='name'><%= h tag.name %></span>
|
|
7
|
+
<% end %>
|
|
8
|
+
<% unless @no_types %>
|
|
9
|
+
<span class='type'><%= format_types(tag.types) %></span>
|
|
10
|
+
<% end %>
|
|
11
|
+
<% if @name == :param && (o=object.parameters.find {|a| [tag.name.to_s, tag.name.to_s + ":"].include?(a[0]) }) && o[1] %>
|
|
12
|
+
<em class="default">(defaults to: <tt><%= h o[1] %></tt>)</em>
|
|
13
|
+
<% end %>
|
|
14
|
+
<% if tag.text && !tag.text.empty? %>
|
|
15
|
+
<% unless (@no_types || tag.types.nil? || tag.types.empty?) && @no_names %>—<% end %>
|
|
16
|
+
<%= htmlify_line(tag.text) %>
|
|
17
|
+
<% end %>
|
|
18
|
+
</li>
|
|
19
|
+
<% end %>
|
|
20
|
+
</ul>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
def init
|
|
3
|
+
tags = Tags::Library.visible_tags - [:abstract, :deprecated, :note, :todo]
|
|
4
|
+
create_tag_methods(tags - [:example, :option, :overload, :see])
|
|
5
|
+
sections :index, tags.map {|t| t.to_s.tr('.', '_').to_sym }
|
|
6
|
+
sections.any(:overload).push(T('docstring'))
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
def return
|
|
10
|
+
if object.type == :method
|
|
11
|
+
return if object.constructor?
|
|
12
|
+
return if object.tags(:return).size == 1 && object.tag(:return).types == ['void']
|
|
13
|
+
end
|
|
14
|
+
tag(:return)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
def param
|
|
18
|
+
tag(:param) if object.type == :method
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
private
|
|
22
|
+
|
|
23
|
+
def tag(name, opts = nil)
|
|
24
|
+
return unless object.has_tag?(name)
|
|
25
|
+
opts ||= options_for_tag(name)
|
|
26
|
+
@no_names = opts[:no_names] ? true : false
|
|
27
|
+
@no_types = opts[:no_types] ? true : false
|
|
28
|
+
@name = name
|
|
29
|
+
out = erb('tag')
|
|
30
|
+
@no_names = nil
|
|
31
|
+
@no_types = nil
|
|
32
|
+
out
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
def create_tag_methods(tags)
|
|
36
|
+
tags.each do |tag|
|
|
37
|
+
tag_meth = tag.to_s.tr('.', '_')
|
|
38
|
+
next if respond_to?(tag_meth)
|
|
39
|
+
instance_eval(<<-eof, __FILE__, __LINE__ + 1)
|
|
40
|
+
def #{tag_meth}; tag(#{tag.inspect}) end
|
|
41
|
+
eof
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
def options_for_tag(tag)
|
|
46
|
+
opts = {:no_types => true, :no_names => true}
|
|
47
|
+
case Tags::Library.factory_method_for(tag)
|
|
48
|
+
when :with_types
|
|
49
|
+
opts[:no_types] = false
|
|
50
|
+
when :with_types_and_name
|
|
51
|
+
opts[:no_types] = false
|
|
52
|
+
opts[:no_names] = false
|
|
53
|
+
when :with_name
|
|
54
|
+
opts[:no_names] = false
|
|
55
|
+
end
|
|
56
|
+
opts
|
|
57
|
+
end
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<% if object.has_tag?(:example) %>
|
|
2
|
+
|
|
3
|
+
Examples:
|
|
4
|
+
---------
|
|
5
|
+
|
|
6
|
+
<% object.tags(:example).each_with_index do |tag, i| %>
|
|
7
|
+
<%= indent("# " + tag.name + "\n") if tag.name %>
|
|
8
|
+
<%= indent(format_source(tag.text)) + "\n" %>
|
|
9
|
+
<%= "\n" if i < object.tags(:example).size - 1 %>
|
|
10
|
+
<% end %>
|
|
11
|
+
<% end %>
|
|
12
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<%= yieldall %>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<% if object.has_tag?(:option) %>
|
|
2
|
+
<% object.parameters.each do |param, default| %>
|
|
3
|
+
<% tags = object.tags(:option).select {|x| x.name.to_s == param.to_s.sub(/^\*+|:$/, '') } %>
|
|
4
|
+
<% next if tags.empty? %>
|
|
5
|
+
Options Hash (<%= param %>):
|
|
6
|
+
--------------<%= hr(param.to_s.length) %>--
|
|
7
|
+
|
|
8
|
+
<% for tag in tags %>
|
|
9
|
+
<% text = "" %>
|
|
10
|
+
<% text += format_types(tag.pair.types || ['Object']) %>
|
|
11
|
+
<% text += " " + tag.pair.name.to_s %>
|
|
12
|
+
<% if tag.pair.defaults %>
|
|
13
|
+
<% text += " - default: " + tag.pair.defaults.join(", ") %>
|
|
14
|
+
<% end %>
|
|
15
|
+
<% text += " - " + tag.pair.text if tag.pair.text %>
|
|
16
|
+
<%= indent(wrap(text)) %>
|
|
17
|
+
|
|
18
|
+
<% end %>
|
|
19
|
+
<% end %>
|
|
20
|
+
<% end %>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<% if object.tags(:overload).size == 1 %>
|
|
2
|
+
<%= wrap(yieldall(:object => object.tag(:overload))) %>
|
|
3
|
+
<% elsif object.has_tag?(:overload) %>
|
|
4
|
+
Overloads:
|
|
5
|
+
----------
|
|
6
|
+
|
|
7
|
+
<% object.tags(:overload).each do |overload| %>
|
|
8
|
+
<% if overload.tags.size > 0 %>
|
|
9
|
+
<%= hr %>
|
|
10
|
+
|
|
11
|
+
<%= indent signature(overload) %>
|
|
12
|
+
|
|
13
|
+
<%= hr %>
|
|
14
|
+
|
|
15
|
+
<%= indent(wrap(yieldall(:object => overload))) %>
|
|
16
|
+
|
|
17
|
+
<% end %>
|
|
18
|
+
<% end %>
|
|
19
|
+
<% end %>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<% title = (defined?(@label) && @label) ? @label : YARD::Tags::Library.labels[@name] %>
|
|
2
|
+
<%= title %>:
|
|
3
|
+
<%= hr(title.length) %>-
|
|
4
|
+
|
|
5
|
+
<% object.tags(@name).each do |tag| %>
|
|
6
|
+
<% text = "" %>
|
|
7
|
+
<% text += format_types(tag.types) + " " unless @no_types || tag.types.nil? %>
|
|
8
|
+
<% text += tag.name.to_s + " " unless @no_names %>
|
|
9
|
+
<% text += "- " unless @no_names && @no_types %>
|
|
10
|
+
<% text += tag.text if tag.text && !tag.text.empty? %>
|
|
11
|
+
<%= indent wrap(text) %>
|
|
12
|
+
|
|
13
|
+
<% end %>
|
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
body {
|
|
2
|
+
color: #3e4349;
|
|
3
|
+
font-family: Georgia, serif;
|
|
4
|
+
font-size: 17px;
|
|
5
|
+
margin: 0;
|
|
6
|
+
}
|
|
7
|
+
h1,
|
|
8
|
+
h2,
|
|
9
|
+
h3,
|
|
10
|
+
h4,
|
|
11
|
+
h5,
|
|
12
|
+
h6 {
|
|
13
|
+
font-weight: normal;
|
|
14
|
+
color: #000;
|
|
15
|
+
font-family: Georgia, serif;
|
|
16
|
+
}
|
|
17
|
+
h1 {
|
|
18
|
+
color: #040;
|
|
19
|
+
}
|
|
20
|
+
h2 {
|
|
21
|
+
color: #060;
|
|
22
|
+
}
|
|
23
|
+
h3 {
|
|
24
|
+
color: #070;
|
|
25
|
+
}
|
|
26
|
+
h4 {
|
|
27
|
+
color: #080;
|
|
28
|
+
}
|
|
29
|
+
h5 {
|
|
30
|
+
color: #090;
|
|
31
|
+
}
|
|
32
|
+
#sidebar h2 {
|
|
33
|
+
color: #2f2;
|
|
34
|
+
}
|
|
35
|
+
strong {
|
|
36
|
+
color: #000;
|
|
37
|
+
}
|
|
38
|
+
.object_link,
|
|
39
|
+
tt,
|
|
40
|
+
code {
|
|
41
|
+
font-family: "Consolas", "BitStream Vera Sans Mono", monospace;
|
|
42
|
+
font-size: 14px;
|
|
43
|
+
}
|
|
44
|
+
.method_header .path,
|
|
45
|
+
.module_header .path {
|
|
46
|
+
font-family: "Consolas", "BitStream Vera Sans Mono", monospace;
|
|
47
|
+
}
|
|
48
|
+
.method_header .path.space,
|
|
49
|
+
.module_header .path.space {
|
|
50
|
+
padding-left: 5px;
|
|
51
|
+
}
|
|
52
|
+
.method_header {
|
|
53
|
+
font-size: 0.95em;
|
|
54
|
+
}
|
|
55
|
+
.method_body {
|
|
56
|
+
margin-left: 2em;
|
|
57
|
+
}
|
|
58
|
+
.tags h3,
|
|
59
|
+
.tags h4 {
|
|
60
|
+
font-size: 0.9em;
|
|
61
|
+
font-weight: bold;
|
|
62
|
+
color: #3e4349;
|
|
63
|
+
}
|
|
64
|
+
.tags .param .name {
|
|
65
|
+
font-style: italic;
|
|
66
|
+
}
|
|
67
|
+
.tags .option .name {
|
|
68
|
+
font-family: monospace;
|
|
69
|
+
color: #000;
|
|
70
|
+
font-size: 0.8em;
|
|
71
|
+
}
|
|
72
|
+
.tags .option .type,
|
|
73
|
+
.tags .param .type {
|
|
74
|
+
font-size: 10px;
|
|
75
|
+
vertical-align: super;
|
|
76
|
+
}
|
|
77
|
+
.tags .option .type tt,
|
|
78
|
+
.tags .param .type tt,
|
|
79
|
+
.tags .option .type tt .object_link,
|
|
80
|
+
.tags .param .type tt .object_link {
|
|
81
|
+
font-size: 10px;
|
|
82
|
+
}
|
|
83
|
+
.module_methods {
|
|
84
|
+
margin-left: 2em;
|
|
85
|
+
}
|
|
86
|
+
.method_header .since,
|
|
87
|
+
.module_header .since {
|
|
88
|
+
font-size: 0.75em;
|
|
89
|
+
color: #888;
|
|
90
|
+
vertical-align: super;
|
|
91
|
+
}
|
|
92
|
+
ul {
|
|
93
|
+
list-style: square;
|
|
94
|
+
}
|
|
95
|
+
.inline {
|
|
96
|
+
display: inline;
|
|
97
|
+
}
|
|
98
|
+
.inline p:first-child {
|
|
99
|
+
display: inline;
|
|
100
|
+
}
|
|
101
|
+
.inline p {
|
|
102
|
+
font-family: Georgia, serif;
|
|
103
|
+
font-size: 16px;
|
|
104
|
+
color: #3e4349;
|
|
105
|
+
}
|
|
106
|
+
.docstring table,
|
|
107
|
+
#filecontents table {
|
|
108
|
+
border-collapse: collapse;
|
|
109
|
+
}
|
|
110
|
+
.docstring table th,
|
|
111
|
+
.docstring table td,
|
|
112
|
+
#filecontents table th,
|
|
113
|
+
#filecontents table td {
|
|
114
|
+
border: 1px solid #ccc;
|
|
115
|
+
padding: 8px;
|
|
116
|
+
padding-right: 17px;
|
|
117
|
+
}
|
|
118
|
+
.docstring table tr:nth-child(odd),
|
|
119
|
+
#filecontents table tr:nth-child(odd) {
|
|
120
|
+
background: #eee;
|
|
121
|
+
}
|
|
122
|
+
.docstring table tr:nth-child(even),
|
|
123
|
+
#filecontents table tr:nth-child(even) {
|
|
124
|
+
background: #fff;
|
|
125
|
+
}
|
|
126
|
+
.docstring table th,
|
|
127
|
+
#filecontents table th {
|
|
128
|
+
background: #fff;
|
|
129
|
+
}
|
|
130
|
+
.docstring .note {
|
|
131
|
+
margin: 1em 0;
|
|
132
|
+
}
|
|
133
|
+
.docstring h1,
|
|
134
|
+
.docstring h2,
|
|
135
|
+
.docstring h3,
|
|
136
|
+
.docstring h4 {
|
|
137
|
+
padding: 0;
|
|
138
|
+
border: 0;
|
|
139
|
+
border-bottom: 1px dotted #bbb;
|
|
140
|
+
}
|
|
141
|
+
.docstring h1 {
|
|
142
|
+
font-size: 1.2em;
|
|
143
|
+
}
|
|
144
|
+
.docstring h2 {
|
|
145
|
+
font-size: 1.1em;
|
|
146
|
+
}
|
|
147
|
+
.docstring h3 {
|
|
148
|
+
font-size: 1.1em;
|
|
149
|
+
}
|
|
150
|
+
.docstring h4 {
|
|
151
|
+
font-size: 1em;
|
|
152
|
+
font-weight: bold;
|
|
153
|
+
}
|
|
154
|
+
.docstring h5 {
|
|
155
|
+
font-size: 1em;
|
|
156
|
+
font-weight: bold;
|
|
157
|
+
}
|
|
158
|
+
.docstring h6 {
|
|
159
|
+
font-size: 1em;
|
|
160
|
+
font-weight: bold;
|
|
161
|
+
}
|
|
162
|
+
#filecontents strong {
|
|
163
|
+
font-weight: normal;
|
|
164
|
+
color: #000;
|
|
165
|
+
}
|
|
166
|
+
.readonly {
|
|
167
|
+
font-size: 0.75em;
|
|
168
|
+
color: #888;
|
|
169
|
+
vertical-align: super;
|
|
170
|
+
}
|
|
171
|
+
.rdoc-term {
|
|
172
|
+
padding-right: 25px;
|
|
173
|
+
font-weight: bold;
|
|
174
|
+
}
|
|
175
|
+
.rdoc-list p {
|
|
176
|
+
margin: 0;
|
|
177
|
+
padding: 0;
|
|
178
|
+
margin-bottom: 4px;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
#page {
|
|
182
|
+
width: 940px;
|
|
183
|
+
margin: 0px auto;
|
|
184
|
+
}
|
|
185
|
+
a {
|
|
186
|
+
color: #268;
|
|
187
|
+
text-decoration: none;
|
|
188
|
+
}
|
|
189
|
+
a:hover {
|
|
190
|
+
color: #6ae;
|
|
191
|
+
}
|
|
192
|
+
#top_nav {
|
|
193
|
+
background: #7d0;
|
|
194
|
+
padding: 8px 12px;
|
|
195
|
+
}
|
|
196
|
+
#inner_nav {
|
|
197
|
+
width: 940px;
|
|
198
|
+
margin: 0px auto;
|
|
199
|
+
}
|
|
200
|
+
#inner_nav a {
|
|
201
|
+
border: 0;
|
|
202
|
+
text-decoration: none;
|
|
203
|
+
color: #777;
|
|
204
|
+
}
|
|
205
|
+
#inner_nav a:hover {
|
|
206
|
+
color: #222;
|
|
207
|
+
}
|
|
208
|
+
#top_nav .links {
|
|
209
|
+
display: block;
|
|
210
|
+
float: right;
|
|
211
|
+
}
|
|
212
|
+
#content {
|
|
213
|
+
margin-left: 30px;
|
|
214
|
+
width: 660px;
|
|
215
|
+
float: left;
|
|
216
|
+
}
|
|
217
|
+
#sidebar {
|
|
218
|
+
float: left;
|
|
219
|
+
width: 200px;
|
|
220
|
+
padding: 18px 10px;
|
|
221
|
+
padding-top: 0;
|
|
222
|
+
}
|
|
223
|
+
#sidebar h2 {
|
|
224
|
+
font-weight: 100;
|
|
225
|
+
color: #3e4349;
|
|
226
|
+
font-size: 1.45em;
|
|
227
|
+
}
|
|
228
|
+
#sidebar ol {
|
|
229
|
+
padding-left: 16px;
|
|
230
|
+
margin-left: 0;
|
|
231
|
+
list-style: square;
|
|
232
|
+
}
|
|
233
|
+
#sidebar a {
|
|
234
|
+
color: #468;
|
|
235
|
+
text-decoration: none;
|
|
236
|
+
}
|
|
237
|
+
#sidebar a:hover {
|
|
238
|
+
color: #000;
|
|
239
|
+
background: #8e0;
|
|
240
|
+
padding: 4px;
|
|
241
|
+
}
|
|
242
|
+
#sidebar ol.top {
|
|
243
|
+
padding-left: 0;
|
|
244
|
+
margin-left: 0;
|
|
245
|
+
list-style: none;
|
|
246
|
+
}
|
|
247
|
+
#sidebar a {
|
|
248
|
+
font-size: 0.9em;
|
|
249
|
+
}
|
|
250
|
+
#footer {
|
|
251
|
+
margin: 0 auto;
|
|
252
|
+
width: 940px;
|
|
253
|
+
text-align: center;
|
|
254
|
+
margin-top: 30px;
|
|
255
|
+
padding: 20px 0;
|
|
256
|
+
color: #888;
|
|
257
|
+
font-size: 0.8em;
|
|
258
|
+
border-top: 1px dotted #bbb;
|
|
259
|
+
}
|
|
260
|
+
#footer a {
|
|
261
|
+
color: #444;
|
|
262
|
+
}
|
|
263
|
+
/* syntax highlighting */
|
|
264
|
+
.source_code {
|
|
265
|
+
display: none;
|
|
266
|
+
padding: 3px 8px;
|
|
267
|
+
border-left: 8px solid #ddd;
|
|
268
|
+
margin-top: 5px;
|
|
269
|
+
}
|
|
270
|
+
pre.code {
|
|
271
|
+
color: #3e4349;
|
|
272
|
+
}
|
|
273
|
+
pre.code a {
|
|
274
|
+
border-bottom: 1px dotted #bbf;
|
|
275
|
+
}
|
|
276
|
+
.docstring pre.code,
|
|
277
|
+
#filecontents pre.code,
|
|
278
|
+
.source_code pre {
|
|
279
|
+
font-family: monospace;
|
|
280
|
+
}
|
|
281
|
+
.docstring pre.code,
|
|
282
|
+
#filecontents pre.code {
|
|
283
|
+
display: block;
|
|
284
|
+
}
|
|
285
|
+
.source_code .lines {
|
|
286
|
+
padding-right: 12px;
|
|
287
|
+
color: #555;
|
|
288
|
+
text-align: right;
|
|
289
|
+
}
|
|
290
|
+
.docstring pre.code,
|
|
291
|
+
#filecontents pre.code,
|
|
292
|
+
.tags pre.example {
|
|
293
|
+
font-size: 0.9em;
|
|
294
|
+
padding: 7px 30px;
|
|
295
|
+
margin: 15px -30px;
|
|
296
|
+
margin-left: -30px;
|
|
297
|
+
background: #eee;
|
|
298
|
+
line-height: 1.3em;
|
|
299
|
+
font-family: "Consolas", "BitStream Vera Sans Mono", monospace;
|
|
300
|
+
}
|
|
301
|
+
pre.code .info.file {
|
|
302
|
+
color: #555;
|
|
303
|
+
}
|
|
304
|
+
pre.code .val {
|
|
305
|
+
color: #036a07;
|
|
306
|
+
}
|
|
307
|
+
pre.code .tstring_content,
|
|
308
|
+
pre.code .heredoc_beg,
|
|
309
|
+
pre.code .heredoc_end,
|
|
310
|
+
pre.code .qwords_beg,
|
|
311
|
+
pre.code .qwords_end,
|
|
312
|
+
pre.code .tstring,
|
|
313
|
+
pre.code .dstring {
|
|
314
|
+
color: #036a07;
|
|
315
|
+
}
|
|
316
|
+
pre.code .fid,
|
|
317
|
+
pre.code .rubyid_new,
|
|
318
|
+
pre.code .rubyid_to_s,
|
|
319
|
+
pre.code .rubyid_to_sym,
|
|
320
|
+
pre.code .rubyid_to_f,
|
|
321
|
+
pre.code .dot + pre.code .id,
|
|
322
|
+
pre.code .rubyid_to_i pre.code .rubyid_each {
|
|
323
|
+
color: #0085ff;
|
|
324
|
+
}
|
|
325
|
+
pre.code .comment {
|
|
326
|
+
color: #0066ff;
|
|
327
|
+
}
|
|
328
|
+
pre.code .const,
|
|
329
|
+
pre.code .constant {
|
|
330
|
+
color: #585cf6;
|
|
331
|
+
}
|
|
332
|
+
pre.code .symbol {
|
|
333
|
+
color: #c5060b;
|
|
334
|
+
}
|
|
335
|
+
pre.code .kw,
|
|
336
|
+
pre.code .label,
|
|
337
|
+
pre.code .rubyid_require,
|
|
338
|
+
pre.code .rubyid_extend,
|
|
339
|
+
pre.code .rubyid_include {
|
|
340
|
+
color: #0000ff;
|
|
341
|
+
}
|
|
342
|
+
pre.code .ivar {
|
|
343
|
+
color: #318495;
|
|
344
|
+
}
|
|
345
|
+
pre.code .gvar,
|
|
346
|
+
pre.code .rubyid_backref,
|
|
347
|
+
pre.code .rubyid_nth_ref {
|
|
348
|
+
color: #6d79de;
|
|
349
|
+
}
|
|
350
|
+
pre.code .regexp,
|
|
351
|
+
.dregexp {
|
|
352
|
+
color: #036a07;
|
|
353
|
+
}
|
|
354
|
+
#links strong {
|
|
355
|
+
font-size: 0.95em;
|
|
356
|
+
font-weight: normal;
|
|
357
|
+
color: #000;
|
|
358
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
window.generateTOC = () => {
|
|
2
|
+
const fileContents = document.getElementById("filecontents");
|
|
3
|
+
const tocRoot = document.getElementById("toc");
|
|
4
|
+
const topLevel = document.createElement("ol");
|
|
5
|
+
let currentList = topLevel;
|
|
6
|
+
let lastLevel = 1;
|
|
7
|
+
let currentItem = null;
|
|
8
|
+
let counter = 0;
|
|
9
|
+
let hasEntries = false;
|
|
10
|
+
|
|
11
|
+
if (!fileContents || !tocRoot) return;
|
|
12
|
+
|
|
13
|
+
topLevel.className = "top";
|
|
14
|
+
const headings = fileContents.querySelectorAll(
|
|
15
|
+
":scope > h1, :scope > h2, :scope > h3, :scope > h4, :scope > h5, :scope > h6",
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
Array.prototype.forEach.call(headings, (heading) => {
|
|
19
|
+
let level;
|
|
20
|
+
|
|
21
|
+
if (heading.id === "filecontents") return;
|
|
22
|
+
hasEntries = true;
|
|
23
|
+
level = parseInt(heading.tagName.substring(1), 10);
|
|
24
|
+
|
|
25
|
+
if (!heading.id) {
|
|
26
|
+
let proposedId = heading.textContent.replace(/[^a-z0-9-]/gi, "_");
|
|
27
|
+
if (document.getElementById(proposedId)) proposedId += counter++;
|
|
28
|
+
heading.id = proposedId;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if (level > lastLevel) {
|
|
32
|
+
while (level > lastLevel) {
|
|
33
|
+
if (!currentItem) {
|
|
34
|
+
currentItem = document.createElement("li");
|
|
35
|
+
currentList.appendChild(currentItem);
|
|
36
|
+
}
|
|
37
|
+
const nestedList = document.createElement("ol");
|
|
38
|
+
currentItem.appendChild(nestedList);
|
|
39
|
+
currentList = nestedList;
|
|
40
|
+
currentItem = null;
|
|
41
|
+
lastLevel += 1;
|
|
42
|
+
}
|
|
43
|
+
} else if (level < lastLevel) {
|
|
44
|
+
while (level < lastLevel && currentList.parentElement) {
|
|
45
|
+
currentList = currentList.parentElement.parentElement;
|
|
46
|
+
lastLevel -= 1;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const item = document.createElement("li");
|
|
51
|
+
const link = document.createElement("a");
|
|
52
|
+
link.href = `#${heading.id}`;
|
|
53
|
+
link.textContent = heading.textContent;
|
|
54
|
+
item.appendChild(link);
|
|
55
|
+
currentList.appendChild(item);
|
|
56
|
+
currentItem = item;
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
if (!hasEntries) return;
|
|
60
|
+
tocRoot.appendChild(topLevel);
|
|
61
|
+
};
|