-
Notifications
You must be signed in to change notification settings - Fork 17
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
Comments
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. |
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 |
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? |
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. |
We already have infrastructure to enable this for Bikeshed includes which could be repurposed. |
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
, andexamples
directories, and perhaps pr-preview should do the same. Ideally there'd also be a way in.pr-preview.json
to add files.The text was updated successfully, but these errors were encountered: