eecs485staff / primer-spec

A Jekyll theme for sites with content-heavy pages
https://eecs485staff.github.io/primer-spec/
MIT License
22 stars 13 forks source link

[Primer Spec Preview] Add a button to redirect to a diff view #258

Closed seshrs closed 10 months ago

seshrs commented 10 months ago

I recently discovered that the W3C provides a service to compare two HTML pages. It works best when the changes are merely text and not HTML changes.

A few UMich courses use Primer Spec Preview to build a website preview of their project specs whenever they make GitHub PRs. Hopefully, the W3C service could be helpful in reviewing large PRs.

[!NOTE]
This commit updates Primer Spec to show a button that redirects to the W3 service. This button is only shown on Primer Spec pages hosted on Primer Spec Preview. (Hence, this change is not expected to be visible to students.)

Screenshot 2024-01-17 at 7 49 48 AM Screenshot 2024-01-17 at 7 51 16 AM
github-actions[bot] commented 10 months ago

The spec from this PR is available at https://preview.sesh.rs/previews/eecs485staff/primer-spec/258/.

(Available until Fri Feb 16 2024.)