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,249 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
include Helpers::ModuleHelper
|
|
3
|
+
|
|
4
|
+
def init
|
|
5
|
+
options.objects = objects = run_verifier(options.objects)
|
|
6
|
+
|
|
7
|
+
return serialize_onefile if options.onefile
|
|
8
|
+
generate_assets
|
|
9
|
+
serialize('_index.html')
|
|
10
|
+
options.files.each_with_index do |file, _i|
|
|
11
|
+
serialize_file(file, file.title)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
options.delete(:objects)
|
|
15
|
+
options.delete(:files)
|
|
16
|
+
|
|
17
|
+
objects.each do |object|
|
|
18
|
+
begin
|
|
19
|
+
serialize(object)
|
|
20
|
+
rescue => e
|
|
21
|
+
path = options.serializer.serialized_path(object)
|
|
22
|
+
log.error "Exception occurred while generating '#{path}'"
|
|
23
|
+
log.backtrace(e)
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Generate an HTML document for the specified object. This method is used by
|
|
29
|
+
# most of the objects found in the Registry.
|
|
30
|
+
# @param [CodeObject] object to be saved to HTML
|
|
31
|
+
def serialize(object)
|
|
32
|
+
options.object = object
|
|
33
|
+
serialize_index(options) if object == '_index.html' && options.readme.nil?
|
|
34
|
+
Templates::Engine.with_serializer(object, options.serializer) do
|
|
35
|
+
T('layout').run(options)
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Generate the documentation output in one file (--one-file) which will load the
|
|
40
|
+
# contents of all the javascript and css and output the entire contents without
|
|
41
|
+
# depending on any additional files
|
|
42
|
+
def serialize_onefile
|
|
43
|
+
Templates::Engine.with_serializer('index.html', options.serializer) do
|
|
44
|
+
T('onefile').run(options)
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Generate the index document for the output
|
|
49
|
+
# @params [Hash] options contains data and flags that influence the output
|
|
50
|
+
def serialize_index(options)
|
|
51
|
+
Templates::Engine.with_serializer('index.html', options.serializer) do
|
|
52
|
+
T('layout').run(options.merge(:index => true))
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Generate a single HTML file with the layout template applied. This is generally
|
|
57
|
+
# the README file or files specified on the command-line.
|
|
58
|
+
#
|
|
59
|
+
# @param [File] file object to be saved to the output
|
|
60
|
+
# @param [String] title currently unused
|
|
61
|
+
#
|
|
62
|
+
# @see layout#diskfile
|
|
63
|
+
def serialize_file(file, title = nil) # rubocop:disable Lint/UnusedMethodArgument
|
|
64
|
+
options.object = Registry.root
|
|
65
|
+
options.file = file
|
|
66
|
+
outfile = 'file.' + file.name + '.html'
|
|
67
|
+
|
|
68
|
+
serialize_index(options) if file == options.readme
|
|
69
|
+
Templates::Engine.with_serializer(outfile, options.serializer) do
|
|
70
|
+
T('layout').run(options)
|
|
71
|
+
end
|
|
72
|
+
options.delete(:file)
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
#
|
|
76
|
+
# Generates a file to the output with the specified contents.
|
|
77
|
+
#
|
|
78
|
+
# @example saving a custom html file to the documentation root
|
|
79
|
+
#
|
|
80
|
+
# asset('my_custom.html','<html><body>Custom File</body></html>')
|
|
81
|
+
#
|
|
82
|
+
# @param [String] path relative to the document output where the file will be
|
|
83
|
+
# created.
|
|
84
|
+
# @param [String] content the contents that are saved to the file.
|
|
85
|
+
def asset(path, content)
|
|
86
|
+
if options.serializer
|
|
87
|
+
log.capture("Generating asset #{path}") do
|
|
88
|
+
options.serializer.serialize(path, content)
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# @return [Array<String>] Stylesheet files that are additionally loaded for the
|
|
94
|
+
# searchable full lists, e.g., Class List, Method List, File List
|
|
95
|
+
# @since 0.7.0
|
|
96
|
+
def stylesheets_full_list
|
|
97
|
+
%w(css/full_list.css css/common.css)
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# @return [Array<String>] Javascript files that are additionally loaded for the
|
|
101
|
+
# searchable full lists, e.g., Class List, Method List, File List.
|
|
102
|
+
# @since 0.7.0
|
|
103
|
+
def javascripts_full_list
|
|
104
|
+
%w(js/jquery.js js/full_list.js)
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Sets the HTML language lang="value" where value is the value returned from
|
|
108
|
+
# this method. Defaults to nil which does not set the lang attribute.
|
|
109
|
+
def html_lang
|
|
110
|
+
nil
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
def menu_lists
|
|
114
|
+
Object.new.extend(T('layout')).menu_lists
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Generates all the javascript files, stylesheet files, menu lists
|
|
118
|
+
# (i.e. class, method, and file) based on the the values returned from the
|
|
119
|
+
# layout's menu_list method, and the frameset in the documentation output
|
|
120
|
+
#
|
|
121
|
+
def generate_assets
|
|
122
|
+
@object = Registry.root
|
|
123
|
+
|
|
124
|
+
layout = Object.new.extend(T('layout'))
|
|
125
|
+
(layout.javascripts + javascripts_full_list +
|
|
126
|
+
layout.stylesheets + stylesheets_full_list).uniq.each do |file|
|
|
127
|
+
asset(file, file(file, true))
|
|
128
|
+
end
|
|
129
|
+
layout.menu_lists.each do |list|
|
|
130
|
+
list_generator_method = "generate_#{list[:type]}_list"
|
|
131
|
+
if respond_to?(list_generator_method)
|
|
132
|
+
send(list_generator_method)
|
|
133
|
+
else
|
|
134
|
+
log.error "Unable to generate '#{list[:title]}' list because no method " \
|
|
135
|
+
"'#{list_generator_method}' exists"
|
|
136
|
+
end
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
generate_frameset
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# Generate a searchable method list in the output
|
|
143
|
+
# @see ModuleHelper#prune_method_listing
|
|
144
|
+
def generate_method_list
|
|
145
|
+
@items = prune_method_listing(Registry.all(:method), false)
|
|
146
|
+
@items = @items.reject {|m| m.name.to_s =~ /=$/ && m.is_attribute? }
|
|
147
|
+
@items = @items.sort_by {|m| m.name.to_s }
|
|
148
|
+
@list_title = "Method List"
|
|
149
|
+
@list_type = "method"
|
|
150
|
+
generate_list_contents
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Generate a searchable class list in the output
|
|
154
|
+
def generate_class_list
|
|
155
|
+
@items = options.objects if options.objects
|
|
156
|
+
@list_title = "Class List"
|
|
157
|
+
@list_type = "class"
|
|
158
|
+
generate_list_contents
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Generate a searchable file list in the output
|
|
162
|
+
def generate_file_list
|
|
163
|
+
@file_list = true
|
|
164
|
+
@items = options.files
|
|
165
|
+
@list_title = "File List"
|
|
166
|
+
@list_type = "file"
|
|
167
|
+
generate_list_contents
|
|
168
|
+
@file_list = nil
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
def generate_list_contents
|
|
172
|
+
asset(url_for_list(@list_type), erb(:full_list))
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Generate the frame documentation in the output
|
|
176
|
+
def generate_frameset
|
|
177
|
+
@javascripts = javascripts_full_list
|
|
178
|
+
@stylesheets = stylesheets_full_list
|
|
179
|
+
asset(url_for_frameset, erb(:frames))
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# @api private
|
|
183
|
+
class TreeContext
|
|
184
|
+
def initialize
|
|
185
|
+
@depth = 0
|
|
186
|
+
@even_odd = Alternator.new(:even, :odd)
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
def nest
|
|
190
|
+
@depth += 1
|
|
191
|
+
yield
|
|
192
|
+
@depth -= 1
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
# @return [String] Returns a css pixel offset, e.g. "30px"
|
|
196
|
+
def indent
|
|
197
|
+
"#{(@depth + 2) * 15}px"
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
def classes
|
|
201
|
+
classes = []
|
|
202
|
+
classes << 'collapsed' if @depth > 0
|
|
203
|
+
classes << @even_odd.next if @depth < 2
|
|
204
|
+
classes
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
class Alternator
|
|
208
|
+
def initialize(first, second)
|
|
209
|
+
@next = first
|
|
210
|
+
@after = second
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
def next
|
|
214
|
+
@next, @after = @after, @next
|
|
215
|
+
@after
|
|
216
|
+
end
|
|
217
|
+
end
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# @return [String] HTML output of the classes to be displayed in the
|
|
221
|
+
# full_list_class template.
|
|
222
|
+
def class_list(root = Registry.root, tree = TreeContext.new)
|
|
223
|
+
out = String.new("")
|
|
224
|
+
children = run_verifier(root.children)
|
|
225
|
+
if root == Registry.root
|
|
226
|
+
children += @items.select {|o| o.namespace.is_a?(CodeObjects::Proxy) }
|
|
227
|
+
end
|
|
228
|
+
children.compact.sort_by(&:path).each do |child|
|
|
229
|
+
next unless child.is_a?(CodeObjects::NamespaceObject)
|
|
230
|
+
name = child.namespace.is_a?(CodeObjects::Proxy) ? child.path : child.name
|
|
231
|
+
has_children = run_verifier(child.children).any? {|o| o.is_a?(CodeObjects::NamespaceObject) }
|
|
232
|
+
out << "<li id='object_#{child.path}' class='#{tree.classes.join(' ')}'>"
|
|
233
|
+
out << "<div class='item' style='padding-left:#{tree.indent}'>"
|
|
234
|
+
accessible_props = "aria-label='#{name} child nodes' aria-expanded='false' aria-controls='object_#{child.path}'"
|
|
235
|
+
out << "<a tabindex='0' class='toggle' role='button' #{accessible_props}></a> " if has_children
|
|
236
|
+
out << linkify(child, name)
|
|
237
|
+
out << " < #{child.superclass.name}" if child.is_a?(CodeObjects::ClassObject) && child.superclass
|
|
238
|
+
out << "<small class='search_info'>"
|
|
239
|
+
out << child.namespace.title
|
|
240
|
+
out << "</small>"
|
|
241
|
+
out << "</div>"
|
|
242
|
+
tree.nest do
|
|
243
|
+
labeled_by = "aria-labelledby='object_#{child.path}'"
|
|
244
|
+
out << "<div #{labeled_by}><ul>#{class_list(child, tree)}</ul></div>" if has_children
|
|
245
|
+
end
|
|
246
|
+
out << "</li>"
|
|
247
|
+
end
|
|
248
|
+
out
|
|
249
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
attr_reader :contents
|
|
3
|
+
|
|
4
|
+
def init
|
|
5
|
+
if object
|
|
6
|
+
type = object.root? ? :module : object.type
|
|
7
|
+
sections :header, [T(type)]
|
|
8
|
+
else
|
|
9
|
+
sections :header, [:contents]
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
def header
|
|
14
|
+
tidy erb(:header)
|
|
15
|
+
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<div id="menu">
|
|
2
|
+
<% if @contents || @file %>
|
|
3
|
+
<% if object != '_index.html' %><a href="<%= url_for_index %>">Index</a> » <% end %>
|
|
4
|
+
<span class="title"><%= @breadcrumb_title %></span>
|
|
5
|
+
<% elsif object.is_a?(CodeObjects::Base) %>
|
|
6
|
+
<a href="<%= url_for_index %>"><% if object.root? || object.type == :method %>Index<% else %>Index (<%= object.name.to_s[0,1] %>)<% end %></a> »
|
|
7
|
+
<%= @breadcrumb.map {|obj| "<span class='title'>" + linkify(obj, obj.name) + "</span>" }.join(" » ") %>
|
|
8
|
+
<%= @breadcrumb.size > 0 ? " » " : "" %>
|
|
9
|
+
<span class="title"><%= object.root? ? "Top Level Namespace" : object.name(true) %></span>
|
|
10
|
+
<% end %>
|
|
11
|
+
</div>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<% if @files && @files.size > 0 %>
|
|
2
|
+
<h2>File Listing</h2>
|
|
3
|
+
<ul id="files" class="index_inline_list">
|
|
4
|
+
<% n = 1 %>
|
|
5
|
+
<% @files.each_with_index do |file, i| %>
|
|
6
|
+
<li class="r<%= n %>"><%= link_file(file) %></li>
|
|
7
|
+
<% n = n == 2 ? 1 : 2 %>
|
|
8
|
+
<% end %>
|
|
9
|
+
</ul>
|
|
10
|
+
<% end %>
|
|
11
|
+
<div class="clear"></div>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<meta charset="<%= charset %>">
|
|
2
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
3
|
+
<title>
|
|
4
|
+
<%= h @page_title %>
|
|
5
|
+
<% if options.title && @page_title != options.title %>
|
|
6
|
+
— <%= h options.title %>
|
|
7
|
+
<% end %>
|
|
8
|
+
</title>
|
|
9
|
+
<% stylesheets.each do |stylesheet| %>
|
|
10
|
+
<link rel="stylesheet" href="<%= mtime_url(stylesheet) %>" type="text/css">
|
|
11
|
+
<% end %>
|
|
12
|
+
<%= erb :script_setup %>
|
|
13
|
+
<% javascripts.each do |javascript| %>
|
|
14
|
+
<script type="text/javascript" charset="utf-8" src="<%= mtime_url(javascript) %>"></script>
|
|
15
|
+
<% end %>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<%= erb(:headers) %>
|
|
5
|
+
</head>
|
|
6
|
+
<body>
|
|
7
|
+
<div id="main_progress" aria-hidden="true"></div>
|
|
8
|
+
|
|
9
|
+
<div class="nav_wrap">
|
|
10
|
+
<iframe id="nav" src="<%= @nav_url %>?1"></iframe>
|
|
11
|
+
<div id="resizer"></div>
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
<div id="main" tabindex="-1">
|
|
15
|
+
<div id="header">
|
|
16
|
+
<%= erb(:breadcrumb) %>
|
|
17
|
+
<%= erb(:search) %>
|
|
18
|
+
<div class="clear"></div>
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<div id="content"><%= yieldall %></div>
|
|
22
|
+
|
|
23
|
+
<%= erb(:footer) %>
|
|
24
|
+
</div>
|
|
25
|
+
</body>
|
|
26
|
+
</html>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<h2>Namespace Listing A-Z</h2>
|
|
2
|
+
|
|
3
|
+
<% if Registry.root.meths(:included => false).size > 0 %>
|
|
4
|
+
<ul class="toplevel"><li><%= linkify(Registry.root) %></li></ul>
|
|
5
|
+
<% end %>
|
|
6
|
+
|
|
7
|
+
<% i = 0 %>
|
|
8
|
+
<table>
|
|
9
|
+
<tr>
|
|
10
|
+
<td valign='top' width="33%">
|
|
11
|
+
<% @objects_by_letter.sort_by {|l,o| l.to_s }.each do |letter, objects| %>
|
|
12
|
+
<% if (i += 1) % 8 == 0 %>
|
|
13
|
+
</td><td valign='top' width="33%">
|
|
14
|
+
<% i = 0 %>
|
|
15
|
+
<% end %>
|
|
16
|
+
<ul id="alpha_<%= letter %>" class="alpha">
|
|
17
|
+
<li class="letter"><%= letter %></li>
|
|
18
|
+
<ul>
|
|
19
|
+
<% objects.each do |obj| %>
|
|
20
|
+
<li>
|
|
21
|
+
<%= linkify obj, obj.name %>
|
|
22
|
+
<% if !obj.namespace.root? %>
|
|
23
|
+
<small>(<%= obj.namespace.path %>)</small>
|
|
24
|
+
<% end %>
|
|
25
|
+
</li>
|
|
26
|
+
<% end %>
|
|
27
|
+
</ul>
|
|
28
|
+
</ul>
|
|
29
|
+
<% end %>
|
|
30
|
+
</td>
|
|
31
|
+
</tr>
|
|
32
|
+
</table>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<div id="search">
|
|
2
|
+
<% [menu_lists.first].each do |field| %>
|
|
3
|
+
<a class="full_list_link" id="<%= field[:type] %>_list_link"
|
|
4
|
+
href="<%= url_for_list(field[:type]) %>">
|
|
5
|
+
|
|
6
|
+
<svg width="24" height="24">
|
|
7
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
|
8
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
|
9
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
|
10
|
+
</svg>
|
|
11
|
+
</a>
|
|
12
|
+
<% end %>
|
|
13
|
+
</div>
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
def init
|
|
3
|
+
@breadcrumb = []
|
|
4
|
+
@page_title = ''
|
|
5
|
+
@breadcrumb_title = ''
|
|
6
|
+
if @onefile
|
|
7
|
+
sections :layout
|
|
8
|
+
elsif defined?(@file) && @file
|
|
9
|
+
if @file.attributes[:namespace]
|
|
10
|
+
@object = options.object = Registry.at(@file.attributes[:namespace]) || Registry.root
|
|
11
|
+
end
|
|
12
|
+
@breadcrumb_title = "File: " + @file.title
|
|
13
|
+
@page_title = @breadcrumb_title
|
|
14
|
+
sections :layout, [:diskfile]
|
|
15
|
+
elsif @contents
|
|
16
|
+
sections :layout, [:contents]
|
|
17
|
+
else
|
|
18
|
+
case object
|
|
19
|
+
when '_index.html'
|
|
20
|
+
@page_title = options.title
|
|
21
|
+
sections :layout, [:index, [:listing, [:files, :objects]]]
|
|
22
|
+
when CodeObjects::Base
|
|
23
|
+
unless object.root?
|
|
24
|
+
cur = object.namespace
|
|
25
|
+
until cur.root?
|
|
26
|
+
@breadcrumb.unshift(cur)
|
|
27
|
+
cur = cur.namespace
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
@page_title = format_object_title(object)
|
|
32
|
+
type = object.root? ? :module : object.type
|
|
33
|
+
sections :layout, [T(type)]
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
attr_reader :contents
|
|
39
|
+
|
|
40
|
+
def index
|
|
41
|
+
@objects_by_letter = {}
|
|
42
|
+
objects = Registry.all(:class, :module).sort_by {|o| o.name.to_s }
|
|
43
|
+
objects = run_verifier(objects)
|
|
44
|
+
objects.each {|o| (@objects_by_letter[o.name.to_s[0, 1].upcase] ||= []) << o }
|
|
45
|
+
erb(:index)
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
def layout
|
|
49
|
+
@nav_url = url_for_list(!(defined?(@file) && @file) || options.index ? 'class' : 'file')
|
|
50
|
+
|
|
51
|
+
@path =
|
|
52
|
+
if !object || object.is_a?(String)
|
|
53
|
+
nil
|
|
54
|
+
elsif defined?(@file) && @file
|
|
55
|
+
@file.path
|
|
56
|
+
elsif !object.is_a?(YARD::CodeObjects::NamespaceObject)
|
|
57
|
+
object.parent.path
|
|
58
|
+
else
|
|
59
|
+
object.path
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
erb(:layout)
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
def diskfile
|
|
66
|
+
@file.attributes[:markup] ||= markup_for_file('', @file.filename)
|
|
67
|
+
data = htmlify(@file.contents, @file.attributes[:markup])
|
|
68
|
+
"<div id='filecontents'>" + data + "</div>"
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# @return [Array<String>] core javascript files for layout
|
|
72
|
+
# @since 0.7.0
|
|
73
|
+
def javascripts
|
|
74
|
+
%w(js/jquery.js js/app.js)
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# @return [Array<String>] core stylesheets for the layout
|
|
78
|
+
# @since 0.7.0
|
|
79
|
+
def stylesheets
|
|
80
|
+
%w(css/style.css css/common.css)
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# @return [Array<Hash{Symbol=>String}>] the list of search links and drop-down menus
|
|
84
|
+
# @since 0.7.0
|
|
85
|
+
def menu_lists
|
|
86
|
+
[{:type => 'class', :title => 'Classes', :search_title => 'Class List'},
|
|
87
|
+
{:type => 'method', :title => 'Methods', :search_title => 'Method List'},
|
|
88
|
+
{:type => 'file', :title => 'Files', :search_title => 'File List'}]
|
|
89
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<h1>Method: <%= object.path %></h1>
|
|
2
|
+
<div class="box_info">
|
|
3
|
+
<dl>
|
|
4
|
+
<dt class="">Defined in:</dt>
|
|
5
|
+
<dd class="">
|
|
6
|
+
<%= object.file %><% if object.files.size > 1 %><span class="defines">,<br>
|
|
7
|
+
<%= object.files[1..-1].map {|f| f.first }.join(",<br> ") %></div>
|
|
8
|
+
<% end %>
|
|
9
|
+
</dd>
|
|
10
|
+
</dl>
|
|
11
|
+
</div>
|
|
12
|
+
|
|
13
|
+
<div class="method_details_list">
|
|
14
|
+
<div id="method_details">
|
|
15
|
+
<%= yieldall :index => 0 %>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<%= yieldall %>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<h3 class="signature <%= 'first' if @index == 0 %>" id="<%= anchor_for(object) %>">
|
|
2
|
+
<% if object.tags(:overload).size == 1 %>
|
|
3
|
+
<%= signature(object.tag(:overload), false) %>
|
|
4
|
+
<% elsif object.tags(:overload).size > 1 %>
|
|
5
|
+
<% object.tags(:overload).each do |overload| %>
|
|
6
|
+
<span class="overload"><%= signature(overload, false) %></span>
|
|
7
|
+
<% end %>
|
|
8
|
+
<% else %>
|
|
9
|
+
<%= signature(object, false) %>
|
|
10
|
+
<% end %>
|
|
11
|
+
|
|
12
|
+
<% if object.aliases.size > 0 %>
|
|
13
|
+
<span class="aliases">Also known as:
|
|
14
|
+
<span class="names"><%= object.aliases.map {|o|
|
|
15
|
+
"<span id='#{anchor_for(o)}'>" + h(o.name.to_s) + "</span>" }.join(", ") %></span>
|
|
16
|
+
</span>
|
|
17
|
+
<% end %>
|
|
18
|
+
|
|
19
|
+
<% if owner != object.namespace %>
|
|
20
|
+
<span class="not_defined_here">
|
|
21
|
+
Originally defined in <%= object.namespace.type %>
|
|
22
|
+
<%= linkify object, owner.relative_path(object.namespace) %>
|
|
23
|
+
</span>
|
|
24
|
+
<% end %>
|
|
25
|
+
</h3>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<table class="source_code">
|
|
2
|
+
<tr>
|
|
3
|
+
<td>
|
|
4
|
+
<pre class="lines"><%= "\n\n\n" %><%= h format_lines(object) %></pre>
|
|
5
|
+
</td>
|
|
6
|
+
<td>
|
|
7
|
+
<pre class="code"><span class="info file"># File '<%= h object.file %>'<% if object.line %>, line <%= object.line %><% end %></span><%= "\n\n" %><%= html_syntax_highlight object.source %></pre>
|
|
8
|
+
</td>
|
|
9
|
+
</tr>
|
|
10
|
+
</table>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
def init
|
|
3
|
+
sections :header, [:method_signature, T('docstring'), :source]
|
|
4
|
+
end
|
|
5
|
+
|
|
6
|
+
def source
|
|
7
|
+
return if owner != object.namespace
|
|
8
|
+
return if Tags::OverloadTag === object
|
|
9
|
+
return if object.source.nil?
|
|
10
|
+
erb(:source)
|
|
11
|
+
end
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<%= title_align_right format_object_title(object) %>
|
|
2
|
+
|
|
3
|
+
<%= align_right "(Defined in: #{object.file})" %>
|
|
4
|
+
<% if object.aliases.size > 0 %>
|
|
5
|
+
|
|
6
|
+
<%= align_right "(Also known as: #{object.aliases.map {|o| o.name(true).to_s }.join(',')})" %>
|
|
7
|
+
<% end %>
|
|
8
|
+
|
|
9
|
+
<%= yieldall %>
|
|
10
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
<% if object.tags(:overload).size == 1 %>
|
|
3
|
+
<%= indent wrap(signature(object.tag(:overload))) %>
|
|
4
|
+
<% elsif object.tags(:overload).size > 1 %>
|
|
5
|
+
<% object.tags(:overload).each do |overload| %>
|
|
6
|
+
<%= indent wrap(signature(overload)) %>
|
|
7
|
+
<% end %>
|
|
8
|
+
<% else %>
|
|
9
|
+
<%= indent wrap(signature(object)) %>
|
|
10
|
+
<% end %>
|
|
11
|
+
<%= hr %>
|
|
12
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<%= format_path object %> [label="{<%= yieldall.gsub("\n", '') %>}" rank=sink];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<%= object.type %> <%= h object.name %>
|
|
2
|
+
<% if options.full %>
|
|
3
|
+
|
|
|
4
|
+
<% object.attributes.each do |scope, list| %>
|
|
5
|
+
<% list.sort_by {|name, rw| name.to_s }.each do |name, rw| %>
|
|
6
|
+
<%= uml_visibility(rw.values.compact.first) %> <%= h (rw[:read]||rw[:write]).name(true).gsub(/=$/,'') %> [<%= 'R' if rw[:read] %><%= 'W' if rw[:write] %>]\l
|
|
7
|
+
<% end %>
|
|
8
|
+
<% end %>
|
|
9
|
+
|
|
|
10
|
+
<% method_listing.each do |obj| %>
|
|
11
|
+
<%= uml_visibility obj %> <%= h obj.name(true) %>
|
|
12
|
+
<%= h(" : #{obj.tag(:return).types.first}") if obj.has_tag?(:return) && obj.tag(:return).types && obj.tag(:return).types.size > 0 %>\l
|
|
13
|
+
<% end %>
|
|
14
|
+
<% end %>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
def init
|
|
3
|
+
@modules = object.children.select {|o| o.type == :module }
|
|
4
|
+
@classes = object.children.select {|o| o.type == :class }
|
|
5
|
+
sections :child, [:info], :classes, [T('class')], :header, [T('module')], :dependencies
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
def dependencies
|
|
9
|
+
return unless options.dependencies
|
|
10
|
+
erb(:dependencies)
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
def classes
|
|
14
|
+
@classes.map {|k| yieldall :object => k }.join("\n")
|
|
15
|
+
end
|