Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RBS - RDoc Plugin #1048

Merged
merged 14 commits into from
Jul 27, 2022
Merged

RBS - RDoc Plugin #1048

merged 14 commits into from
Jul 27, 2022

Conversation

raosush
Copy link
Contributor

@raosush raosush commented Jun 24, 2022

Description

  • Support for documentation generation from RBS files
  • Implementing the feature as a RDoc plugin

Changes

  • Added code for registering plugin while running RDoc
  • Added support for classes, modules, methods, constants, attributes, method aliases

Further Improvements

  • Support the AST::Declarations of RBS

@soutaro soutaro self-assigned this Jun 26, 2022
@raosush raosush force-pushed the rbs_rdoc_plugin branch 2 times, most recently from b75d380 to 350439f Compare July 1, 2022 07:40
raosush and others added 7 commits July 22, 2022 18:52
- Added code required for RDoc plugin
- Currently documentation supported for classes, modules, constant, methods

Signed-off-by: Sushanth Sathesh Rao <57192414+raosush@users.noreply.github.com>
- Attributes
- Method Alias

Added support for source code to be displayed in generated documentation
- Generate documentation for interfaces, included & extended modules
* Refactored RDoc::Parser::RBS to make unit testing easier
* Adding some test cases

Co-authored-by: Sushanth Sathesh Rao <raosush@users.noreply.github.com>
- Added unit tests for all declarations
- Currently, classes, modules, methods, aliases, attributes, includes, extends are supported and have been tested
Copy link
Member

@soutaro soutaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏

stdlib/rdoc/0/rdoc.rbs Outdated Show resolved Hide resolved
lib/rdoc/parser/rbs.rb Outdated Show resolved Hide resolved
lib/rdoc/parser/rbs.rb Outdated Show resolved Hide resolved
test/rbs/rdoc/rbs_parser_test.rb Outdated Show resolved Hide resolved
test/rbs/rdoc/rbs_parser_test.rb Outdated Show resolved Hide resolved
test/rbs/rdoc/rbs_parser_test.rb Outdated Show resolved Hide resolved
soutaro and others added 4 commits July 25, 2022 00:32
- Move the parser to definition to `discover.rb`
- Move the rdoc plugin files to rdoc_plugin directory
- Rename files
- Rewrite signatures for the above changes
@raosush raosush requested a review from soutaro July 26, 2022 16:51
@soutaro soutaro marked this pull request as ready for review July 27, 2022 13:20
Copy link
Member

@soutaro soutaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 🎉

@soutaro soutaro merged commit 9cbd008 into ruby:master Jul 27, 2022
@raosush raosush deleted the rbs_rdoc_plugin branch July 28, 2022 10:03
@soutaro soutaro added this to the RBS 2.7.0 milestone Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants