diff options
author | Manolo Carrasco <manolo@apache.org> | 2015-09-16 10:38:52 +0200 |
---|---|---|
committer | Manolo Carrasco <manolo@apache.org> | 2015-09-16 10:38:52 +0200 |
commit | 1943e2c1d4b964e64a572eee2515ae402b1e83c8 (patch) | |
tree | 32e27d2804abf4294d98a2d297826e40b0813e28 | |
parent | 2f2bf9b23580833da78e625bc11f462f98bc3f72 (diff) | |
download | vaadin-core-1943e2c1d4b964e64a572eee2515ae402b1e83c8.tar.gz vaadin-core-1943e2c1d4b964e64a572eee2515ae402b1e83c8.zip |
Fix links so as README works in master and cdn
-rw-r--r-- | LICENSE.html (renamed from LICENSE.md) | 0 | ||||
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | demo/index.html | 4 | ||||
-rw-r--r-- | tasks/cdn.js | 11 |
4 files changed, 6 insertions, 11 deletions
diff --git a/LICENSE.md b/LICENSE.html index 8469336..8469336 100644 --- a/LICENSE.md +++ b/LICENSE.html @@ -10,7 +10,7 @@ View live examples and source code side-by-side for individual custom elements. | Component | Description | | --- | --- | -| [<**vaadin-grid**>](https://github.com/vaadin/vaadin-grid) · [Examples](../../vaadin-grid/demo) · [API](../apidoc/#vaadin-grid) | Data grid for showing large amounts of tabular data. | +| [<**vaadin-grid**>](https://github.com/vaadin/vaadin-grid) · [Examples](https://cdn.vaadin.com/vaadin-components/0.3.0-snapshot/vaadin-grid/demo/) · [API](https://cdn.vaadin.com/vaadin-components/0.3.0-snapshot/vaadin-components/apidoc/#vaadin-grid) | Data grid for showing large amounts of tabular data. | ### Quickstart diff --git a/demo/index.html b/demo/index.html index de86190..3e0b6ae 100644 --- a/demo/index.html +++ b/demo/index.html @@ -29,7 +29,7 @@ xhr.onload = function (e) { if (xhr.readyState === 4) { if (xhr.status === 200) { - readme.innerHTML = xhr.responseText; + readme.innerHTML = marked(xhr.responseText); [].forEach.call(readme.querySelectorAll("pre"), function(pre) { var code = document.createElement("code"); code.innerHTML = pre.innerHTML; @@ -48,7 +48,7 @@ xhr.onerror = function (e) { console.error(xhr.statusText); }; - xhr.open("GET", "../README.html"); + xhr.open("GET", "../README.md"); xhr.send(); </script> diff --git a/tasks/cdn.js b/tasks/cdn.js index badaff0..481a3c9 100644 --- a/tasks/cdn.js +++ b/tasks/cdn.js @@ -28,14 +28,9 @@ gulp.task('cdn:stage-bower_components', function() { }); }); -gulp.task('cdn:stage-markdown', function() { - return gulp.src(['README.md', 'LICENSE.md']) - .pipe(markdown()) - .pipe(gulp.dest(stagingPath + "/vaadin-components")); -}); - -gulp.task('cdn:stage-vaadin-components', ['cdn:stage-markdown'], function() { - return gulp.src(['vaadin-components.html', 'demo/*', 'apidoc/*'], {base:"."}) +gulp.task('cdn:stage-vaadin-components', function() { + return gulp.src(['README.md', 'LICENSE.html', 'vaadin-components.html', 'demo/*', 'apidoc/*'], {base:"."}) + .pipe(replace('https://cdn.vaadin.com/vaadin-components/0.3.0-snapshot/', '../../')) .pipe(gulp.dest(stagingPath + "/vaadin-components")); }); |