-
Notifications
You must be signed in to change notification settings - Fork 286
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
Which version is stable? #3992
Comments
Interesting observation @rcomer. You are correct in that stable does not explicitly state what version it is. We are now using the standard approach to implemtnatin Read the Docs in that:
This can be seen by clicking on the green text of the current version that is being viewed, see pic: I agree that it would be an improvement for:
An issue that I thinks covers the second bullet point is already on the readthedocs github project, see readthedocs/readthedocs.org#4529 I have learnt a lot about how read the docs works in getting the Iris Docs revitalised so I will dwell on how to best approach this - I would like an elegant automated solution that needs no further changes upon new releases of Iris. |
Banner for the latest (unreleased) documentation now merged to master. See #3999. Next up will think about options to improve the version awareness of stable. |
Ref: Stable version to be clearA few options to achieve this: Option 1Adopt the numpy (https://numpy.org/doc/stable/) approach, where the main landing page (index) states the
Option 2Use templating to add the version explicitly to the read the docs version in the top left corner under the logo. This is achievable. The logic could check for stable and then add (v3.0.1) after it.
Option 3The logo at the top left corner of the docs is currently a png file, created from the svg file. The svg file was not used when the docs were moved to Read the Docs (iris 3) as it would not render correctly in a web browser (would trim the right side). However as an svg file is essentially text we could use templating to substitute a version number within the image.
Note that https://matplotlib.org/devdocs/index.html uses a similar approach to Option 2 but visually looks like Option 3. In that is uses (a lot) of custom templating) and then a html div to insert the version number on top of an image (I think). Option 4Use templating (like option 2) but focus on the breadcrumbs at the top of the page. For example: "(house icon) » Contributing to the Code Base » Testing » Running the Tests" would instead be "(house icon) Iris v3.0.1 » Contributing to the Code Base » Testing » Running the Tests"
Brain dump over - comments welcome, particularly if you have a more elegant idea. |
I have tested my own SVG for RTD rendering and it seems to be fine. That SVG is proposed in SciTools/marketing#1, but I have been waiting for some time for @abooton to review it as agreed offline. The programmatic generation may also be helpful in solving the Cons you referenced above, although the exact nature of how this would be integrated into Iris is up for debate (see #3935 for a fully automated example). Unfortunately I can only undertake further work on this in my spare time at the moment. |
From a user standpoint I think the best is Option 2, even if it is a minor headache for us. Is there perhaps a sphinx extension that could help us out? |
Wow, thanks for digging into this @tkknight, it’s rather more complicated than I could have imagined! |
I definitely like the idea of having it in the sidebar (options 2 or 3). As well as being visible on every page, it’s consistent with where the number appears for all the other released pages. So more intuitive for the user to find. I have no opinions from the development point of view... |
IMHO the best choice is option 2. However, We could actually do this, and @tkknight has demonstrated that this is possible, but technically it puts us in a difficult and risky position as we could just break the documentation due to changes within the I'd like to hold out for option 2... but we can't hold our breath; it requires a The cheap win is option 1. Let's go for that, and perhaps once we've sorted out the final logo (nudge @abooton 😉 ) then option 3 will be achievable and on the table. Also let's keep our eye on any movement from Does this sound reasonable guys? If so, action option 1 and close this issue 👍 @tkknight Between ourselves we can monitor the |
Thanks all! Yes this makes sense to me. |
PR #4030 to implement option 1. |
Tech Debt issue created. See #4031 |
📚 Documentation
If I look at the docs for our "stable" version, I can't see anything that tells me this is (currently) Iris v3.0.1:
https://scitools-iris.readthedocs.io/en/stable/
Constrast this with, say, numpy, where it's really obvious that the stable version is v1.20.
https://numpy.org/doc/stable/
Could we add something to the side bar to show the exact version? It might also be good to add something to the "latest" docs to indicate that this is for the unreleased version - Matplotlib does this with a big red stripe across the top:
https://matplotlib.org/devdocs/index.html
The text was updated successfully, but these errors were encountered: