-
Notifications
You must be signed in to change notification settings - Fork 226
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
editorial: move provenance and VSA under spec dir #939
editorial: move provenance and VSA under spec dir #939
Conversation
Redirect /provenance/v1 and /verification_summary/v1 to /spec/v1.0/provenance and /spec/v1.0/verification_summary, respectively, and similarly for older versions. (`predicateType` URIs do NOT change.) Reasons for this change: - Make it obvious to the reader that all three are versioned together and that they form one cohesive specification. - Make it easier to implement versioning via branches/tags. Previously we would have had to have either three separate sets of branches/tags or three sets of directories within each branch/tag, and then merge files within one directory. Now we can have each version directory correspond to a branch/tag, which is simpler to understand and maintain. - To show the minor version in the URL bar, without affecting the major-version-only `predicateType`. Related changes: - Redirect old URLs to the new location to allow them to continue working. - Update any existing links that would have been broken by the change, namely links to `.md` files and links using relative paths. - Do not update links to redirected URLs, in order to minimize the size of this PR. Optionally, a future PR could clean this up. - Move images and schema files too, since (a) links have to be updated anyway and (b) it aligns with slsa-framework#936. - Fix the version selector to properly handle v0.2, which only exists for provenance and verification_summary. - Also remove the name "Core specification" from the banner since is now the only specification. - Add provenance and verification_summary the "onepage" view. This was not possible before. Ideally this would have been broken up into smaller changes, but I could not figure out a way to do so that would have left the site continuing to work. Signed-off-by: Mark Lodato <lodato@google.com>
62ba28a
to
15a4f9c
Compare
✅ Deploy Preview for slsa ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for slsa ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Although this is technically only an "editorial" change, I think it warrants having several reviewers since the URL is quite an important property. |
Previously the links on the nav bar used the old URLs, e.g. /provenance/v1, which did not correctly highlight the current page. Signed-off-by: Mark Lodato <lodato@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.
This looks good. Nice to see fewer directory traversals in our URLs.
Signed-off-by: Mark Lodato <lodato@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.
Minor comment but not a real problem. LGTM.
Signed-off-by: Mark Lodato <lodato@google.com>
Redirect /provenance/v1 and /verification_summary/v1 to
/spec/v1.0/provenance and /spec/v1.0/verification_summary, respectively,
and similarly for older versions. (
predicateType
URIs do NOT change.)Reasons for this change:
and that they form one cohesive specification.
we would have had to have either three separate sets of branches/tags
or three sets of directories within each branch/tag, and then merge
files within one directory. Now we can have each version directory
correspond to a branch/tag, which is simpler to understand and
maintain.
major-version-only
predicateType
.Related changes:
working.
namely links to
.md
files and links using relative paths.size of this PR. Optionally, a future PR could clean this up.
anyway and (b) it aligns with impl: move images to versioned spec directory #936.
for provenance and verification_summary.
now the only specification.
not possible before.
Ideally this would have been broken up into smaller changes, but I could
not figure out a way to do so that would have left the site continuing
to work.