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

Copy images into the preview #6

Open
jyasskin opened this issue May 16, 2017 · 5 comments
Open

Copy images into the preview #6

jyasskin opened this issue May 16, 2017 · 5 comments

Comments

@jyasskin
Copy link
Contributor

The preview for @equalsJeffH's w3c/webauthn#463 failed to copy https://s3.amazonaws.com/pr-preview/w3c/webauthn/images/fido-attestation-structures.svg into place, leading to a broken link in https://s3.amazonaws.com/pr-preview/w3c/webauthn/jeffh-redraw-fig3.html#sctn-attestation.

Bikeshed's Echidna support defaults to including the images, diagrams, and examples directories, and perhaps pr-preview should do the same. Ideally there'd also be a way in .pr-preview.json to add files.

@tobie
Copy link
Owner

tobie commented Jul 26, 2017

This sounds like a nice improvement to pr-preview. I don't really have the cycles to tackle that though, so I welcome a pull request for it if anyone cares enough about it to make it work.

@marcoscaceres
Copy link

I just found myself wanting this too... could you provide some brief details of what would need to be done to implement this? Should image resources be the added to the .pr-preview config? or would there be better way of doing it?

@tobie
Copy link
Owner

tobie commented Mar 9, 2018

iirc, Bikeshed has some mechanism for this. That’s where I’d start looking. Other options include using jsdom to find all IMG elements. I’m planning to use jdsom to fix the weird line breaks that are generated by the differ, so maybe that’s something we could just add on top of it?

@xfq
Copy link
Contributor

xfq commented Apr 19, 2021

As I mentioned in speced/speced-cg#1 , another problem is that if the PR submitter only modifies files like images, there will be no preview.

@tobie
Copy link
Owner

tobie commented Apr 19, 2021

As I mentioned in w3c/speced-cg#1 , another problem is that if the PR submitter only modifies files like images, there will be no preview.

We already have infrastructure to enable this for Bikeshed includes which could be repurposed.

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

No branches or pull requests

4 participants