-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Add 'Introduced in Catch 2...' to docs, for recent Catch releases #1695
Conversation
I’ll have a look at the failing builds - I wasn’t expecting documentation-only changes to break the builds, so didn’t run tests... |
That's due to 52f3aba, as it turns out, path normalization is tricky. |
Thanks So do you have any comments on the changes I made, or am I OK to carry on with some recent releases? |
Yeah, this looks perfectly fine. There is an open question though, if there is both an issue and a PR related to the feature, which one do you link? |
Having looked at a few of these pairs, I recommend linking the PR...
So I would select the PR as the link to include in the docs. I found that github links to PRs work even if you put /issues/ in the URL - e.g. #1614 redirects to #1614 - so I didn't make the script detect whether a link was a PR or an issue... Partly for simplicity, and partly because it looked at first glance like more links in the release notes were issues than PRs. |
Okay, that sounds good. |
Codecov Report
@@ Coverage Diff @@
## master #1695 +/- ##
=======================================
Coverage 83.91% 83.91%
=======================================
Files 123 123
Lines 3405 3405
=======================================
Hits 2857 2857
Misses 548 548 |
Codecov Report
@@ Coverage Diff @@
## master #1695 +/- ##
=========================================
+ Coverage 86.18% 86.2% +0.02%
=========================================
Files 136 136
Lines 5180 5174 -6
=========================================
- Hits 4464 4460 -4
+ Misses 716 714 -2 |
Release 2.7.0 made a number of small changes to the generator documentation: These are summarised here: I've been unable to see succinct ways to insert 'Introduced in Catch 2.7.0.' notes for these changes. Suggestions appreciated, if you think it's worth doing,,, |
My current thinking on this PR is to go as far back as v2.3.0 which was released on 23 Jul 2018, i.e. a year ago... That'll take a few more hours, so I might stop sooner - but I'm thinking I'll keep going as I have been learning useful things about Catch2 along the way... |
docs/generators.md
Outdated
@@ -96,6 +96,8 @@ scope and thus capturing references is dangerous. If you need to use | |||
variables inside the generator expression, make sure you thought through | |||
the lifetime implications and use `GENERATE_COPY` or `GENERATE_REF`.** | |||
|
|||
**Note**: `GENERATE_COPY` and `GENERATE_REF` were introduced in Catch 2.7.1. |
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.
I think this would look better if it used the same convention as the rest of these...
GENERATE_COPY
andGENERATE_REF
were introduced in Catch 2.7.1.
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.
Thanks for the feedback! Done in 3d91219 ...
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.
I later realised that you meant to use the Quote style - with >
prefix on this line, which is much better,
I've now done that for all in 3f04c2f.
Hi @horenmar I believe that I have now updated the docs for all documented features from 2.3.0 to 2.9.1 inclusive... Other than reviewing the later changes, I think outstanding questions are:
One idea would be:
A nice by-product of that will be to prevent users accidentally trying to use features that have not yet been released. Whatever the conclusion, it would be good to have instructions added to the contributing page... |
One of the windows builds failed: https://ci.appveyor.com/project/CatchOrg/catch2/builds/26151371/job/uqoc1hp9oamj6dug#L24 I don't think that was caused by these documentation-only changes. |
I think the best way is to standardize on a small set of markers, IIRC right now only two kinds are used, the simple
and, when more specificity is needed:
So we could say that when the version is not yet known, it should be written down as We will also need to document this information in |
That sounds great - thank you. |
@horenmar It looks like my edits aren't yet merged. If that's true, is there anything else that you would like done? I'm only asking as I'd like to avoid anyone making conflicting edits in the files I changed... |
@claremacrae I'd like to have the changes to |
OK thanks. Did you want to do that, or would you like me to have a go? |
I'd prefer if you did it. |
Ah right, OK sure, happy to do that. |
@claremacrae I threw together some documentation, can you take a look? |
@horenmar It's great - thank you very much! |
Oh - @horenmar - maybe add a note to add this at the bottom of new pages too: ---
[Home](Readme.md#top) |
Okay, I'll rebase the PR in the evening and then merge it. |
Code copied from projects/SelfTest/UsageTests/Class.tests.cpp
Description
This is a work-in-progress - more changes coming later
Add a mechanism -
scripts/extractFeaturesFromReleaseNotes.py
to generate text for pasting in to docs/*.md, to indicate the release number in which recent features were added.GitHub Issues
Partial implementation of this part of #1667
Notes
So far, I've just added the text 'Introduced in Catch 2.9.0.' - to get feedback on whether this is the kind of thing you expected, @horenmar ...
After initial feedback, I'll fill in the text for more releases.