You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by db...@apache.org on 2015/09/02 03:54:35 UTC

[1/4] docs commit: Removing redundant script

Repository: cordova-docs
Updated Branches:
  refs/heads/cordova-website 8f7862da3 -> 80604cf01


Removing redundant script


Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/c0bf8770
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/c0bf8770
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/c0bf8770

Branch: refs/heads/cordova-website
Commit: c0bf877003f79f37783d384b929705e2cf2c1c6a
Parents: 49275f8
Author: Raghav Katyal <ra...@microsoft.com>
Authored: Tue Sep 1 16:33:41 2015 -0700
Committer: Dmitry Blotsky <dm...@gmail.com>
Committed: Tue Sep 1 18:54:00 2015 -0700

----------------------------------------------------------------------
 www/_includes/footer.html | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/c0bf8770/www/_includes/footer.html
----------------------------------------------------------------------
diff --git a/www/_includes/footer.html b/www/_includes/footer.html
index 2f82200..08d718f 100644
--- a/www/_includes/footer.html
+++ b/www/_includes/footer.html
@@ -74,7 +74,4 @@
 <script type="text/javascript" src="{{ site.baseurl }}/static/js/docs.js"></script>
 <script type="text/javascript" src="{{ site.baseurl }}/static/js/main.js"></script>
 <script type="text/javascript" src="{{ site.baseurl }}/static/js/index.js"></script>
-<script type="text/javascript" src="{{ site.baseurl }}/static/js/twitter.js"></script>
-<script>
-    !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');
-</script>
+<script type="text/javascript" src="{{ site.baseurl }}/static/js/twitter.js"></script>
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[3/4] docs commit: Adding linting, link verifier and slack and twitter badges

Posted by db...@apache.org.
Adding linting, link verifier and slack and twitter badges


Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/fdf25e7d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/fdf25e7d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/fdf25e7d

Branch: refs/heads/cordova-website
Commit: fdf25e7d8ac1239950d08ddf2f01f19ef04ba829
Parents: 8f7862d
Author: Raghav Katyal <ra...@microsoft.com>
Authored: Fri Aug 28 19:39:37 2015 -0700
Committer: Dmitry Blotsky <dm...@gmail.com>
Committed: Tue Sep 1 18:54:00 2015 -0700

----------------------------------------------------------------------
 gulpfile.js               | 20 ++++++++++++++++++++
 package.json              |  4 +++-
 www/_includes/footer.html |  5 +++++
 3 files changed, 28 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/fdf25e7d/gulpfile.js
----------------------------------------------------------------------
diff --git a/gulpfile.js b/gulpfile.js
index fdca6ca..e4700e3 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -19,6 +19,8 @@ var browserify = require("browserify");
 var reactify   = require("reactify");
 var uglify     = require("gulp-uglify");
 var envify     = require("envify");
+var htmllint   = require('gulp-htmllint');
+var crawler    = require('simplecrawler');
 
 // constants
 var CONFIG_FILES = ["_config.yml", "_defaults.yml"];
@@ -31,6 +33,7 @@ var WATCH_INTERVAL    = 1000; // in milliseconds
 var ROOT_DIR   = ".";
 var SOURCE_DIR = path.join(ROOT_DIR, "www");
 var DEV_DIR    = path.join(ROOT_DIR, "build-dev");
+var LINT_DIR    = path.join(DEV_DIR, "blog");
 var PROD_DIR   = path.join(ROOT_DIR, "build-prod");
 var BASE_URL   = "/use-the-force-luke";
 
@@ -247,6 +250,23 @@ gulp.task("link-bugs", function (done) {
     exec(bin("linkify-bugs.sh"), [path.join(SOURCE_DIR, "_posts")], done);
 });
 
