-
Notifications
You must be signed in to change notification settings - Fork 229
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
feat: Add notice if viewing outdated versions of the spec #862
Conversation
✅ Deploy Preview for slsa canceled.
|
776079e
to
539b15d
Compare
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 proposing this @ianlewis! I think this is a great addition.
I wonder if we would be better off using the styling, and perhaps mechanism, of the existing "working draft" banner?
slsa/docs/_includes/header.html
Line 54 in d799c7b
<input id="important-messages-checkbox" type="checkbox" hidden> |
We could use the same styling and mechanism but with a different message if status is retired
vs. draft
?
I redid the message to use this and allowed both the draft and new version message to be dismissed separately. I also updated the versions data to be a list rather than an object so it could be ordered. |
|
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, Ian1
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, Ian!
@joshuagl PTAL. I think I need your approval to merge. |
of pages linking them to the corresponding page in the newest version of the spec (or the top page if the page doesn't exist). Also removes older "Note about 0.x versions" which referenced v1.0 before it was released. Removed because notices at the top of the page should supersede them. Co-authored-by: Joshua Lock <joshuagloe@gmail.com> Signed-off-by: Ian Lewis <ianlewis@google.com>
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.
Looks great, thanks Ian!
When viewing older versions of the spec, this PR adds a notice at the top of pages linking them to the corresponding page in the newest version of the spec (or the top page if the page doesn't exist).
Also removes older "Note about 0.x versions" which referenced v1.0 before it was released. Removed because notices at the top of the page should supersede them.