cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblot...@apache.org
Subject docs commit: Adding robots.txt. Removing old redirect pages. Switching to using /latest.
Date Tue, 03 Nov 2015 22:21:18 GMT
Repository: cordova-docs
Updated Branches:
  refs/heads/master b2263f5d2 -> b2961ba0e


Adding robots.txt. Removing old redirect pages. Switching to using /latest.


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

Branch: refs/heads/master
Commit: b2961ba0ee24edd58dd186b8bbc59c9095684853
Parents: b2263f5
Author: Dmitry Blotsky <dmitry.blotsky@gmail.com>
Authored: Tue Nov 3 14:01:58 2015 -0800
Committer: Dmitry Blotsky <dmitry.blotsky@gmail.com>
Committed: Tue Nov 3 14:01:58 2015 -0800

----------------------------------------------------------------------
 _config.yml                               | 10 ++++++++--
 gulpfile.js                               |  5 +++--
 www/_includes/docs_language_redirect.html |  2 --
 www/_includes/docs_root_redirect.html     |  2 --
 www/_includes/redirect.html               |  7 -------
 www/docs/de/index.html                    |  7 -------
 www/docs/en/index.html                    |  7 -------
 www/docs/es/index.html                    |  7 -------
 www/docs/fr/index.html                    |  7 -------
 www/docs/index.html                       |  3 ---
 www/docs/it/index.html                    |  7 -------
 www/docs/ja/index.html                    |  7 -------
 www/docs/ko/index.html                    |  7 -------
 www/docs/pl/index.html                    |  7 -------
 www/docs/ru/index.html                    |  7 -------
 www/docs/sl/index.html                    |  7 -------
 www/docs/zh/index.html                    |  7 -------
 www/index.html                            | 14 +++++++-------
 www/plugins/authors.md                    |  2 +-
 www/plugins/faq.md                        |  2 +-
 www/robots.txt                            |  5 +++++
 www/static/plugins/pluginlist.jsx         |  2 +-
 22 files changed, 26 insertions(+), 105 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b2961ba0/_config.yml
----------------------------------------------------------------------
diff --git a/_config.yml b/_config.yml
index e87d01e..d03791b 100644
--- a/_config.yml
+++ b/_config.yml
@@ -1,11 +1,17 @@
+# NOTE:
+#      some of the settings in this file get overwritten in later config
+#      files like _prod.yml, _dev.yml, and _defaults.yml
+
 # =======
 # Site settings
 # =======
 title:       Apache Cordova
-description: Apache Cordova is a set of device APIs that allow a web mobile app developer
to access native device function from JavaScript.
 url:         "https://cordova.apache.org" # the base hostname & protocol
-baseurl:     "" # the subpath of the site, e.g. /blog/
+baseurl:     "" # the subpath of the site, e.g. /blog; NOTE: no trailing slash
 rss_path:    /feed.xml
