-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Regenerate doc with recent yard to avoid visual issue in "Inherits" #152
Conversation
Given that this PR only affects 3.8... |
This diff is too big to verify, @benoittgt if you're happy these changes are beneficial go ahead and merge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, missed that it's only for 3.8.
No plans to fix earlier versions? I guess we can only glance over and hope it's ok anyway.
If you, or anyone else wishes to put the time in to update them, I'm happy for that to happen, the problem is that we simply can't verify the docs are identical, so we've typical gone with "what worked at the time" and crossed fingers. |
In an ideal world... there would be a source code repo that simply generated docs and verified the output, and we wouldn't inspect the result of that pipeline, just update yard and rerun on all versions, but we don't have that 😂 |
tl;dr : How many gem versions we want to maintain? The issue is there is a lot of change in rdoc or yard. So CSS/HTML can be altered a lot and with the amount of doc we have it is complicated to track, even with visual tool like Percy. I ran Percy for this PR but only on With the visual diff we can see that now bulleted list have a different space between items. So it means that every time we have list, the visual diff turns into a mess for the rest of the web page. :) If we use webpage text content diff we will still have surprise because html structure can change over time. For example we can see again that we need to backport rspec/rspec-core@5de10ff to 3.8 if we want to keep the doc of rspec-core's formatter fully visible... If we want to fix the visual glitch (#148) on versions < 3.9 we need to:
We should set a limit of version we maintain for documentation (same as Ruby version) because this lead to too much work. When I watch this numbered list, it makes documentation like a mandatory patch version for our gems and it is probably not the path we want to take. 😄 Sorry for this out of thread comment. Thanks for you reviews. With all of what I said, I am not sure we want to merge this PR. 😕 |
Thanks for this comprehensive explanation. You are more than right, @benoittgt. With all this in mind, I vote to support only the current version. Thank you for making an extra mile with fixing the previous version. It was my mistake to file #148 in the first place. |
No no, it was a good thing. We just need to clarify how much we want to maintain gem version. I should have ask earlier. :) |
We should go to best efforts maintain the current version docs, but we don't have the bandwidth to re-generate old docs., that said if someone does do it then it's ok to merge them within reason. I'm happy with this if you want to merge it @benoittgt |
Fix: #148
I used from
rspec-dev
:bundle exec rake "update_docs[3.8, 3-8-maintenance]"
We jump related dependencies too (rdoc for example because we use a different Ruby version).
An example of a yard footer to see the bump in versions.
Side note. I noticed that the footer was not fully visible on Firefox. lsegal/yard#1346