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

Update code-level documentation #111

Merged
merged 12 commits into from
Sep 2, 2020
Merged

Update code-level documentation #111

merged 12 commits into from
Sep 2, 2020

Conversation

bensheldon
Copy link
Owner

@bensheldon bensheldon commented Aug 28, 2020

Connects to #48

bensheldon and others added 12 commits September 2, 2020 07:50
Co-Authored-By: Rob Brackett <74178+mr0grog@users.noreply.github.com>
This brings GoodJob to 89% documented -- the remaining bits are the methods on `LogSubscriber`, which didn't seem worth documenting since they merely mirror the names of notifications they respond to, so I feel like they're pretty self documenting. These can probably be handled with one of:
- `:nodoc:` comments (which unfortunately show up in the resulting docs)
- A macro that makes a pretty simplistic comment
- `@api nodoc` comments combined with `--hide-api nodoc` in the `.yardopts` file. This will hide them completely.

This also adds the `yard-activesupport-concern` gem, which is pretty helpful for documenting methods inside `included` and `class_methods` blocks, which are Rails features that are wind up hiding their contents from Yard.
Explain how it mainly relates to transactions and the visibility of new records.
@bensheldon bensheldon merged commit ae83e47 into main Sep 2, 2020
@bensheldon bensheldon deleted the code_docs branch September 2, 2020 15:03
@bensheldon bensheldon added the documentation Improvements or additions to documentation label Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants