Add support for taking screenshots for all html pages in a deployed project. Screenshot functionality still requires phantomjs to be installed on your build server.
This adds a new field to autotune-config.json: screenshots. This field in the config file is optional, and will default to the value index. The previous behavior of the screenshot functionality is the same as the default value index.
The screenshots field has 3 possible values:
none: take no screenshots of this project
index: take screenshots of the top level index.html (the default)
all: take screenshots of every html file generated
Where do the screenshots go?
Screenshots are saved to a screenshots path in your project. There are 6 screenshots generated for each page.
Screenshots for the top-level index.html file will follow the form:
For screenshots beyond the top-level index, the path to the html file will be converted to a slug and prefixed to the screenshot filename. So for example, a page with the name /page2/index.html will have screenshots named:
Add support for taking screenshots for all html pages in a deployed project. Screenshot functionality still requires
phantomjs
to be installed on your build server.This adds a new field to
autotune-config.json
:screenshots
. This field in the config file is optional, and will default to the valueindex
. The previous behavior of the screenshot functionality is the same as the default valueindex
.The
screenshots
field has 3 possible values:none
: take no screenshots of this projectindex
: take screenshots of the top level index.html (the default)all
: take screenshots of every html file generatedWhere do the screenshots go?
Screenshots are saved to a
screenshots
path in your project. There are 6 screenshots generated for each page.Screenshots for the top-level index.html file will follow the form:
For screenshots beyond the top-level index, the path to the html file will be converted to a slug and prefixed to the screenshot filename. So for example, a page with the name
/page2/index.html
will have screenshots named:Similarly, a page with the name
/page2.html
will have the same slug as/page2/index.html
and will have the same screenshot filenames generated.Warning: screenshots take a while to generate so be careful with this feature on large projects.