+description: >
+    Apache Cordova is a set of device APIs that allow a web mobile app
+    developer to access native device function from JavaScript.
 
 excerpt_separator: <!--more-->
 repo:

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b2961ba0/gulpfile.js
----------------------------------------------------------------------
diff --git a/gulpfile.js b/gulpfile.js
index 0f62f58..dab5f51 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -180,8 +180,9 @@ gulp.task("languages", function () {
 
 gulp.task("version", function () {
     // this code is stupid; it's basically the line:
-    //      cat VERSION | sed -e 's/^/latest_docs_version: /' > _version.yml
-    // however we're in Gulp, and on Windows... so we contort it into a monster
+    //      cat VERSION | sed -e 's/^/VERSION_VAR_NAME: /' > _version.yml
+    // however we're in Gulp, and we need to support Windows...
+    // so we contort it into a monster
     return gulp
         .src(VERSION_FILE)
         .pipe(header(VERSION_VAR_NAME + ": "))

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b2961ba0/www/_includes/docs_language_redirect.html
----------------------------------------------------------------------
diff --git a/www/_includes/docs_language_redirect.html b/www/_includes/docs_language_redirect.html
deleted file mode 100644
index bb40b9e..0000000
--- a/www/_includes/docs_language_redirect.html
+++ /dev/null
@@ -1,2 +0,0 @@
-{% capture url %}/docs/{{ page.language }}/{{ site.latest_docs_version }}/{% endcapture %}
-{% include redirect.html url=url %}

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b2961ba0/www/_includes/docs_root_redirect.html
----------------------------------------------------------------------
diff --git a/www/_includes/docs_root_redirect.html b/www/_includes/docs_root_redirect.html
deleted file mode 100644
index 874d945..0000000
--- a/www/_includes/docs_root_redirect.html
+++ /dev/null
@@ -1,2 +0,0 @@
-{% capture url %}/docs/en/{% endcapture %}
-{% include redirect.html url=url %}

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b2961ba0/www/_includes/redirect.html
----------------------------------------------------------------------
diff --git a/www/_includes/redirect.html b/www/_includes/redirect.html
deleted file mode 100644
index 41369bf..0000000
--- a/www/_includes/redirect.html
+++ /dev/null
@@ -1,7 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<meta http-equiv="content-type" content="text/html; charset=utf-8" />
-<meta http-equiv="refresh" content="0;url={{ site.baseurl }}{{ include.url }}" />
-</head>
-</html>

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b2961ba0/www/docs/de/index.html
----------------------------------------------------------------------
diff --git a/www/docs/de/index.html b/www/docs/de/index.html
deleted file mode 100644
index 9e47a26..0000000
--- a/www/docs/de/index.html
+++ /dev/null
@@ -1,7 +0,0 @@
----
-# NOTE:
-#      layout is reset here because there
-#      are default layouts set for docs
-layout:
----
-{% include docs_language_redirect.html %}

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b2961ba0/www/docs/en/index.html
----------------------------------------------------------------------
diff --git a/www/docs/en/index.html b/www/docs/en/index.html
deleted file mode 100644
index 9e47a26..0000000
--- a/www/docs/en/index.html
+++ /dev/null
@@ -1,7 +0,0 @@
----
-# NOTE:
-#      layout is reset here because there
-#      are default layouts set for docs
-layout:
----
-{% include docs_language_redirect.html %}

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b2961ba0/www/docs/es/index.html
----------------------------------------------------------------------
diff --git a/www/docs/es/index.html b/www/docs/es/index.html
deleted file mode 100644
index 9e47a26..0000000
--- a/www/docs/es/index.html
+++ /dev/null
@@ -1,7 +0,0 @@
----
-# NOTE:
-#      layout is reset here because there
-#      are default layouts set for docs
-layout:
----
-{% include docs_language_redirect.html %}

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b2961ba0/www/docs/fr/index.html
----------------------------------------------------------------------
diff --git a/www/docs/fr/index.html b/www/docs/fr/index.html
deleted file mode 100644
index 9e47a26..0000000
--- a/www/docs/fr/index.html
+++ /dev/null
@@ -1,7 +0,0 @@
----
-# NOTE:
-#      layout is reset here because there
-#      are default layouts set for docs
-layout:
----
-{% include docs_language_redirect.html %}

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b2961ba0/www/docs/index.html
----------------------------------------------------------------------
diff --git a/www/docs/index.html b/www/docs/index.html
deleted file mode 100644
index b07caab..0000000
--- a/www/docs/index.html
+++ /dev/null
@@ -1,3 +0,0 @@
----
----
-{% include docs_root_redirect.html %}

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b2961ba0/www/docs/it/index.html
----------------------------------------------------------------------
diff --git a/www/docs/it/index.html b/www/docs/it/index.html
deleted file mode 100644
index 9e47a26..0000000
--- a/www/docs/it/index.html
+++ /dev/null
@@ -1,7 +0,0 @@
----
-# NOTE:
-#      layout is reset here because there
-#      are default layouts set for docs
-layout:
----
-{% include docs_language_redirect.html %}

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b2961ba0/www/docs/ja/index.html
----------------------------------------------------------------------
diff --git a/www/docs/ja/index.html b/www/docs/ja/index.html
deleted file mode 100644
index 9e47a26..0000000
--- a/www/docs/ja/index.html
+++ /dev/null
@@ -1,7 +0,0 @@
----
-# NOTE:
-#      layout is reset here because there
-#      are default layouts set for docs
-layout:
----
-{% include docs_language_redirect.html %}

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b2961ba0/www/docs/ko/index.html
----------------------------------------------------------------------
diff --git a/www/docs/ko/index.html b/www/docs/ko/index.html
deleted file mode 100644
index 9e47a26..0000000
--- a/www/docs/ko/index.html
+++ /dev/null
@@ -1,7 +0,0 @@
----
-# NOTE:
-#      layout is reset here because there
-#      are default layouts set for docs
-layout:
----
-{% include docs_language_redirect.html %}

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b2961ba0/www/docs/pl/index.html
----------------------------------------------------------------------
diff --git a/www/docs/pl/index.html b/www/docs/pl/index.html
deleted file mode 100644
index 9e47a26..0000000
--- a/www/docs/pl/index.html
+++ /dev/null
@@ -1,7 +0,0 @@
----
-# NOTE:
-#      layout is reset here because there
-#      are default layouts set for docs
-layout:
----
-{% include docs_language_redirect.html %}

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b2961ba0/www/docs/ru/index.html
----------------------------------------------------------------------
diff --git a/www/docs/ru/index.html b/www/docs/ru/index.html
deleted file mode 100644
index 9e47a26..0000000
--- a/www/docs/ru/index.html
+++ /dev/null
@@ -1,7 +0,0 @@
----
-# NOTE:
-#      layout is reset here because there
-#      are default layouts set for docs
-layout:
----
-{% include docs_language_redirect.html %}

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b2961ba0/www/docs/sl/index.html
----------------------------------------------------------------------
diff --git a/www/docs/sl/index.html b/www/docs/sl/index.html
deleted file mode 100644
index 9e47a26..0000000
--- a/www/docs/sl/index.html
+++ /dev/null
@@ -1,7 +0,0 @@
----
-# NOTE:
-#      layout is reset here because there
-#      are default layouts set for docs
-layout:
----
-{% include docs_language_redirect.html %}

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b2961ba0/www/docs/zh/index.html
----------------------------------------------------------------------
diff --git a/www/docs/zh/index.html b/www/docs/zh/index.html
deleted file mode 100644
index 9e47a26..0000000
--- a/www/docs/zh/index.html
+++ /dev/null
@@ -1,7 +0,0 @@
----
-# NOTE:
-#      layout is reset here because there
-#      are default layouts set for docs
-layout:
----
-{% include docs_language_redirect.html %}

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b2961ba0/www/index.html
----------------------------------------------------------------------
diff --git a/www/index.html b/www/index.html
index c9e33bc..f7b6cc2 100644
--- a/www/index.html
+++ b/www/index.html
@@ -27,7 +27,7 @@ permalink: /
                     <a href="#getstarted" class="col-xs-12 col-sm-5 btn btn-lg btn-primary">
                         Get Started
                     </a>
-                    <a href="{{ site.baseurl }}/docs/en/{{ site.latest_docs_version }}/guide/overview/"
class="col-xs-12 col-sm-6 btn btn-lg btn-primary">
+                    <a href="{{ site.baseurl }}/docs/en/latest/guide/overview/" class="col-xs-12
col-sm-6 btn btn-lg btn-primary">
                         Documentation
                     </a>
                 </div>
@@ -75,7 +75,7 @@ permalink: /
         </div>
         <div class="col-md-7 col-xs-10">
             <h2>Installing Cordova</h2>
-            <p>Cordova command-line runs on <a target="_blank" href="http://nodejs.org/">Node.js</a>
and is available on <a target="_blank" href="https://npmjs.org/package/cordova">NPM</a>.
Follow <a href="{{ site.baseurl }}/docs/en/{{ site.latest_docs_version }}/guide/platforms/">platform
specific guides</a> to install additional platform dependencies. Open a command prompt
or Terminal, and type <code>npm install -g cordova</code>.</p>
+            <p>Cordova command-line runs on <a target="_blank" href="http://nodejs.org/">Node.js</a>
and is available on <a target="_blank" href="https://npmjs.org/package/cordova">NPM</a>.
Follow <a href="{{ site.baseurl }}/docs/en/latest/guide/platforms/">platform specific
guides</a> to install additional platform dependencies. Open a command prompt or Terminal,
and type <code>npm install -g cordova</code>.</p>
         </div>
         <div class="col-md-4 col-xs-12">
             <div class="well_code">
@@ -153,16 +153,16 @@ permalink: /
             <h2>Common next steps</h2>
             <ul class="nav">
                 <li>
-                    <a href="{{ site.baseurl }}/docs/en/{{ site.latest_docs_version }}/guide/overview/">Read
the docs</a>
+                    <a href="{{ site.baseurl }}/docs/en/latest/guide/overview/">Read
the docs</a>
                 </li>
                 <li>
-                    <a href="{{ site.baseurl }}/docs/en/{{ site.latest_docs_version }}/guide/cli/#link-add-plugin-features">Add
a Plugin</a>
+                    <a href="{{ site.baseurl }}/docs/en/latest/guide/cli/#link-add-plugin-features">Add
a Plugin</a>
                 </li>
                 <li>
-                    <a href="{{ site.baseurl }}/docs/en/{{ site.latest_docs_version }}/config_ref/images.html">Add
Icons and Splash Screen</a>
+                    <a href="{{ site.baseurl }}/docs/en/latest/config_ref/images.html">Add
Icons and Splash Screen</a>
                 </li>
                 <li>
-                    <a href="{{ site.baseurl }}/docs/en/{{ site.latest_docs_version }}/config_ref/">Configure
Your App</a>
+                    <a href="{{ site.baseurl }}/docs/en/latest/config_ref/">Configure
Your App</a>
                 </li>
             </ul>
         </div>
@@ -179,7 +179,7 @@ permalink: /
             <div class="col-md-12 text-center">
                 <h1>Supported Platforms</h1>
                 <h2>See a list of
-                    <a href="{{ site.baseurl }}/docs/en/{{ site.latest_docs_version }}/guide/support/index.html">features
supported</a> in each platform</h2>
+                    <a href="{{ site.baseurl }}/docs/en/latest/guide/support/index.html">features
supported</a> in each platform</h2>
                 <p>
                     Cordova wraps your HTML/JavaScript app into a native container which
can access the device functions of several platforms.
                     These functions are exposed via a unified JavaScript API, allowing you
to easily write one set of code to target nearly every

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b2961ba0/www/plugins/authors.md
----------------------------------------------------------------------
diff --git a/www/plugins/authors.md b/www/plugins/authors.md
index 2c209fe..c6164cb 100644
--- a/www/plugins/authors.md
+++ b/www/plugins/authors.md
@@ -40,7 +40,7 @@ Similar to `ecosystem:cordova`, platform support too uses keywords. Just
add the
 
 ## Are there any additional documents to assist me with plugins?
 
-Yes there are. Please take a look at the [Plugin Development Guide]({{ site.baseurl }}/docs/en/{{
site.latest_docs_version }}/guide/hybrid/plugins/index.html) for a more detailed guide.
+Yes there are. Please take a look at the [Plugin Development Guide]({{ site.baseurl }}/docs/en/latest/guide/hybrid/plugins/index.html)
for a more detailed guide.
 
 ## I don't like X. How can I help improve the website?
 

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b2961ba0/www/plugins/faq.md
----------------------------------------------------------------------
diff --git a/www/plugins/faq.md b/www/plugins/faq.md
index ae1529a..f7feacd 100644
--- a/www/plugins/faq.md
+++ b/www/plugins/faq.md
@@ -38,7 +38,7 @@ See Cordova [blog]({{ site.baseurl }}/announcements/2015/04/21/plugins-release-a
 
 ## Are there any additional documents to assist me with plugins?
 
-Yes there are. Please take a look at [Add Plugin Features]({{ site.baseurl }}/docs/en/{{
site.latest_docs_version }}/guide/cli/#link-add-plugin-features) for a more detailed guide.
+Yes there are. Please take a look at [Add Plugin Features]({{ site.baseurl }}/docs/en/latest/guide/cli/#link-add-plugin-features)
for a more detailed guide.
 
 ## I don't like X. How can I help improve the website?
 

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b2961ba0/www/robots.txt
----------------------------------------------------------------------
diff --git a/www/robots.txt b/www/robots.txt
new file mode 100644
index 0000000..86663a9
--- /dev/null
+++ b/www/robots.txt
@@ -0,0 +1,5 @@
+# all crawlers
+User-agent: *
+
+# disallow nothing; i.e. allow all pages to be crawled
+Disallow:

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/b2961ba0/www/static/plugins/pluginlist.jsx
----------------------------------------------------------------------
diff --git a/www/static/plugins/pluginlist.jsx b/www/static/plugins/pluginlist.jsx
index bd0a504..13f3166 100755
--- a/www/static/plugins/pluginlist.jsx
+++ b/www/static/plugins/pluginlist.jsx
@@ -47,7 +47,7 @@ var PluginList = React.createClass({
             if (plugins.length === 0) {
                 return (
                     <div className="container plugins-results-container">
-                            No plugins found. Learn how to <a href="{{site.baseurl}}/docs/en/{{site.latest_docs_version}}/guide/hybrid/plugins/index.html">create
one</a>
+                            No plugins found. Learn how to <a href="{{site.baseurl}}/docs/en/latest/guide/hybrid/plugins/index.html">create
one</a>
                     </div>
                 );
             } else {


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


Mime
View raw message