-
Notifications
You must be signed in to change notification settings - Fork 693
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
Show warning header on previous versions of documentation #5081
Comments
It looks like this flag has been set, but the warning isn't showing up. It's possible that it doesn't retroactively apply to older versions unless they're rebuilt - rebuilding 1.0.0 to test. ... and it's still not showing up. |
Thanks again @simonft for the report, another user was just bitten by this issue. Will aim to investigate in the near future. |
One way to potentially solve this issue outside of read the docs and reducing the likelihood of serving stale docs would be for stable to always point to the same branch and keep that branch updated: we have a "latest release" branch (for example, |
How does |
stable builds off the latest tag so docs added after the tag is cut are not in the |
I like that approach, finally a good use for |
We should be able to finish this up during the 4/22-5/6 sprint. Thanks again @simonft for the report. As noted in the cross-linked PR above, we now have Next steps as I understand them:
I'm in favor of keeping the symbolic names @zenmonkeykstop Does that make sense? If so, could you file a ticket over in infra for the redirect pattern, if that is indeed required? |
Recapping this for posterity since we've gone back and forth over the years on the branching strategy for docs builds: Attempt 1Two versions of the docs:
Advantages:
Disadvantages:
Attempt 2Many versions of the docs:
Advantages:
Disadvantages:
Attempt 3 (what we now do)Two versions of the docs:
Advantages:
Disadvantages (just documenting, not saying we should address these yet):
|
Thanks so much for providing this background on our docs story. What do you think about these steps for improving the current process:
To set us up to continue the discussion on ways to improve how we manage docs, here are the two requirements that I've managed to gather afte picking @redshiftzero's 🧠 (please add more to the discussion if I'm missing anything or doing a terrible horrible no good very bad job of explaining things):
For req 2 we could use something like: https://github.com/freedomofpress/securedrop/releases/latest but we don't want to show release candidates in the docs as the latest so probably we'd need to use a webhook to come up with a way so that we have a link that always points to the latest that's not an rc - needs investigation... another issue is that we tag before we deploy our packages so we wouldn't want to trigger a new docs build when a new tag is created, instead we'd want to trigger a build after we deploy - probably has to be a manual process? |
Note about why we never need to point to old releases is that we only support the latest stable version of securedrop and provide upgrade instructions with each release. Also for the workstation there will be more automation to making sure folks are on the latest securedrop. |
Yep this is accurate, the third requirement would be to not require us to push a new tag to deploy changes. cc @zenmonkeykstop - if we want to do something to make it easier to do these maintenance merges like squashing commits into one per release it seems fine to do so (mentioning since this is relevant for the strategy in #5241). |
Description
It might be useful to show a warning at the top of the documentation when viewing versions older than the current release. It's possible to accidentally end up on older versions though searching or old links. It looks like this is a setting in readthedocs already: https://docs.readthedocs.io/en/stable/versions.html#version-warning
User Research Evidence
I somehow ended up on the 1.0.0 documentation, I think either through a link from somewhere else or by my having attempted to visit it directly and my browser auto-completing the url of the documentation from when I was reading it a while ago. I got concerning far into the process before noticing.
The text was updated successfully, but these errors were encountered: