-
Notifications
You must be signed in to change notification settings - Fork 44
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
Automate screenshots #31
Comments
@The-Compiler @jgkamat @cal2195 @neeasade @RealyUniqueName Any of you who are interested, I just pushed a commit to the multi-theme branch that generates screenshots with PhantomJS by running |
@alphapapa, I think that my pngcrush seems to be different from your version, it seems to error out when I run I'm using
The docs for my pngcrush say the usage is similar to pngcrush [options] [infile.png] [outfile.png] The error I'm getting is
Maybe pngcrush should be called with the same infile or outfile? I'm using the pngcrush from the debian repos fwiw. |
Sorry, I forgot that I had aliased pngcrush on my system to a script that only takes one filename. I'll fix that. Thanks. |
Done. Should work now! |
Yeah, it could use some more tweaking, for sure. The Disqus one I'm not sure about. The CSS is probably out-of-date by now, anyway, so maybe we should just remove that sheet. I don't even remember if I've ever used it, myself. What do you think? The DDG one is weird. We can try adjusting the timeout, but I'm guessing it's either a problem with the CSS we're adding, or something to do with PhantomJS. Or maybe we could load a DDG URL that doesn't use JS? The GitHub header is really annoying! I think it actually wouldn't be too difficult to fix that: we just need a JS function that clicks to dismiss it, and then we store JS that needs to be run for a screenshot in a file, and load and evaluate that in PhantomJS. I wish we didn't need to do that, but it seems like a reasonable thing to do. Are you good with JS by any chance? I can muddle through it when I have to, but I generally haven't done JS in years, so it takes me a while to google around for things I don't know. I am reluctant to "pollute" the |
I don't use disqus either, so I don't mind if it was removed. Maybe we should make a 'retired' folder for retired styl files?
Duckduckgo has a nojs mode: https://duckduckgo.com/html (which is probably the best way to do this)
No, not at all :(. An easy fix would be to point to the issues page or the readme directly rather than the root of the repo. I don't think it's worth spending effort on trying to clear the header, fwiw :)
Agreed, maybe we should move supporting files into their own folder, or make a subfolder for every site file (as you suggested) |
Thanks, I'll see what I can do. |
I updated the screenshots branch recently, and today @non-Jedi brought to my attention that the GitHub ones are blank. The GitHub stylesheet is actually working fine (I'm using it now), but apparently several sites are no longer compatible with PhantomJS (fewer than were a year ago). I guess we need to use a different headless browser for screenshots. I'm not interested in working on this anytime soon, so I'm going to un-self-assign and tag it help-wanted, in case someone wanders by who does want to fix it. |
I've made some progress on generating screenshots automatically:
[see second comment]
It uses PhantomJS (which is in Debian). Call it like this:
Issues that remain:
The text was updated successfully, but these errors were encountered: