Skip to content

Commit

Permalink
Add screenshot to readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanHerman committed Feb 18, 2018
1 parent c83c725 commit 3aff771
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,13 @@ module.exports = function(grunt) {

}

// Screenshots
if ( grunt.file.exists( 'github-assets/screenshot-1.png' ) ) {

readme = readme.replace( '## Install Instructions ##', "## Screenshots ##\r\n\r\n![Screenshot 1](github-assets/screenshot-1.png)\r\n\r\n## Install Instructions ##" );

}

// Tag links
readme = readme.replace( matches[0], section );

Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ Example: `wp-content/uploads/webp/`

On the front end of your site, if a `.webp` format is available for the media element than the `.webp` format will be served. If not, or if a browser doesn't support `.webp` formats - then the original image will be served to the browser.

## Screenshots ##

![Screenshot 1](github-assets/screenshot-1.png)

## Install Instructions ##

1. Install cwebp - https://developers.google.com/speed/webp/docs/cwebp
Expand Down
Binary file added github-assets/screenshot-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3aff771

Please sign in to comment.