Pārlūkot izejas kodu

Fix links so as README works in master and cdn

tags/0.3.0-beta9
Manolo Carrasco pirms 8 gadiem
vecāks
revīzija
1943e2c1d4
4 mainītis faili ar 6 papildinājumiem un 11 dzēšanām
  1. 0
    0
      LICENSE.html
  2. 1
    1
      README.md
  3. 2
    2
      demo/index.html
  4. 3
    8
      tasks/cdn.js

LICENSE.md → LICENSE.html Parādīt failu


+ 1
- 1
README.md Parādīt failu

@@ -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) &middot; [Examples](../../vaadin-grid/demo) &middot; [API](../apidoc/#vaadin-grid) | Data grid for showing large amounts of tabular data. |
| [<**vaadin-grid**>](https://github.com/vaadin/vaadin-grid) &middot; [Examples](https://cdn.vaadin.com/vaadin-components/0.3.0-snapshot/vaadin-grid/demo/) &middot; [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

+ 2
- 2
demo/index.html Parādīt failu

@@ -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>

+ 3
- 8
tasks/cdn.js Parādīt failu

@@ -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"));
});


Notiek ielāde…
Atcelt
Saglabāt