+gulp.task('lint', function() {
+    return gulp.src(path.join(LINT_DIR, "**", "*.html"))
+        .pipe(htmllint());
+});
+
+gulp.task('checklinks', function(cb) {
+  crawler.crawl('http://localhost:3000/')
+    .on('fetch404', function(queueItem, response) {
+      gutil.log('Resource not found linked from ' +
+                      queueItem.referrer + ' to', queueItem.url);
+      gutil.log('Status code: ' + response.statusCode);
+    })
+    .on('complete', function(queueItem) {
+      cb();
+    });
+});
+
 gulp.task("clean", function () {
     remove(DEV_DIR);
     remove(PROD_DIR);

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/fdf25e7d/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 3353434..9c8c8bd 100644
--- a/package.json
+++ b/package.json
@@ -50,7 +50,9 @@
     "colors": "^1.0.3",
     "diff": "^1.2.0",
     "jshint": "^2.5.8",
-    "mocha": "^1.21.4"
+    "mocha": "^1.21.4",
+    "gulp-htmllint": "^0.0.5",
+    "simplecrawler": "^0.5.2"
   },
   "repository": {
     "type": "git",

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/fdf25e7d/www/_includes/footer.html
----------------------------------------------------------------------
diff --git a/www/_includes/footer.html b/www/_includes/footer.html
index 7bc1b85..c16b225 100644
--- a/www/_includes/footer.html
+++ b/www/_includes/footer.html
@@ -54,6 +54,8 @@
                 <a href="{{ site.baseurl }}/contribute" class="btn btn-lg btn-primary">
                     Learn More
                 </a>
+                <p style="padding-top:20px"> <a href="https://twitter.com/apachecordova" class="twitter-follow-button" data-show-count="false">Follow @apachecordova</a></p>
+                <script async defer src="http://slack.cordova.io/slackin.js"></script>    
             </div>
         </div>
         <p class="copyright_text">
@@ -72,3 +74,6 @@
 <script type="text/javascript" src="{{ site.baseurl }}/static/js/docs.js"></script>
 <script type="text/javascript" src="{{ site.baseurl }}/static/js/main.js"></script>
 <script type="text/javascript" src="{{ site.baseurl }}/static/js/index.js"></script>
+<script>
+    !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');
+</script>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[2/4] docs commit: Formatting

Posted by db...@apache.org.
Formatting


Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/49275f88
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/49275f88
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/49275f88

Branch: refs/heads/cordova-website
Commit: 49275f888a2546658b29c729f942e7e46179b5bb
Parents: fdf25e7
Author: Raghav Katyal <ra...@microsoft.com>
Authored: Tue Sep 1 16:31:16 2015 -0700
Committer: Dmitry Blotsky <dm...@gmail.com>
Committed: Tue Sep 1 18:54:00 2015 -0700

----------------------------------------------------------------------
 gulpfile.js               | 3 +--
 www/_includes/footer.html | 1 +
 www/_layouts/post.html    | 8 +++++++-
 www/blog/index.html       | 8 +++++++-
 www/static/js/twitter.js  | 3 +++
 5 files changed, 19 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/49275f88/gulpfile.js
----------------------------------------------------------------------
diff --git a/gulpfile.js b/gulpfile.js
index e4700e3..d482639 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -33,7 +33,6 @@ var WATCH_INTERVAL    = 1000; // in milliseconds
 var ROOT_DIR   = ".";
 var SOURCE_DIR = path.join(ROOT_DIR, "www");
 var DEV_DIR    = path.join(ROOT_DIR, "build-dev");
-var LINT_DIR    = path.join(DEV_DIR, "blog");
 var PROD_DIR   = path.join(ROOT_DIR, "build-prod");
 var BASE_URL   = "/use-the-force-luke";
 
@@ -251,7 +250,7 @@ gulp.task("link-bugs", function (done) {
 });
 
 gulp.task('lint', function() {
-    return gulp.src(path.join(LINT_DIR, "**", "*.html"))
+    return gulp.src(path.join("./", "**", "*.html"))
         .pipe(htmllint());
 });
 

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/49275f88/www/_includes/footer.html
----------------------------------------------------------------------
diff --git a/www/_includes/footer.html b/www/_includes/footer.html
index c16b225..2f82200 100644
--- a/www/_includes/footer.html
+++ b/www/_includes/footer.html
@@ -74,6 +74,7 @@
 <script type="text/javascript" src="{{ site.baseurl }}/static/js/docs.js"></script>
 <script type="text/javascript" src="{{ site.baseurl }}/static/js/main.js"></script>
 <script type="text/javascript" src="{{ site.baseurl }}/static/js/index.js"></script>
+<script type="text/javascript" src="{{ site.baseurl }}/static/js/twitter.js"></script>
 <script>
     !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');
 </script>

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/49275f88/www/_layouts/post.html
----------------------------------------------------------------------
diff --git a/www/_layouts/post.html b/www/_layouts/post.html
index 848eeeb..5ab4b06 100644
--- a/www/_layouts/post.html
+++ b/www/_layouts/post.html
@@ -15,7 +15,13 @@ layout: blog
             <div class="post">
                 <header>
                     <div class="title">{{ page.title }}</div>
-                    <div class="author">By: <a href="{{ page.author.url }}">{{ page.author.name }}</a></div>
+                    <div class="author">By: 
+                        {% if page.author.url %}
+                          <a href="{{ page.author.url }}">{{ page.author.name }}</a>
+                        {% else %}
+                          {{ page.author.name }}
+                        {% endif %} 
+                    </div>
                     <div class="date">{{ page.date | date_to_string }}</div>
                 </header>
                 <section>

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/49275f88/www/blog/index.html
----------------------------------------------------------------------
diff --git a/www/blog/index.html b/www/blog/index.html
index c83a20d..a4f11a4 100644
--- a/www/blog/index.html
+++ b/www/blog/index.html
@@ -33,7 +33,13 @@ window.onload = function(){
                     <div>
                       <span class="date">{{ post.date | date_to_string }}</span>
                       <span> - by </span>
-                      <span class="author"><a href="{{ post.author.url }}">{{ post.author.name }}</a></span>
+                      <span class="author">
+                        {% if post.author.url %}
+                          <a href="{{ post.author.url }}">{{ post.author.name }}</a>
+                        {% else %}
+                          {{ post.author.name }}
+                        {% endif %}  
+                      </span>
                       <a class="comment" href="{{ site.baseurl }}{{ post.url }}#disqus_thread">Comments</a>
                     </div>
                   </div>

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/49275f88/www/static/js/twitter.js
----------------------------------------------------------------------
diff --git a/www/static/js/twitter.js b/www/static/js/twitter.js
new file mode 100644
index 0000000..533382b
--- /dev/null
+++ b/www/static/js/twitter.js
@@ -0,0 +1,3 @@
+<script>
+    !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');
+</script>
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[4/4] docs commit: Removing script tag from js file. This closes ##323.

Posted by db...@apache.org.
Removing script tag from js file. This closes ##323.


Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/80604cf0
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/80604cf0
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/80604cf0

Branch: refs/heads/cordova-website
Commit: 80604cf01a65d1d0886b7d133e5d93f641817ff7
Parents: c0bf877
Author: Raghav Katyal <ra...@microsoft.com>
Authored: Tue Sep 1 16:50:34 2015 -0700
Committer: Dmitry Blotsky <dm...@gmail.com>
Committed: Tue Sep 1 18:54:20 2015 -0700

----------------------------------------------------------------------
 www/static/js/twitter.js | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/80604cf0/www/static/js/twitter.js
----------------------------------------------------------------------
diff --git a/www/static/js/twitter.js b/www/static/js/twitter.js
index 533382b..113c7f6 100644
--- a/www/static/js/twitter.js
+++ b/www/static/js/twitter.js
@@ -1,3 +1 @@
-<script>
-    !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');
-</script>
\ No newline at end of file
+!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org