github / view_component Public
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
Dynamically generate configuration docs using YARD #968
Conversation
Do you think it could be useful to mention the Also, what do you think about having a dedicated "Configuration" item in the website navigation? (maybe as a child of "API") |
Co-authored-by: Hans Lemuet <Spone@users.noreply.github.com>
Co-authored-by: Hans Lemuet <Spone@users.noreply.github.com>
@Spone that's a tricky one. I could go either way. I'll give it some thought, this PR isn't going to be done today |
@Spone I think I've gotten this to a good point for now. I ended up removing the backticks as they made visually scanning the page difficult to my eyes. I think we should aim to flesh out the documentation in further PRs and then revisit the idea of splitting it up into pages. |
This PR adds documentation for configuration options, generated using YARD.
I've reused some code @khiga8 wrote for Primer ViewComponents to extract
mattr_accessor
s.I also took the liberty of sorting the existing instance methods alphabetically.
[Closes #953]