Skip to content
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

Simplify the specifications list template. #271

Merged
merged 1 commit into from Jan 19, 2022

Conversation

MarkLodato
Copy link
Member

@MarkLodato MarkLodato commented Jan 19, 2022

Similar to e56c388 (#270), but for the list of subpages in /spec/v0.1/index. This change replace the "automatic" code with a manual list, which is much easier to understand and maintain.

No content change. The only HTML change is to switch from absolute to relative links and to eliminate empty <li> elements.

NOTE: Neither the original nor new code correctly handled displaying more than one specification version. This commit adds a TODO making it clear that it doesn't work.

Testing

The old and new version result in identical HTML except as noted above, ignoring one whitespace change and build timestamps on posts.

$ git checkout main
$ bundle exec jekyll build
$ mv _site /tmp/old_site
$ git checkout spec-list
$ bundle exec jekyll build
$ diff -u {/tmp/old_site,_site}/spec/v0.1/index.html

Compare:

@netlify
Copy link

netlify bot commented Jan 19, 2022

✔️ Deploy Preview for slsa ready!

🔨 Explore the source changes: ede4666

🔍 Inspect the deploy log: https://app.netlify.com/sites/slsa/deploys/61e82709a37a000007c01c4e

😎 Browse the preview: https://deploy-preview-271--slsa.netlify.app

Similar to e56c388 (slsa-framework#270), but for the list of subpages in
/spec/v0.1/index. This change replace the "automatic" code with a manual
list, which is much easier to understand and maintain.

No content change. The only HTML change is to switch from absolute to
relative links and to eliminate empty `<li>` elements.

NOTE: Neither the original nor new code correctly handled displaying
more than one specification version. This commit adds a TODO making it
clear that it doesn't work.

Signed-off-by: Mark Lodato <lodato@google.com>
@MarkLodato
Copy link
Member Author

Thanks for the quick reviews!

@MarkLodato MarkLodato merged commit ddde08e into slsa-framework:main Jan 19, 2022
@MarkLodato MarkLodato deleted the spec-list branch January 19, 2022 15:22
Copy link

@NANOKINGJOKER NANOKINGJOKER left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My accounts was lock in awebo68.net.
It important for me

@trishankatdatadog
Copy link
Member

How do we block @NANOKINGJOKER?

@MarkLodato
Copy link
Member Author

How do we block @NANOKINGJOKER?

Already done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants