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

Adding Yard Tags into a template #20

Merged
merged 6 commits into from
Dec 16, 2024
Merged

Adding Yard Tags into a template #20

merged 6 commits into from
Dec 16, 2024

Conversation

skatkov
Copy link
Owner

@skatkov skatkov commented Dec 16, 2024

Yard object have tags linked to them

https://rubydoc.info/gems/yard/file/docs/TagsArch.md

These tags contain a lot of useful information - returned type, accepted attributes, deprecation notices, links to more documentation and etc.

It's a pity that yard-markdown doesn't include that information, this is a PR that resolves that. I'm going through all possible tags that CodeObject has associated and adding them to output.

Technical part

I added example_yard.rb file that we can use to generate yard example, that has these yard tags. example.rb go renamed to example_rdoc.rb to align with this naming.

@skatkov skatkov changed the title Yard Tags integration in templates WIP: Yard Tags integration in templates Dec 16, 2024
example/Fish.md Outdated Show resolved Hide resolved
@skatkov skatkov changed the title WIP: Yard Tags integration in templates Adding Yard Tags into a template Dec 16, 2024
@skatkov skatkov merged commit 90288af into main Dec 16, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant