From: Teemu Pòˆntelin Date: Wed, 18 Nov 2015 12:30:14 +0000 (+0200) Subject: Add index page for apidocs contained within the elements X-Git-Tag: 0.3.0-beta13~5^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Freviewable%2Fpr22%2Fr1;p=vaadin-core.git Add index page for apidocs contained within the elements --- diff --git a/apidoc/index.html b/apidoc/index.html index 522a6a1..1ff94a5 100644 --- a/apidoc/index.html +++ b/apidoc/index.html @@ -2,123 +2,58 @@ - - - - - - - - + + vaadin-elements + - - - + +
+

API documentation for vaadin-elements

+ +
diff --git a/bower.json b/bower.json index 86ba571..338c4ad 100644 --- a/bower.json +++ b/bower.json @@ -18,13 +18,11 @@ "**/tests" ], "dependencies": { - "vaadin-grid": "vaadin/vaadin-grid#0.9.0-beta5", - "elements-demo-resources": "vaadin/elements-demo-resources#master" + "vaadin-grid": "vaadin/vaadin-grid#0.9.0-beta5" }, "devDependencies": { - "iron-doc-viewer": "polymerelements/iron-doc-viewer#~1.0.3", - "hydrolysis": "polymer/hydrolysis#~1.15.1", - "lodash": "~3.9.3" + "iron-component-page": "polymerelements/iron-component-page#~1.1.0", + "elements-demo-resources": "vaadin/elements-demo-resources#master" }, "resolutions": { "polymer": "v1.1.1" diff --git a/ga.js b/ga.js deleted file mode 100644 index 51577de..0000000 --- a/ga.js +++ /dev/null @@ -1,20 +0,0 @@ -// Analytics for Vaadin Elements - -(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ - (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), - m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) -})(window,document,'script','//www.google-analytics.com/analytics.js','ga'); - -ga('create', 'UA-658457-6', 'auto'); - -function locationHashChanged() { - if(/vaadin/.test(window.location.hostname)) { - var pageViewUrl = (window.location.pathname + window.location.hash) - .replace(/vaadin-elements\/latest\/(.+)\/demo/, 'components-examples/$1') - .replace('#', '/'); - ga('send', 'pageview', pageViewUrl) - } -} - -window.onhashchange = locationHashChanged; -locationHashChanged(); diff --git a/tasks/cdn.js b/tasks/cdn.js index 9ff994a..d6ea3c7 100644 --- a/tasks/cdn.js +++ b/tasks/cdn.js @@ -33,11 +33,11 @@ gulp.task('cdn:stage-bower_components', function() { }); gulp.task('cdn:stage-vaadin-elements', function() { - return gulp.src(['LICENSE.html', 'README.md', 'ga.js', 'vaadin-elements.html', 'demo/*', 'apidoc/*'], {base:"."}) + return gulp.src(['LICENSE.html', 'README.md', 'vaadin-elements.html', 'demo/*', 'apidoc/*'], {base:"."}) .pipe(modify({ fileModifier: function(file, contents) { if (/README.md/.test(file.path)) { - contents = contents.replace(/\/latest\//mg, '/' + version + '/') + contents = contents.replace(/\/latest\//mg, '/' + version + '/'); } else { contents.replace('https://cdn.vaadin.com/vaadin-elements/latest/', '../../'); } @@ -133,5 +133,5 @@ gulp.task('verify:cdn', ['cdn-test:stage'], function(done) { done(err); }); - }, done)}); + }, done);}); });