ruby/lib/rdoc/generator/template/darkfish
Mike Dalessio 0b38e18488 [ruby/rdoc] feature: Render mixed-in methods and constants with
`--embed-mixins`
(https://github.com/ruby/rdoc/pull/842)

* Embed mixed-in methods and constants with `--embed-mixins`

When `--embed-mixins` option is set:

- methods from an `extend`ed module are documented as singleton methods
- attrs from an `extend`ed module are documented as class attributes
- methods from an `include`ed module are documented as instance methods
- attrs from an `include`ed module are documented as instance attributes
- constants from an `include`ed module are documented

Sections are created when needed, and Darkfish's template annotates
each of these mixed-in CodeObjects. We also respect the mixin methods'
visibility.

This feature is inspired by Yard's option of the same name.

* Add comment to document why we set object visibility

Co-authored-by: Stan Lo <stan001212@gmail.com>

* Add the mixin_from attribute to CodeObject's initializer

* Add test coverage for private mixed-in attributes.

---------

481c2ce660

Co-authored-by: Stan Lo <stan001212@gmail.com>
2024-10-17 20:40:34 +00:00
..
css [ruby/rdoc] feature: Render mixed-in methods and constants with 2024-10-17 20:40:34 +00:00
fonts
images
js [ruby/rdoc] Improve method source toggling 2024-10-10 09:45:41 +00:00
.document
_footer.rhtml
_head.rhtml [ruby/rdoc] Generate meta tags based on page's content 2024-10-15 22:59:33 +00:00
_sidebar_classes.rhtml
_sidebar_extends.rhtml
_sidebar_in_files.rhtml
_sidebar_includes.rhtml
_sidebar_installed.rhtml
_sidebar_methods.rhtml
_sidebar_navigation.rhtml
_sidebar_pages.rhtml
_sidebar_parent.rhtml
_sidebar_search.rhtml [ruby/rdoc] Add keydown event listener to focus on search field 2023-07-05 03:37:28 +00:00
_sidebar_sections.rhtml
_sidebar_table_of_contents.rhtml
_sidebar_toggle.rhtml [ruby/rdoc] Modernize RDoc Darkfish template CSS 2024-08-24 11:07:28 +00:00
_sidebar_VCS_info.rhtml
class.rhtml [ruby/rdoc] feature: Render mixed-in methods and constants with 2024-10-17 20:40:34 +00:00
index.rhtml [ruby/rdoc] Fix sidebar scroll again and add missing footer back 2024-08-15 13:33:00 +00:00
page.rhtml [ruby/rdoc] Fix sidebar scroll again and add missing footer back 2024-08-15 13:33:00 +00:00
servlet_not_found.rhtml [ruby/rdoc] Fix sidebar scroll again and add missing footer back 2024-08-15 13:33:00 +00:00
servlet_root.rhtml [ruby/rdoc] Fix sidebar scroll again and add missing footer back 2024-08-15 13:33:00 +00:00
table_of_contents.rhtml [ruby/rdoc] Fix sidebar scroll again and add missing footer back 2024-08-15 13:33:00 +00:00