mirror of
https://github.com/videojs/video.js.git
synced 2025-04-23 12:19:08 +02:00
Updated the CDN links in the setup guide
This commit is contained in:
parent
f135b97ce0
commit
4fe74d52a9
12
Gruntfile.js
12
Gruntfile.js
@ -348,6 +348,18 @@ module.exports = function(grunt) {
|
|||||||
grunt.file.write('dist/cdn/video.js', jsmin + cdnjs);
|
grunt.file.write('dist/cdn/video.js', jsmin + cdnjs);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
grunt.registerTask('cdn-links', 'Update the version of CDN links in docs', function(){
|
||||||
|
var doc = grunt.file.read('docs/guides/setup.md');
|
||||||
|
var version = pkg.version;
|
||||||
|
|
||||||
|
// remove the patch version to point to the latest patch
|
||||||
|
version = version.replace(/(\d\.\d)\.\d/, '$1');
|
||||||
|
|
||||||
|
// update the version in http://vjs.zencdn.net/4.3/video.js
|
||||||
|
doc = doc.replace(/(\/\/vjs\.zencdn\.net\/)\d\.\d(\.\d)?/g, '$1'+version);
|
||||||
|
grunt.file.write('docs/guides/setup.md', doc);
|
||||||
|
});
|
||||||
|
|
||||||
grunt.registerTask('dist', 'Creating distribution', ['dist-copy', 'zip:dist']);
|
grunt.registerTask('dist', 'Creating distribution', ['dist-copy', 'zip:dist']);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@ -75,6 +75,10 @@
|
|||||||
"desc": "Rebuild the docs",
|
"desc": "Rebuild the docs",
|
||||||
"exec": "grunt vjsdocs"
|
"exec": "grunt vjsdocs"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"desc": "Update the cdn urls in the docs",
|
||||||
|
"exec": "grunt cdn-links"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"desc": "Tag the release",
|
"desc": "Tag the release",
|
||||||
"exec": "grunt tagrelease"
|
"exec": "grunt tagrelease"
|
||||||
|
@ -20,8 +20,8 @@ You can download the Video.js source and host it on your own servers, or use the
|
|||||||
|
|
||||||
### CDN Version ###
|
### CDN Version ###
|
||||||
```html
|
```html
|
||||||
<link href="//vjs.zencdn.net/4.3/video-js.css" rel="stylesheet">
|
<link href="//vjs.zencdn.net/4.4/video-js.css" rel="stylesheet">
|
||||||
<script src="//vjs.zencdn.net/4.3/video.js"></script>
|
<script src="//vjs.zencdn.net/4.4/video.js"></script>
|
||||||
```
|
```
|
||||||
|
|
||||||
### Self Hosted. ###
|
### Self Hosted. ###
|
||||||
|
Loading…
x
Reference in New Issue
Block a user