Skip to content

Commit

Permalink
Merge pull request #6 from zviryatko/master
Browse files Browse the repository at this point in the history
Update screenshots url to new domain
  • Loading branch information
stephenharris committed Aug 26, 2015
2 parents d617e28 + b097dc5 commit 50820cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tasks/wp_readme_to_markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = function(grunt) {
grunt.registerMultiTask('wp_readme_to_markdown', 'Converts WP readme.txt file to markdown (readme.md)', function() {

var options = this.options({
screenshot_url: 'http://s.wordpress.org/extend/plugins/{plugin}/{screenshot}.png',
screenshot_url: 'http://ps.w.org/{plugin}/assets/{screenshot}.png',
});

grunt.verbose.writeflags( options );
Expand Down
4 changes: 2 additions & 2 deletions test/expected/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ Answer to foo bar dilemma.
## Screenshots ##

### 1. This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from ###
![This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from](http://s.wordpress.org/extend/plugins/plugin-name/screenshot-1.png)
![This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from](http://ps.w.org/plugin-name/assets/screenshot-1.png)

the /assets directory or the directory that contains the stable readme.txt (tags or trunk). Screenshots in the /assets
directory take precedence. For example, `/assets/screenshot-1.png` would win over `/tags/4.3/screenshot-1.png`
(or jpg, jpeg, gif).
### 2. This is the second screen shot ###
![This is the second screen shot](http://s.wordpress.org/extend/plugins/plugin-name/screenshot-2.png)
![This is the second screen shot](http://ps.w.org/plugin-name/assets/screenshot-2.png)


## Changelog ##
Expand Down

0 comments on commit 50820cf

Please sign in to comment.