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,207 @@
|
|
|
1
|
+
/* autocomplete */
|
|
2
|
+
.ac_results {
|
|
3
|
+
padding: 0px;
|
|
4
|
+
position: absolute;
|
|
5
|
+
top: calc(100% - 1px);
|
|
6
|
+
left: 4px;
|
|
7
|
+
right: 4px;
|
|
8
|
+
border: 1px solid #0a4f8a;
|
|
9
|
+
width: auto;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
z-index: 99999;
|
|
12
|
+
background: #f7fbff;
|
|
13
|
+
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
|
|
14
|
+
border-radius: 0 0 4px 4px;
|
|
15
|
+
color: #123;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.ac_results ul {
|
|
19
|
+
width: 100%;
|
|
20
|
+
list-style: none;
|
|
21
|
+
list-style-position: outside;
|
|
22
|
+
padding: 0;
|
|
23
|
+
margin: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.ac_results li {
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
margin: 0px;
|
|
29
|
+
padding: 3px;
|
|
30
|
+
display: block;
|
|
31
|
+
font-family: sans-serif;
|
|
32
|
+
font-size: 12px;
|
|
33
|
+
line-height: 16px;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
color: #123;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
#search_results h1 {
|
|
39
|
+
margin-bottom: 0;
|
|
40
|
+
}
|
|
41
|
+
#search_results p {
|
|
42
|
+
margin-top: 0;
|
|
43
|
+
margin-bottom: 25px;
|
|
44
|
+
}
|
|
45
|
+
#search_results ul {
|
|
46
|
+
list-style: none;
|
|
47
|
+
list-style-position: inside;
|
|
48
|
+
padding-left: 0;
|
|
49
|
+
}
|
|
50
|
+
#search_results ul li {
|
|
51
|
+
padding: 7px 15px;
|
|
52
|
+
font-size: 1.1em;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
form.search {
|
|
56
|
+
z-index: 8000;
|
|
57
|
+
position: absolute;
|
|
58
|
+
color: #fff;
|
|
59
|
+
border: 1px solid #99f;
|
|
60
|
+
width: 210px;
|
|
61
|
+
background: #05a;
|
|
62
|
+
border-radius: 4px;
|
|
63
|
+
border-top-left-radius: 0;
|
|
64
|
+
border-top-right-radius: 0;
|
|
65
|
+
}
|
|
66
|
+
form.search input {
|
|
67
|
+
height: 25px;
|
|
68
|
+
padding: 0;
|
|
69
|
+
padding-left: 4px;
|
|
70
|
+
margin: 4px;
|
|
71
|
+
margin-right: 0;
|
|
72
|
+
width: 202px;
|
|
73
|
+
border: 1px solid #99f;
|
|
74
|
+
border-radius: 3px;
|
|
75
|
+
font-size: 1.1em;
|
|
76
|
+
box-sizing: border-box;
|
|
77
|
+
-webkit-appearance: none;
|
|
78
|
+
color: #123;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@media (max-width: 920px) {
|
|
82
|
+
form.search {
|
|
83
|
+
position: absolute;
|
|
84
|
+
color: #fff;
|
|
85
|
+
width: 100%;
|
|
86
|
+
margin-top: 0;
|
|
87
|
+
background: #05a;
|
|
88
|
+
border-radius: 0;
|
|
89
|
+
border: 0;
|
|
90
|
+
margin-bottom: 10px;
|
|
91
|
+
left: 0;
|
|
92
|
+
top: 0;
|
|
93
|
+
}
|
|
94
|
+
form.search input {
|
|
95
|
+
margin-top: 9px;
|
|
96
|
+
margin-bottom: 11px;
|
|
97
|
+
margin-left: 12px;
|
|
98
|
+
padding-left: 6px;
|
|
99
|
+
border: 1px solid #eaf0ff;
|
|
100
|
+
background: #fff;
|
|
101
|
+
}
|
|
102
|
+
#menu {
|
|
103
|
+
margin-top: 41px;
|
|
104
|
+
}
|
|
105
|
+
#search a {
|
|
106
|
+
border-top-left-radius: 3px;
|
|
107
|
+
border-top-right-radius: 3px;
|
|
108
|
+
background: none;
|
|
109
|
+
border: 0;
|
|
110
|
+
box-shadow: none;
|
|
111
|
+
margin-top: 4px;
|
|
112
|
+
padding-bottom: 5px;
|
|
113
|
+
color: #eaf0ff;
|
|
114
|
+
fill: #eaf0ff;
|
|
115
|
+
}
|
|
116
|
+
#search a.active {
|
|
117
|
+
background: #048;
|
|
118
|
+
border: 0;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@media (min-width: 920px) {
|
|
123
|
+
form.search {
|
|
124
|
+
right: 12px;
|
|
125
|
+
top: 0;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
#menu {
|
|
130
|
+
padding-top: 5px;
|
|
131
|
+
}
|
|
132
|
+
#content h1 {
|
|
133
|
+
margin-top: 15px;
|
|
134
|
+
border-top: 0;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
#content.error {
|
|
138
|
+
font-size: 1.2em;
|
|
139
|
+
}
|
|
140
|
+
#content.error p tt {
|
|
141
|
+
font-size: 1.2em;
|
|
142
|
+
}
|
|
143
|
+
#content.error .note {
|
|
144
|
+
padding: 12px;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.signature .permalink {
|
|
148
|
+
float: right;
|
|
149
|
+
font-size: 0.9em;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.ac_loading {
|
|
153
|
+
background: white url("/images/processing.gif") right center no-repeat;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.ac_even {
|
|
157
|
+
background: #fafafa;
|
|
158
|
+
border: 1px dotted #fafafa;
|
|
159
|
+
border-left-width: 0;
|
|
160
|
+
border-right-width: 0;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.ac_odd {
|
|
164
|
+
background: #f0f0f0;
|
|
165
|
+
border: 1px dotted #f0f0f0;
|
|
166
|
+
border-left-width: 0;
|
|
167
|
+
border-right-width: 0;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.ac_over {
|
|
171
|
+
background: #cfe5ff;
|
|
172
|
+
cursor: pointer;
|
|
173
|
+
border: 1px dotted #f7fbff;
|
|
174
|
+
border-left-width: 0;
|
|
175
|
+
border-right-width: 0;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
#fade {
|
|
179
|
+
display: none;
|
|
180
|
+
position: absolute;
|
|
181
|
+
top: 0px;
|
|
182
|
+
left: 0;
|
|
183
|
+
background: #eee;
|
|
184
|
+
z-index: -1;
|
|
185
|
+
width: 100%;
|
|
186
|
+
height: 100%;
|
|
187
|
+
border-top: 1px solid #e0e0e0;
|
|
188
|
+
}
|
|
189
|
+
#processing {
|
|
190
|
+
position: absolute;
|
|
191
|
+
width: 400px;
|
|
192
|
+
height: 200px;
|
|
193
|
+
margin: auto;
|
|
194
|
+
background: #fff;
|
|
195
|
+
padding: 10px 30px;
|
|
196
|
+
z-index: 20;
|
|
197
|
+
-webkit-box-shadow: 0px 0px 20px #444;
|
|
198
|
+
-moz-box-shadow: 0px 0px 20px #444;
|
|
199
|
+
-webkit-border-radius: 4px;
|
|
200
|
+
display: none;
|
|
201
|
+
}
|
|
202
|
+
#processing img {
|
|
203
|
+
display: block;
|
|
204
|
+
position: absolute;
|
|
205
|
+
bottom: 30px;
|
|
206
|
+
left: 44%;
|
|
207
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
function query(selector, root) {
|
|
3
|
+
return (root || document).querySelector(selector);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
function ready(callback) {
|
|
7
|
+
if (document.readyState === "loading") {
|
|
8
|
+
document.addEventListener("DOMContentLoaded", callback, { once: true });
|
|
9
|
+
} else {
|
|
10
|
+
callback();
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function createAutocomplete(input) {
|
|
15
|
+
const form = input.form;
|
|
16
|
+
const results = document.createElement("div");
|
|
17
|
+
const list = document.createElement("ul");
|
|
18
|
+
let requestTimer = null;
|
|
19
|
+
let controller = null;
|
|
20
|
+
let items = [];
|
|
21
|
+
let activeIndex = -1;
|
|
22
|
+
let blurTimer = null;
|
|
23
|
+
|
|
24
|
+
if (!form) return;
|
|
25
|
+
|
|
26
|
+
results.className = "ac_results";
|
|
27
|
+
results.hidden = true;
|
|
28
|
+
results.setAttribute("role", "listbox");
|
|
29
|
+
results.id = `${input.id}_results`;
|
|
30
|
+
list.setAttribute("role", "presentation");
|
|
31
|
+
results.appendChild(list);
|
|
32
|
+
input.setAttribute("autocomplete", "off");
|
|
33
|
+
input.setAttribute("aria-autocomplete", "list");
|
|
34
|
+
input.setAttribute("aria-controls", results.id);
|
|
35
|
+
input.setAttribute("aria-expanded", "false");
|
|
36
|
+
form.appendChild(results);
|
|
37
|
+
|
|
38
|
+
function syncResultsWidth() {
|
|
39
|
+
results.style.width = `${input.offsetWidth}px`;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function hideResults() {
|
|
43
|
+
results.hidden = true;
|
|
44
|
+
input.setAttribute("aria-expanded", "false");
|
|
45
|
+
input.removeAttribute("aria-activedescendant");
|
|
46
|
+
activeIndex = -1;
|
|
47
|
+
items = [];
|
|
48
|
+
list.innerHTML = "";
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function setActive(index) {
|
|
52
|
+
if (!items.length) return;
|
|
53
|
+
activeIndex = (index + items.length) % items.length;
|
|
54
|
+
items.forEach((item, itemIndex) => {
|
|
55
|
+
item.element.classList.toggle("ac_over", itemIndex === activeIndex);
|
|
56
|
+
});
|
|
57
|
+
input.setAttribute(
|
|
58
|
+
"aria-activedescendant",
|
|
59
|
+
items[activeIndex].element.id,
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function selectItem(item) {
|
|
64
|
+
input.value = item.values[1];
|
|
65
|
+
window.location.href = item.values[3];
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function renderItems(lines) {
|
|
69
|
+
syncResultsWidth();
|
|
70
|
+
list.innerHTML = "";
|
|
71
|
+
items = lines.map((line, index) => {
|
|
72
|
+
const values = line.split(",");
|
|
73
|
+
const element = document.createElement("li");
|
|
74
|
+
const label = document.createElement("span");
|
|
75
|
+
const namespace = document.createElement("small");
|
|
76
|
+
|
|
77
|
+
element.id = `${results.id}_item_${index}`;
|
|
78
|
+
element.setAttribute("role", "option");
|
|
79
|
+
element.className = index % 2 === 0 ? "ac_even" : "ac_odd";
|
|
80
|
+
label.textContent = values[0];
|
|
81
|
+
element.appendChild(label);
|
|
82
|
+
|
|
83
|
+
if (values[1] !== "") {
|
|
84
|
+
namespace.textContent = `(${values[1]})`;
|
|
85
|
+
element.appendChild(document.createTextNode(" "));
|
|
86
|
+
element.appendChild(namespace);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
element.addEventListener("mouseenter", () => {
|
|
90
|
+
setActive(index);
|
|
91
|
+
});
|
|
92
|
+
element.addEventListener("mousedown", (event) => {
|
|
93
|
+
event.preventDefault();
|
|
94
|
+
selectItem(items[index]);
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
list.appendChild(element);
|
|
98
|
+
|
|
99
|
+
return { element: element, values: values };
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
if (items.length) {
|
|
103
|
+
results.hidden = false;
|
|
104
|
+
input.setAttribute("aria-expanded", "true");
|
|
105
|
+
setActive(0);
|
|
106
|
+
} else {
|
|
107
|
+
hideResults();
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
function fetchResults(term) {
|
|
112
|
+
if (controller) controller.abort();
|
|
113
|
+
controller = new AbortController();
|
|
114
|
+
input.classList.add("ac_loading");
|
|
115
|
+
|
|
116
|
+
fetch(`${form.action}?q=${encodeURIComponent(term)}&_=${Date.now()}`, {
|
|
117
|
+
headers: {
|
|
118
|
+
"X-Requested-With": "XMLHttpRequest",
|
|
119
|
+
},
|
|
120
|
+
signal: controller.signal,
|
|
121
|
+
})
|
|
122
|
+
.then((response) => response.text())
|
|
123
|
+
.then((text) => {
|
|
124
|
+
const lines = text
|
|
125
|
+
.split("\n")
|
|
126
|
+
.map((line) => line.trim())
|
|
127
|
+
.filter(Boolean);
|
|
128
|
+
|
|
129
|
+
renderItems(lines);
|
|
130
|
+
})
|
|
131
|
+
.catch((error) => {
|
|
132
|
+
if (error.name !== "AbortError") hideResults();
|
|
133
|
+
})
|
|
134
|
+
.finally(() => {
|
|
135
|
+
input.classList.remove("ac_loading");
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
input.addEventListener("input", () => {
|
|
140
|
+
clearTimeout(requestTimer);
|
|
141
|
+
if (blurTimer) clearTimeout(blurTimer);
|
|
142
|
+
|
|
143
|
+
if (!input.value.trim()) {
|
|
144
|
+
hideResults();
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
requestTimer = setTimeout(() => {
|
|
149
|
+
fetchResults(input.value.trim());
|
|
150
|
+
}, 200);
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
input.addEventListener("keydown", (event) => {
|
|
154
|
+
if (
|
|
155
|
+
results.hidden &&
|
|
156
|
+
(event.key === "ArrowDown" || event.key === "ArrowUp")
|
|
157
|
+
) {
|
|
158
|
+
if (!input.value.trim()) return;
|
|
159
|
+
fetchResults(input.value.trim());
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
if (event.key === "ArrowDown") {
|
|
164
|
+
event.preventDefault();
|
|
165
|
+
setActive(activeIndex + 1);
|
|
166
|
+
} else if (event.key === "ArrowUp") {
|
|
167
|
+
event.preventDefault();
|
|
168
|
+
setActive(activeIndex - 1);
|
|
169
|
+
} else if (event.key === "Enter") {
|
|
170
|
+
if (activeIndex >= 0 && items[activeIndex]) {
|
|
171
|
+
event.preventDefault();
|
|
172
|
+
selectItem(items[activeIndex]);
|
|
173
|
+
}
|
|
174
|
+
} else if (event.key === "Escape") {
|
|
175
|
+
hideResults();
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
input.addEventListener("blur", () => {
|
|
180
|
+
blurTimer = setTimeout(hideResults, 150);
|
|
181
|
+
});
|
|
182
|
+
|
|
183
|
+
input.addEventListener("focus", () => {
|
|
184
|
+
syncResultsWidth();
|
|
185
|
+
if (items.length) {
|
|
186
|
+
results.hidden = false;
|
|
187
|
+
input.setAttribute("aria-expanded", "true");
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
|
|
191
|
+
document.addEventListener("click", (event) => {
|
|
192
|
+
if (!form.contains(event.target)) hideResults();
|
|
193
|
+
});
|
|
194
|
+
|
|
195
|
+
window.addEventListener("resize", syncResultsWidth);
|
|
196
|
+
syncResultsWidth();
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
ready(() => {
|
|
200
|
+
const input = query("#search_box");
|
|
201
|
+
if (input) createAutocomplete(input);
|
|
202
|
+
});
|
|
203
|
+
})();
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<form class="search" method="get" action="<%= abs_url base_path(router.search_prefix) %>">
|
|
2
|
+
<input name="q" type="search" placeholder="Search" id="search_box" size="30" value="<%= h @query %>">
|
|
3
|
+
</form>
|
|
4
|
+
|
|
5
|
+
<div id="menu">
|
|
6
|
+
<% unless @single_library %>
|
|
7
|
+
<a href="<%= abs_url router.docs_prefix %>" target="_top">Libraries</a> »
|
|
8
|
+
<span class="title"><%= @library.name %> <% if @library.version %><small>(<%= @library.version %>)</small><% end %></span>
|
|
9
|
+
<% end %>
|
|
10
|
+
<% if object.is_a?(CodeObjects::Base) && @file.nil? %>
|
|
11
|
+
<% unless @single_library %>»<% end %>
|
|
12
|
+
<a href="<%= url_for_index %>"><% if object.root? || object.type == :method %>Index<% else %>Index (<%= object.name.to_s[0] %>)<% end %></a> »
|
|
13
|
+
<%= @breadcrumb.map {|obj| "<span class='title'>" + linkify(obj, obj.name) + "</span>" }.join(" » ") %>
|
|
14
|
+
<%= @breadcrumb.size > 0 ? " » " : "" %>
|
|
15
|
+
<span class='title'><%= object.root? ? "Top Level Namespace" : object.name(true) %></span>
|
|
16
|
+
<% else %>
|
|
17
|
+
<% if (@breadcrumb_title || object != '_index.html') && !@single_library %>» <% end %>
|
|
18
|
+
<% if object != '_index.html' %><a href="<%= url_for_index %>">Index</a> » <% end %>
|
|
19
|
+
<span class='title'><%= @breadcrumb_title %></span>
|
|
20
|
+
<% end %>
|
|
21
|
+
</div>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<script type="text/javascript" charset="utf-8">
|
|
2
|
+
pathId = <%= @path ? @path.inspect : 'null' %>
|
|
3
|
+
relpath = '/';
|
|
4
|
+
docsPrefix = '<%= abs_url base_path(router.docs_prefix) %>';
|
|
5
|
+
listPrefix = '<%= abs_url base_path(router.list_prefix) %>';
|
|
6
|
+
searchPrefix = '<%= abs_url base_path(router.search_prefix) %>';
|
|
7
|
+
</script>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<meta charset="UTF-8">
|
|
2
|
+
<title>YARD Documentation Server <%= YARD::VERSION %> - Library Listing</title>
|
|
3
|
+
<link rel="stylesheet" href="<%= abs_url('css', 'style.css') %>?<%= mtime('css/style.css') %>" type="text/css" media="screen" charset="utf-8">
|
|
4
|
+
<link rel="stylesheet" href="<%= abs_url('css', 'custom.css') %>?<%= mtime('css/custom.css') %>" type="text/css" media="screen" charset="utf-8">
|
|
5
|
+
<style type="text/css" media="screen">
|
|
6
|
+
ul { list-style: circle inside none; padding: 0; }
|
|
7
|
+
li { font-size: 1.2em; line-height: 1.4em; padding: 3px 5px; }
|
|
8
|
+
</style>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<ul>
|
|
2
|
+
<% @libraries.sort_by {|name, y| name.downcase }.each do |name, library_versions| %>
|
|
3
|
+
<li class="r<%= @row = (!defined?(@row) || @row == 1) ? 2 : 1 %>">
|
|
4
|
+
<% library_versions = library_versions.dup %>
|
|
5
|
+
<% first_lib = library_versions.pop %>
|
|
6
|
+
<a href="<%= abs_url(router.docs_prefix, first_lib.name) %>"><%= name %></a>
|
|
7
|
+
<% if first_lib.version %>
|
|
8
|
+
<small>(<%= first_lib.version %><% if library_versions.size > 0 %>,
|
|
9
|
+
<%= library_versions.reverse.map {|lib| "<a href=\"#{abs_url(router.docs_prefix, lib.to_s)}\">#{lib.version}</a>" }.join(', ') %><% end %>)</small>
|
|
10
|
+
<% end %>
|
|
11
|
+
</li>
|
|
12
|
+
<% end %>
|
|
13
|
+
</ul>
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<link rel="stylesheet" href="<%= abs_url('css', 'style.css') %>?<%= mtime('css/style.css') %>" type="text/css" media="screen" charset="utf-8">
|
|
6
|
+
<link rel="stylesheet" href="<%= abs_url('css', 'custom.css') %>?<%= mtime('css/custom.css') %>" type="text/css" media="screen" charset="utf-8">
|
|
7
|
+
<script type="text/javascript" charset="utf-8">
|
|
8
|
+
function checkPage(process) {
|
|
9
|
+
fetch("<%= router.request.path %>" + (process ? "?process=true" : ""), { cache: "no-store" })
|
|
10
|
+
.then(function(response) {
|
|
11
|
+
if (response.status === 200) window.location.reload();
|
|
12
|
+
});
|
|
13
|
+
setTimeout(checkPage, 2000);
|
|
14
|
+
}
|
|
15
|
+
function setFade() {
|
|
16
|
+
centerMessage();
|
|
17
|
+
window.addEventListener("resize", centerMessage);
|
|
18
|
+
document.getElementById('fade').style.display = 'block';
|
|
19
|
+
document.getElementById('processing').style.display = 'block';
|
|
20
|
+
}
|
|
21
|
+
function centerMessage() {
|
|
22
|
+
var fade = document.getElementById('fade');
|
|
23
|
+
var processing = document.getElementById('processing');
|
|
24
|
+
var fadeTop = parseInt(window.getComputedStyle(fade).top, 10) || 0;
|
|
25
|
+
fade.style.width = window.innerWidth + 'px';
|
|
26
|
+
fade.style.height = (window.innerHeight - fadeTop) + 'px';
|
|
27
|
+
processing.style.left = (window.innerWidth / 2 - processing.offsetWidth / 2) + 'px';
|
|
28
|
+
processing.style.top = (window.innerHeight / 2 - processing.offsetHeight / 2) + 'px';
|
|
29
|
+
}
|
|
30
|
+
document.addEventListener("DOMContentLoaded", function() {
|
|
31
|
+
checkPage(true);
|
|
32
|
+
setFade();
|
|
33
|
+
});
|
|
34
|
+
</script>
|
|
35
|
+
<style type="text/css" media="screen">
|
|
36
|
+
body { overflow: hidden; margin: 12px; display: block; }
|
|
37
|
+
#menu { margin-top: 0 !important; padding-top: 0 !important; }
|
|
38
|
+
</style>
|
|
39
|
+
<title>Processing <%= @library.to_s(false) %></title>
|
|
40
|
+
</head>
|
|
41
|
+
<body>
|
|
42
|
+
<div id="menu">
|
|
43
|
+
<% unless @single_library %>
|
|
44
|
+
<a href="<%= abs_url(router.docs_prefix) %>" target="_top">Libraries</a> »
|
|
45
|
+
<span class="title"><%= @library.name %> <% if @library.version %><small>(<%= @library.version %>)</small><% end %></span>
|
|
46
|
+
<% end %>
|
|
47
|
+
</div>
|
|
48
|
+
<div id="fade"></div>
|
|
49
|
+
<div id="processing">
|
|
50
|
+
<h1>Processing <%= @library.name %></h1>
|
|
51
|
+
<p>
|
|
52
|
+
<strong><%= @library.name %></strong> <% if @library.version %>(<%= @library.version %>)<% end %> is being processed.
|
|
53
|
+
You'll be redirected when the pages are built, it shouldn't take much longer.
|
|
54
|
+
</p>
|
|
55
|
+
<img src="<%= abs_url('images', 'processing.gif') %>?<%= mtime('images/processing.gif') %>" align="center">
|
|
56
|
+
</div>
|
|
57
|
+
</body>
|
|
58
|
+
</html>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<div id="search_results">
|
|
2
|
+
<h1>Search Results <small>(for '<%= h @query %>')</small></h1>
|
|
3
|
+
<p>Showing <%= @visible_results.size %> of <%= @results.size %> results</p>
|
|
4
|
+
<ul>
|
|
5
|
+
<% n = 1 %>
|
|
6
|
+
<% @visible_results.each do |result| %>
|
|
7
|
+
<% name = result.type == :method ? result.name(true).to_s : result.name.to_s %>
|
|
8
|
+
<% path = name.gsub(/(#{Regexp.quote @query})/i, '<strong>\1</strong>') %>
|
|
9
|
+
<li class="r<%= n %>">
|
|
10
|
+
<a href="<%= url_for(result) %>" title="<%= result.path %>"><%= path %></a>
|
|
11
|
+
<% if !result.namespace.root? %>
|
|
12
|
+
<small>(<%= result.namespace.path %>)</small>
|
|
13
|
+
<% end %>
|
|
14
|
+
</li>
|
|
15
|
+
<% n = n == 2 ? 1 : 2 %>
|
|
16
|
+
<% end %>
|
|
17
|
+
</ul>
|
|
18
|
+
</div>
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
require 'webrick'
|
|
3
|
+
|
|
4
|
+
module YARD
|
|
5
|
+
module Server
|
|
6
|
+
# The main adapter to initialize a WEBrick server.
|
|
7
|
+
class WebrickAdapter < Adapter
|
|
8
|
+
# Initializes a WEBrick server. If {Adapter#server_options} contains a
|
|
9
|
+
# +:daemonize+ key set to true, the server will be daemonized.
|
|
10
|
+
def start
|
|
11
|
+
server_options[:ServerType] = WEBrick::Daemon if server_options[:daemonize]
|
|
12
|
+
server = WEBrick::HTTPServer.new(server_options)
|
|
13
|
+
server.mount('/', WebrickServlet, self)
|
|
14
|
+
trap("INT") { server.shutdown }
|
|
15
|
+
server.start
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
# The main WEBrick servlet implementation, accepting only GET requests.
|
|
20
|
+
class WebrickServlet < WEBrick::HTTPServlet::AbstractServlet
|
|
21
|
+
attr_accessor :adapter
|
|
22
|
+
|
|
23
|
+
def initialize(server, adapter)
|
|
24
|
+
super
|
|
25
|
+
self.adapter = adapter
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# @private
|
|
29
|
+
def do_GET(request, response) # rubocop:disable Style/MethodName
|
|
30
|
+
status, headers, body = *adapter.router.call(request)
|
|
31
|
+
response.status = status
|
|
32
|
+
response.body = body.is_a?(Array) ? body[0] : body
|
|
33
|
+
headers.each do |key, value|
|
|
34
|
+
response[key] = value
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# @private
|
|
42
|
+
class WEBrick::HTTPRequest
|
|
43
|
+
attr_accessor :version_supplied
|
|
44
|
+
def xhr?; (self['X-Requested-With'] || "").casecmp('xmlhttprequest') == 0 end
|
|
45
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
module YARD
|
|
3
|
+
module Server
|
|
4
|
+
# Registers a static path to be used in static asset lookup.
|
|
5
|
+
# @param [String] path the pathname to register
|
|
6
|
+
# @return [void]
|
|
7
|
+
# @since 0.6.2
|
|
8
|
+
def self.register_static_path(path)
|
|
9
|
+
static_paths = Commands::StaticFileCommand::STATIC_PATHS
|
|
10
|
+
static_paths.push(path) unless static_paths.include?(path)
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|