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,801 @@
|
|
|
1
|
+
(() => {
|
|
2
|
+
window.__yardAppState = window.__yardAppState || {
|
|
3
|
+
navigationListenerBound: false,
|
|
4
|
+
navigationChangeBound: false,
|
|
5
|
+
navResizerBound: false,
|
|
6
|
+
searchFrameGlobalsBound: false,
|
|
7
|
+
latestNavigationId: 0,
|
|
8
|
+
loadingIndicatorTimer: null,
|
|
9
|
+
loadingProgressTimer: null,
|
|
10
|
+
loadingProgressHideTimer: null,
|
|
11
|
+
navExpanderTimer: null,
|
|
12
|
+
navExpanderToken: 0,
|
|
13
|
+
currentUrl: window.location.href,
|
|
14
|
+
};
|
|
15
|
+
const appState = window.__yardAppState;
|
|
16
|
+
let safeLocalStorage = {};
|
|
17
|
+
let safeSessionStorage = {};
|
|
18
|
+
|
|
19
|
+
try {
|
|
20
|
+
safeLocalStorage = window.localStorage;
|
|
21
|
+
} catch (_error) {}
|
|
22
|
+
|
|
23
|
+
try {
|
|
24
|
+
safeSessionStorage = window.sessionStorage;
|
|
25
|
+
} catch (_error) {}
|
|
26
|
+
|
|
27
|
+
function query(selector, root) {
|
|
28
|
+
return (root || document).querySelector(selector);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function queryAll(selector, root) {
|
|
32
|
+
return Array.prototype.slice.call(
|
|
33
|
+
(root || document).querySelectorAll(selector),
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function isVisible(element) {
|
|
38
|
+
if (!element) return false;
|
|
39
|
+
return window.getComputedStyle(element).display !== "none";
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function toggleDisplay(element, visible, displayValue) {
|
|
43
|
+
if (!element) return;
|
|
44
|
+
element.style.display = visible ? displayValue || "" : "none";
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function setMainLoading(loading) {
|
|
48
|
+
const body = document.body;
|
|
49
|
+
const main = query("#main");
|
|
50
|
+
|
|
51
|
+
if (body) body.classList.toggle("loading", !!loading);
|
|
52
|
+
if (!main) return;
|
|
53
|
+
main.classList.toggle("loading", !!loading);
|
|
54
|
+
main.setAttribute("aria-busy", loading ? "true" : "false");
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function setLoadingProgress(progress) {
|
|
58
|
+
const indicator = query("#main_progress");
|
|
59
|
+
|
|
60
|
+
if (!indicator) return;
|
|
61
|
+
indicator.style.setProperty(
|
|
62
|
+
"--yard-progress",
|
|
63
|
+
`${Math.max(0, Math.min(100, progress))}%`,
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
function clearLoadingProgressTimers() {
|
|
68
|
+
clearTimeout(appState.loadingProgressTimer);
|
|
69
|
+
clearTimeout(appState.loadingProgressHideTimer);
|
|
70
|
+
appState.loadingProgressTimer = null;
|
|
71
|
+
appState.loadingProgressHideTimer = null;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function startLoadingProgress() {
|
|
75
|
+
const startedAt = Date.now();
|
|
76
|
+
|
|
77
|
+
clearLoadingProgressTimers();
|
|
78
|
+
setLoadingProgress(0);
|
|
79
|
+
setMainLoading(true);
|
|
80
|
+
|
|
81
|
+
function tick() {
|
|
82
|
+
const elapsed = Date.now() - startedAt;
|
|
83
|
+
let progress;
|
|
84
|
+
|
|
85
|
+
if (elapsed <= 1000) {
|
|
86
|
+
progress = (elapsed / 1000) * 99;
|
|
87
|
+
} else {
|
|
88
|
+
progress = 99 + Math.min(1, (elapsed - 1000) / 10000);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
setLoadingProgress(progress);
|
|
92
|
+
|
|
93
|
+
if (progress < 100) {
|
|
94
|
+
appState.loadingProgressTimer = setTimeout(tick, 50);
|
|
95
|
+
} else {
|
|
96
|
+
appState.loadingProgressTimer = null;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
tick();
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
function scheduleMainLoading(navigationId) {
|
|
104
|
+
clearTimeout(appState.loadingIndicatorTimer);
|
|
105
|
+
clearTimeout(appState.loadingProgressHideTimer);
|
|
106
|
+
appState.loadingProgressHideTimer = null;
|
|
107
|
+
appState.loadingIndicatorTimer = setTimeout(() => {
|
|
108
|
+
if (navigationId === appState.latestNavigationId) {
|
|
109
|
+
startLoadingProgress();
|
|
110
|
+
}
|
|
111
|
+
appState.loadingIndicatorTimer = null;
|
|
112
|
+
}, 400);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
function cancelMainLoading() {
|
|
116
|
+
clearTimeout(appState.loadingIndicatorTimer);
|
|
117
|
+
appState.loadingIndicatorTimer = null;
|
|
118
|
+
clearTimeout(appState.loadingProgressTimer);
|
|
119
|
+
appState.loadingProgressTimer = null;
|
|
120
|
+
setLoadingProgress(100);
|
|
121
|
+
appState.loadingProgressHideTimer = setTimeout(() => {
|
|
122
|
+
setMainLoading(false);
|
|
123
|
+
setLoadingProgress(0);
|
|
124
|
+
appState.loadingProgressHideTimer = null;
|
|
125
|
+
}, 120);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
function firstNextMatchingSibling(element, selector) {
|
|
129
|
+
let current = element;
|
|
130
|
+
while (current) {
|
|
131
|
+
current = current.nextElementSibling;
|
|
132
|
+
if (current?.matches(selector)) return current;
|
|
133
|
+
}
|
|
134
|
+
return null;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
function ready(callback) {
|
|
138
|
+
if (document.readyState === "loading") {
|
|
139
|
+
document.addEventListener("DOMContentLoaded", callback, { once: true });
|
|
140
|
+
} else {
|
|
141
|
+
callback();
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
function createSourceLinks() {
|
|
146
|
+
queryAll(".method_details_list .source_code").forEach((sourceCode) => {
|
|
147
|
+
const toggleWrapper = document.createElement("span");
|
|
148
|
+
const link = document.createElement("a");
|
|
149
|
+
|
|
150
|
+
toggleWrapper.className = "showSource";
|
|
151
|
+
toggleWrapper.appendChild(document.createTextNode("["));
|
|
152
|
+
toggleWrapper.appendChild(link);
|
|
153
|
+
toggleWrapper.appendChild(document.createTextNode("]"));
|
|
154
|
+
|
|
155
|
+
link.href = "#";
|
|
156
|
+
link.className = "toggleSource";
|
|
157
|
+
link.textContent = "View source";
|
|
158
|
+
|
|
159
|
+
link.addEventListener("click", (event) => {
|
|
160
|
+
event.preventDefault();
|
|
161
|
+
const expanded = isVisible(sourceCode);
|
|
162
|
+
toggleDisplay(sourceCode, !expanded, "table");
|
|
163
|
+
link.textContent = expanded ? "View source" : "Hide source";
|
|
164
|
+
});
|
|
165
|
+
|
|
166
|
+
sourceCode.parentNode.insertBefore(toggleWrapper, sourceCode);
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
function createDefineLinks() {
|
|
171
|
+
queryAll(".defines").forEach((defines) => {
|
|
172
|
+
const toggleLink = document.createElement("a");
|
|
173
|
+
const summary = defines.parentElement.previousElementSibling;
|
|
174
|
+
|
|
175
|
+
toggleLink.href = "#";
|
|
176
|
+
toggleLink.className = "toggleDefines";
|
|
177
|
+
toggleLink.textContent = "more...";
|
|
178
|
+
defines.insertAdjacentText("afterend", " ");
|
|
179
|
+
defines.insertAdjacentElement("afterend", toggleLink);
|
|
180
|
+
|
|
181
|
+
toggleLink.addEventListener("click", (event) => {
|
|
182
|
+
event.preventDefault();
|
|
183
|
+
const expanded = toggleLink.dataset.expanded === "true";
|
|
184
|
+
|
|
185
|
+
if (!expanded) {
|
|
186
|
+
toggleLink.dataset.height = String(summary.offsetHeight);
|
|
187
|
+
defines.style.display = "inline";
|
|
188
|
+
summary.style.height = `${toggleLink.parentElement.offsetHeight}px`;
|
|
189
|
+
toggleLink.textContent = "(less)";
|
|
190
|
+
toggleLink.dataset.expanded = "true";
|
|
191
|
+
} else {
|
|
192
|
+
defines.style.display = "none";
|
|
193
|
+
if (toggleLink.dataset.height) {
|
|
194
|
+
summary.style.height = `${toggleLink.dataset.height}px`;
|
|
195
|
+
}
|
|
196
|
+
toggleLink.textContent = "more...";
|
|
197
|
+
toggleLink.dataset.expanded = "false";
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
function createFullTreeLinks() {
|
|
204
|
+
queryAll(".inheritanceTree").forEach((toggleLink) => {
|
|
205
|
+
const container = toggleLink.parentElement;
|
|
206
|
+
const tree = container.previousElementSibling;
|
|
207
|
+
|
|
208
|
+
toggleLink.addEventListener("click", (event) => {
|
|
209
|
+
event.preventDefault();
|
|
210
|
+
const expanded = toggleLink.dataset.expanded === "true";
|
|
211
|
+
|
|
212
|
+
if (!expanded) {
|
|
213
|
+
toggleLink.dataset.height = String(tree.offsetHeight);
|
|
214
|
+
container.classList.add("showAll");
|
|
215
|
+
toggleLink.textContent = "(hide)";
|
|
216
|
+
tree.style.height = `${container.offsetHeight}px`;
|
|
217
|
+
toggleLink.dataset.expanded = "true";
|
|
218
|
+
} else {
|
|
219
|
+
container.classList.remove("showAll");
|
|
220
|
+
if (toggleLink.dataset.height) {
|
|
221
|
+
tree.style.height = `${toggleLink.dataset.height}px`;
|
|
222
|
+
}
|
|
223
|
+
toggleLink.textContent = "show all";
|
|
224
|
+
toggleLink.dataset.expanded = "false";
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
function resetSearchFrame() {
|
|
231
|
+
const frame = query("#nav");
|
|
232
|
+
|
|
233
|
+
if (frame) frame.removeAttribute("style");
|
|
234
|
+
queryAll("#search a").forEach((link) => {
|
|
235
|
+
link.classList.remove("active");
|
|
236
|
+
link.classList.remove("inactive");
|
|
237
|
+
});
|
|
238
|
+
window.focus();
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
function toggleSearchFrame(linkElement, link) {
|
|
242
|
+
const frame = query("#nav");
|
|
243
|
+
|
|
244
|
+
if (!frame) return;
|
|
245
|
+
|
|
246
|
+
queryAll("#search a").forEach((searchLink) => {
|
|
247
|
+
searchLink.classList.remove("active");
|
|
248
|
+
searchLink.classList.add("inactive");
|
|
249
|
+
});
|
|
250
|
+
|
|
251
|
+
if (frame.getAttribute("src") === link && isVisible(frame)) {
|
|
252
|
+
frame.style.display = "none";
|
|
253
|
+
queryAll("#search a").forEach((searchLink) => {
|
|
254
|
+
searchLink.classList.remove("active");
|
|
255
|
+
searchLink.classList.remove("inactive");
|
|
256
|
+
});
|
|
257
|
+
} else {
|
|
258
|
+
linkElement.classList.add("active");
|
|
259
|
+
linkElement.classList.remove("inactive");
|
|
260
|
+
if (frame.getAttribute("src") !== link) frame.setAttribute("src", link);
|
|
261
|
+
frame.style.display = "block";
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
function searchFrameButtons() {
|
|
266
|
+
queryAll(".full_list_link").forEach((link) => {
|
|
267
|
+
if (link.dataset.yardSearchFrameBound === "true") return;
|
|
268
|
+
|
|
269
|
+
link.addEventListener("click", (event) => {
|
|
270
|
+
event.preventDefault();
|
|
271
|
+
toggleSearchFrame(link, link.getAttribute("href"));
|
|
272
|
+
});
|
|
273
|
+
|
|
274
|
+
link.dataset.yardSearchFrameBound = "true";
|
|
275
|
+
});
|
|
276
|
+
|
|
277
|
+
if (appState.searchFrameGlobalsBound) return;
|
|
278
|
+
|
|
279
|
+
window.addEventListener("message", (event) => {
|
|
280
|
+
if (event.data === "navEscape") resetSearchFrame();
|
|
281
|
+
});
|
|
282
|
+
|
|
283
|
+
window.addEventListener("resize", () => {
|
|
284
|
+
if (!isVisible(query("#search"))) resetSearchFrame();
|
|
285
|
+
});
|
|
286
|
+
|
|
287
|
+
appState.searchFrameGlobalsBound = true;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
function linkSummaries() {
|
|
291
|
+
queryAll(".summary_signature").forEach((signature) => {
|
|
292
|
+
signature.addEventListener("click", (event) => {
|
|
293
|
+
if (event.target.closest("a")) return;
|
|
294
|
+
const link = signature.querySelector("a");
|
|
295
|
+
if (link) document.location = link.getAttribute("href");
|
|
296
|
+
});
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
function toggleSummaryCollection(toggleSelector, listSelector, cloneBuilder) {
|
|
301
|
+
queryAll(toggleSelector).forEach((toggleLink) => {
|
|
302
|
+
toggleLink.addEventListener("click", (event) => {
|
|
303
|
+
event.preventDefault();
|
|
304
|
+
safeLocalStorage.summaryCollapsed = toggleLink.textContent;
|
|
305
|
+
|
|
306
|
+
queryAll(toggleSelector).forEach((link) => {
|
|
307
|
+
link.textContent =
|
|
308
|
+
link.textContent === "collapse" ? "expand" : "collapse";
|
|
309
|
+
|
|
310
|
+
const container = link.parentElement.parentElement;
|
|
311
|
+
const next = firstNextMatchingSibling(container, listSelector);
|
|
312
|
+
|
|
313
|
+
if (!next) return;
|
|
314
|
+
|
|
315
|
+
if (next.classList.contains("compact")) {
|
|
316
|
+
const fullList = firstNextMatchingSibling(next, listSelector);
|
|
317
|
+
toggleDisplay(next, !isVisible(next));
|
|
318
|
+
toggleDisplay(fullList, !isVisible(fullList));
|
|
319
|
+
} else {
|
|
320
|
+
const compactList = cloneBuilder(next.cloneNode(true));
|
|
321
|
+
next.parentNode.insertBefore(compactList, next);
|
|
322
|
+
toggleDisplay(next, false);
|
|
323
|
+
}
|
|
324
|
+
});
|
|
325
|
+
});
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
function buildCompactSummary(list) {
|
|
330
|
+
list.className = "summary compact";
|
|
331
|
+
|
|
332
|
+
queryAll(".summary_desc, .note", list).forEach((node) => {
|
|
333
|
+
node.remove();
|
|
334
|
+
});
|
|
335
|
+
|
|
336
|
+
queryAll("a", list).forEach((link) => {
|
|
337
|
+
const strong = link.querySelector("strong");
|
|
338
|
+
if (strong) link.innerHTML = strong.innerHTML;
|
|
339
|
+
if (link.parentElement) link.parentElement.outerHTML = link.outerHTML;
|
|
340
|
+
});
|
|
341
|
+
|
|
342
|
+
return list;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
function buildCompactConstants(list) {
|
|
346
|
+
list.className = "constants compact";
|
|
347
|
+
|
|
348
|
+
queryAll("dt", list).forEach((node) => {
|
|
349
|
+
const deprecated = !!node.querySelector(".deprecated");
|
|
350
|
+
node.classList.add("summary_signature");
|
|
351
|
+
node.textContent = node.textContent.split("=")[0];
|
|
352
|
+
if (deprecated) node.classList.add("deprecated");
|
|
353
|
+
});
|
|
354
|
+
|
|
355
|
+
queryAll("pre.code", list).forEach((pre) => {
|
|
356
|
+
const dtElement = pre.parentElement.previousElementSibling;
|
|
357
|
+
let tooltip = pre.textContent;
|
|
358
|
+
if (dtElement.classList.contains("deprecated")) {
|
|
359
|
+
tooltip = `Deprecated. ${tooltip}`;
|
|
360
|
+
}
|
|
361
|
+
dtElement.setAttribute("title", tooltip);
|
|
362
|
+
});
|
|
363
|
+
|
|
364
|
+
queryAll(".docstring, .tags, dd", list).forEach((node) => {
|
|
365
|
+
node.remove();
|
|
366
|
+
});
|
|
367
|
+
|
|
368
|
+
return list;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
function summaryToggle() {
|
|
372
|
+
toggleSummaryCollection(
|
|
373
|
+
".summary_toggle",
|
|
374
|
+
"ul.summary",
|
|
375
|
+
buildCompactSummary,
|
|
376
|
+
);
|
|
377
|
+
|
|
378
|
+
if (safeLocalStorage.summaryCollapsed === "collapse") {
|
|
379
|
+
const toggle = query(".summary_toggle");
|
|
380
|
+
if (toggle) toggle.click();
|
|
381
|
+
} else {
|
|
382
|
+
safeLocalStorage.summaryCollapsed = "expand";
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
function constantSummaryToggle() {
|
|
387
|
+
toggleSummaryCollection(
|
|
388
|
+
".constants_summary_toggle",
|
|
389
|
+
"dl.constants",
|
|
390
|
+
buildCompactConstants,
|
|
391
|
+
);
|
|
392
|
+
|
|
393
|
+
if (safeLocalStorage.summaryCollapsed === "collapse") {
|
|
394
|
+
const toggle = query(".constants_summary_toggle");
|
|
395
|
+
if (toggle) toggle.click();
|
|
396
|
+
} else {
|
|
397
|
+
safeLocalStorage.summaryCollapsed = "expand";
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
function generateTOC() {
|
|
402
|
+
const fileContents = query("#filecontents");
|
|
403
|
+
const content = query("#content");
|
|
404
|
+
|
|
405
|
+
if (!fileContents || !content) return;
|
|
406
|
+
if (query("#toc", content)) return;
|
|
407
|
+
|
|
408
|
+
const topLevel = document.createElement("ol");
|
|
409
|
+
let currentList = topLevel;
|
|
410
|
+
let currentItem;
|
|
411
|
+
let counter = 0;
|
|
412
|
+
const headings = ["h2", "h3", "h4", "h5", "h6"];
|
|
413
|
+
let hasEntries = false;
|
|
414
|
+
|
|
415
|
+
topLevel.className = "top";
|
|
416
|
+
|
|
417
|
+
if (queryAll("#filecontents h1").length > 1) headings.unshift("h1");
|
|
418
|
+
|
|
419
|
+
const selectors = headings.map((tagName) => `#filecontents ${tagName}`);
|
|
420
|
+
|
|
421
|
+
let lastLevel = parseInt(headings[0].substring(1), 10);
|
|
422
|
+
|
|
423
|
+
queryAll(selectors.join(", ")).forEach((heading) => {
|
|
424
|
+
let level;
|
|
425
|
+
|
|
426
|
+
if (heading.closest(".method_details .docstring")) return;
|
|
427
|
+
if (heading.id === "filecontents") return;
|
|
428
|
+
|
|
429
|
+
hasEntries = true;
|
|
430
|
+
level = parseInt(heading.tagName.substring(1), 10);
|
|
431
|
+
|
|
432
|
+
if (!heading.id) {
|
|
433
|
+
let proposedId = heading.getAttribute("toc-id");
|
|
434
|
+
if (!proposedId) {
|
|
435
|
+
proposedId = heading.textContent.replace(/[^a-z0-9-]/gi, "_");
|
|
436
|
+
if (query(`#${proposedId}`)) {
|
|
437
|
+
proposedId += counter;
|
|
438
|
+
counter += 1;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
heading.id = proposedId;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
if (level > lastLevel) {
|
|
445
|
+
while (level > lastLevel) {
|
|
446
|
+
if (!currentItem) {
|
|
447
|
+
currentItem = document.createElement("li");
|
|
448
|
+
currentList.appendChild(currentItem);
|
|
449
|
+
}
|
|
450
|
+
const nestedList = document.createElement("ol");
|
|
451
|
+
currentItem.appendChild(nestedList);
|
|
452
|
+
currentList = nestedList;
|
|
453
|
+
currentItem = null;
|
|
454
|
+
lastLevel += 1;
|
|
455
|
+
}
|
|
456
|
+
} else if (level < lastLevel) {
|
|
457
|
+
while (level < lastLevel && currentList.parentElement) {
|
|
458
|
+
currentList = currentList.parentElement.parentElement;
|
|
459
|
+
lastLevel -= 1;
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
const title = heading.getAttribute("toc-title") || heading.textContent;
|
|
464
|
+
const item = document.createElement("li");
|
|
465
|
+
item.innerHTML = `<a href="#${heading.id}">${title}</a>`;
|
|
466
|
+
currentList.appendChild(item);
|
|
467
|
+
currentItem = item;
|
|
468
|
+
});
|
|
469
|
+
|
|
470
|
+
if (!hasEntries) return;
|
|
471
|
+
|
|
472
|
+
const toc = document.createElement("div");
|
|
473
|
+
toc.id = "toc";
|
|
474
|
+
toc.innerHTML =
|
|
475
|
+
'<p class="title hide_toc"><a href="#"><strong>Table of Contents</strong></a></p>';
|
|
476
|
+
content.insertBefore(toc, content.firstChild);
|
|
477
|
+
toc.appendChild(topLevel);
|
|
478
|
+
|
|
479
|
+
const hideLink = query("#toc .hide_toc");
|
|
480
|
+
if (hideLink) {
|
|
481
|
+
hideLink.addEventListener("click", (event) => {
|
|
482
|
+
event.preventDefault();
|
|
483
|
+
const list = query("#toc .top");
|
|
484
|
+
const hidden = query("#toc").classList.toggle("hidden");
|
|
485
|
+
toggleDisplay(list, !hidden);
|
|
486
|
+
queryAll("#toc .title small").forEach((node) => {
|
|
487
|
+
toggleDisplay(node, hidden);
|
|
488
|
+
});
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
function navResizer() {
|
|
494
|
+
const resizer = document.getElementById("resizer");
|
|
495
|
+
|
|
496
|
+
if (!resizer) return;
|
|
497
|
+
|
|
498
|
+
if (!appState.navResizerBound) {
|
|
499
|
+
resizer.addEventListener(
|
|
500
|
+
"pointerdown",
|
|
501
|
+
(event) => {
|
|
502
|
+
resizer.setPointerCapture(event.pointerId);
|
|
503
|
+
event.preventDefault();
|
|
504
|
+
event.stopPropagation();
|
|
505
|
+
},
|
|
506
|
+
false,
|
|
507
|
+
);
|
|
508
|
+
resizer.addEventListener(
|
|
509
|
+
"pointerup",
|
|
510
|
+
(event) => {
|
|
511
|
+
resizer.releasePointerCapture(event.pointerId);
|
|
512
|
+
event.preventDefault();
|
|
513
|
+
event.stopPropagation();
|
|
514
|
+
},
|
|
515
|
+
false,
|
|
516
|
+
);
|
|
517
|
+
resizer.addEventListener(
|
|
518
|
+
"pointermove",
|
|
519
|
+
(event) => {
|
|
520
|
+
if ((event.buttons & 1) === 0) return;
|
|
521
|
+
|
|
522
|
+
safeSessionStorage.navWidth = String(event.pageX);
|
|
523
|
+
queryAll(".nav_wrap").forEach((node) => {
|
|
524
|
+
node.style.width = `${Math.max(200, event.pageX)}px`;
|
|
525
|
+
});
|
|
526
|
+
event.preventDefault();
|
|
527
|
+
event.stopPropagation();
|
|
528
|
+
},
|
|
529
|
+
false,
|
|
530
|
+
);
|
|
531
|
+
|
|
532
|
+
appState.navResizerBound = true;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
if (safeSessionStorage.navWidth) {
|
|
536
|
+
queryAll(".nav_wrap").forEach((node) => {
|
|
537
|
+
node.style.width = `${Math.max(200, parseInt(safeSessionStorage.navWidth, 10))}px`;
|
|
538
|
+
});
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
function navExpander(enabled) {
|
|
543
|
+
if (enabled === false) return;
|
|
544
|
+
if (typeof pathId === "undefined") return;
|
|
545
|
+
|
|
546
|
+
const frame = document.getElementById("nav");
|
|
547
|
+
const token = ++appState.navExpanderToken;
|
|
548
|
+
|
|
549
|
+
function postMessage() {
|
|
550
|
+
if (token !== appState.navExpanderToken) return;
|
|
551
|
+
expandNavPath(pathId);
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
clearTimeout(appState.navExpanderTimer);
|
|
555
|
+
if (frame) frame.addEventListener("load", postMessage, { once: true });
|
|
556
|
+
appState.navExpanderTimer = setTimeout(postMessage, 50);
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
function expandNavPath(path) {
|
|
560
|
+
const frame = document.getElementById("nav");
|
|
561
|
+
|
|
562
|
+
if (path == null || !frame || !frame.contentWindow) return;
|
|
563
|
+
frame.contentWindow.postMessage({ action: "expand", path: path }, "*");
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
function focusHashTarget(hashOverride) {
|
|
567
|
+
const hash =
|
|
568
|
+
typeof hashOverride === "string" ? hashOverride : window.location.hash;
|
|
569
|
+
if (!hash) return false;
|
|
570
|
+
|
|
571
|
+
const targetId = hash.slice(1);
|
|
572
|
+
let decodedTargetId = targetId;
|
|
573
|
+
|
|
574
|
+
try {
|
|
575
|
+
decodedTargetId = decodeURIComponent(targetId);
|
|
576
|
+
} catch (_error) {}
|
|
577
|
+
|
|
578
|
+
const target =
|
|
579
|
+
document.getElementById(decodedTargetId) ||
|
|
580
|
+
document.getElementById(targetId);
|
|
581
|
+
|
|
582
|
+
if (!target) return false;
|
|
583
|
+
|
|
584
|
+
target.scrollIntoView();
|
|
585
|
+
return true;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
function resetMainScroll() {
|
|
589
|
+
const main = query("#main");
|
|
590
|
+
|
|
591
|
+
if (main) {
|
|
592
|
+
main.scrollTop = 0;
|
|
593
|
+
main.scrollLeft = 0;
|
|
594
|
+
}
|
|
595
|
+
window.scrollTo(0, 0);
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
function mainFocus() {
|
|
599
|
+
if (!focusHashTarget()) {
|
|
600
|
+
resetMainScroll();
|
|
601
|
+
}
|
|
602
|
+
setTimeout(() => {
|
|
603
|
+
const main = query("#main");
|
|
604
|
+
if (main) main.focus();
|
|
605
|
+
}, 10);
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
function navigationChange() {
|
|
609
|
+
if (appState.navigationChangeBound) return;
|
|
610
|
+
|
|
611
|
+
window.addEventListener("popstate", () => {
|
|
612
|
+
navigateTo(window.location.href, {
|
|
613
|
+
pushHistory: false,
|
|
614
|
+
syncNav: true,
|
|
615
|
+
});
|
|
616
|
+
});
|
|
617
|
+
appState.navigationChangeBound = true;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
function sameDocumentUrl(left, right) {
|
|
621
|
+
const leftUrl = new URL(left, window.location.href);
|
|
622
|
+
const rightUrl = new URL(right, window.location.href);
|
|
623
|
+
|
|
624
|
+
return (
|
|
625
|
+
leftUrl.origin === rightUrl.origin &&
|
|
626
|
+
leftUrl.pathname === rightUrl.pathname &&
|
|
627
|
+
leftUrl.search === rightUrl.search
|
|
628
|
+
);
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
function contentPageUrl(url) {
|
|
632
|
+
const pageUrl = new URL(url, window.location.href);
|
|
633
|
+
|
|
634
|
+
pageUrl.hash = "";
|
|
635
|
+
return pageUrl.href;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
function updatePageState(doc, pageWindow) {
|
|
639
|
+
const nextMain = doc.querySelector("#main");
|
|
640
|
+
const currentMain = query("#main");
|
|
641
|
+
const currentClassListLink = query("#class_list_link");
|
|
642
|
+
const currentClassListClassName = currentClassListLink
|
|
643
|
+
? currentClassListLink.className
|
|
644
|
+
: null;
|
|
645
|
+
|
|
646
|
+
if (!nextMain || !currentMain) return false;
|
|
647
|
+
|
|
648
|
+
currentMain.innerHTML = nextMain.innerHTML;
|
|
649
|
+
document.title = doc.title;
|
|
650
|
+
|
|
651
|
+
if (currentClassListClassName && query("#class_list_link")) {
|
|
652
|
+
query("#class_list_link").className = currentClassListClassName;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
if (pageWindow && typeof pageWindow.pathId !== "undefined") {
|
|
656
|
+
pathId = pageWindow.pathId;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
if (pageWindow && typeof pageWindow.relpath !== "undefined") {
|
|
660
|
+
relpath = pageWindow.relpath;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
return true;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
function pageLoaderFrame() {
|
|
667
|
+
let frame = query("#page_loader");
|
|
668
|
+
|
|
669
|
+
if (frame) return frame;
|
|
670
|
+
|
|
671
|
+
frame = document.createElement("iframe");
|
|
672
|
+
frame.id = "page_loader";
|
|
673
|
+
frame.setAttribute("aria-hidden", "true");
|
|
674
|
+
frame.setAttribute("tabindex", "-1");
|
|
675
|
+
frame.style.display = "none";
|
|
676
|
+
document.body.appendChild(frame);
|
|
677
|
+
return frame;
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
function completeNavigation(url, options, pageWindow, pageDocument) {
|
|
681
|
+
const targetUrl = new URL(url, window.location.href);
|
|
682
|
+
|
|
683
|
+
if (!updatePageState(pageDocument, pageWindow)) return false;
|
|
684
|
+
|
|
685
|
+
window.__app({ rehydrateNav: false });
|
|
686
|
+
|
|
687
|
+
if (options.syncNav && typeof pathId !== "undefined") {
|
|
688
|
+
expandNavPath(pathId);
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
if (targetUrl.hash) {
|
|
692
|
+
focusHashTarget(targetUrl.hash);
|
|
693
|
+
} else {
|
|
694
|
+
resetMainScroll();
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
if (options.pushHistory) {
|
|
698
|
+
history.pushState({}, document.title, targetUrl.href);
|
|
699
|
+
}
|
|
700
|
+
appState.currentUrl = targetUrl.href;
|
|
701
|
+
|
|
702
|
+
return true;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
function navigateTo(url, options) {
|
|
706
|
+
const navigationOptions = Object.assign(
|
|
707
|
+
{ pushHistory: true, syncNav: false },
|
|
708
|
+
options || {},
|
|
709
|
+
);
|
|
710
|
+
const navigationId = ++appState.latestNavigationId;
|
|
711
|
+
const loader = pageLoaderFrame();
|
|
712
|
+
const resolvedUrl = new URL(url, window.location.href).href;
|
|
713
|
+
const loaderUrl = contentPageUrl(resolvedUrl);
|
|
714
|
+
|
|
715
|
+
if (sameDocumentUrl(appState.currentUrl, resolvedUrl)) {
|
|
716
|
+
const resolvedTargetUrl = new URL(resolvedUrl);
|
|
717
|
+
|
|
718
|
+
if (navigationOptions.pushHistory) {
|
|
719
|
+
history.pushState({}, document.title, resolvedUrl);
|
|
720
|
+
}
|
|
721
|
+
appState.currentUrl = resolvedUrl;
|
|
722
|
+
if (resolvedTargetUrl.hash) {
|
|
723
|
+
focusHashTarget(resolvedTargetUrl.hash);
|
|
724
|
+
} else {
|
|
725
|
+
resetMainScroll();
|
|
726
|
+
}
|
|
727
|
+
return;
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
scheduleMainLoading(navigationId);
|
|
731
|
+
|
|
732
|
+
loader.onload = () => {
|
|
733
|
+
let pageWindow;
|
|
734
|
+
let pageDocument;
|
|
735
|
+
let completed = false;
|
|
736
|
+
|
|
737
|
+
if (navigationId !== appState.latestNavigationId) return;
|
|
738
|
+
|
|
739
|
+
try {
|
|
740
|
+
pageWindow = loader.contentWindow;
|
|
741
|
+
pageDocument = loader.contentDocument || pageWindow.document;
|
|
742
|
+
completed = completeNavigation(
|
|
743
|
+
resolvedUrl,
|
|
744
|
+
navigationOptions,
|
|
745
|
+
pageWindow,
|
|
746
|
+
pageDocument,
|
|
747
|
+
);
|
|
748
|
+
} catch (_error) {
|
|
749
|
+
window.location.href = resolvedUrl;
|
|
750
|
+
return;
|
|
751
|
+
} finally {
|
|
752
|
+
if (navigationId === appState.latestNavigationId) {
|
|
753
|
+
cancelMainLoading();
|
|
754
|
+
}
|
|
755
|
+
if (completed) {
|
|
756
|
+
loader.onload = null;
|
|
757
|
+
loader.removeAttribute("src");
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
};
|
|
761
|
+
|
|
762
|
+
loader.src = loaderUrl;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
window.__app = (options) => {
|
|
766
|
+
const appOptions = options || {};
|
|
767
|
+
ready(() => {
|
|
768
|
+
navResizer();
|
|
769
|
+
navExpander(appOptions.rehydrateNav !== false);
|
|
770
|
+
createSourceLinks();
|
|
771
|
+
createDefineLinks();
|
|
772
|
+
createFullTreeLinks();
|
|
773
|
+
searchFrameButtons();
|
|
774
|
+
linkSummaries();
|
|
775
|
+
summaryToggle();
|
|
776
|
+
constantSummaryToggle();
|
|
777
|
+
generateTOC();
|
|
778
|
+
mainFocus();
|
|
779
|
+
navigationChange();
|
|
780
|
+
});
|
|
781
|
+
};
|
|
782
|
+
|
|
783
|
+
window.__app();
|
|
784
|
+
|
|
785
|
+
if (!appState.navigationListenerBound) {
|
|
786
|
+
window.addEventListener(
|
|
787
|
+
"message",
|
|
788
|
+
(event) => {
|
|
789
|
+
if (!event.data || event.data.action !== "navigate") return;
|
|
790
|
+
|
|
791
|
+
navigateTo(event.data.url, {
|
|
792
|
+
pushHistory: true,
|
|
793
|
+
syncNav: false,
|
|
794
|
+
});
|
|
795
|
+
},
|
|
796
|
+
false,
|
|
797
|
+
);
|
|
798
|
+
|
|
799
|
+
appState.navigationListenerBound = true;
|
|
800
|
+
}
|
|
801
|
+
})();
|