Skip to content
Permalink
Browse files
Switch screenshot pipeline to Puppeteer
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Mar 18, 2018
1 parent 359a1ec commit be97dd1f92b2e9e30ac45e09ebc146380b663758

This file was deleted.

@@ -2,5 +2,7 @@ This site requires:

* Nikola
* site-requirements.txt installed
* PhantomJS in $PATH (for screenshots)
* OptiPNG in $PATH (recommended)
* Node in $PATH
* Puppeteer in `node_modules` (run `setup-puppeteer.sh`)
* Chrome/ium browser installed in one of the locations listed in `take-screenshot.js`
* OptiPNG in $PATH
@@ -93,7 +93,7 @@ def build_demo(theme, themes_dir, demo_source, demo_destination):

def take_screenshot(index, destination):
"""Take a screenshot of the demo site and save as destination."""
subprocess.check_call(['phantomjs', '../scripts/take_screenshot.js', index, '1024', '768', destination])
subprocess.check_call(['node', 'take_screenshot.js', index, '1024', '768', destination])
subprocess.call(['optipng', destination])


0 comments on commit be97dd1

Please sign in to comment.