Skip to content

Commit be97dd1

Browse files
committedMar 18, 2018
Switch screenshot pipeline to Puppeteer
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
1 parent 359a1ec commit be97dd1

File tree

3 files changed

+5
-49
lines changed

3 files changed

+5
-49
lines changed
 

‎scripts/take_screenshot.js

-46
This file was deleted.

‎site/README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@ This site requires:
22

33
* Nikola
44
* site-requirements.txt installed
5-
* PhantomJS in $PATH (for screenshots)
6-
* OptiPNG in $PATH (recommended)
5+
* Node in $PATH
6+
* Puppeteer in `node_modules` (run `setup-puppeteer.sh`)
7+
* Chrome/ium browser installed in one of the locations listed in `take-screenshot.js`
8+
* OptiPNG in $PATH

‎site/plugins/pkgindex_theme_demo_screenshots/pkgindex_theme_demo_screenshots.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def build_demo(theme, themes_dir, demo_source, demo_destination):
9393

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

9999

0 commit comments

Comments
 (0)
Please sign in to comment.