cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblot...@apache.org
Subject [1/2] docs commit: Replacing use of 'prefix' with just prepending variables. Adding poll interval to gulp and adding '------' front matter to all generated CSS. Adding some docs CSS. Reworking TOC file layouts because Liquid templates don't like dots in
Date Thu, 06 Aug 2015 00:52:33 GMT
Repository: cordova-docs
Updated Branches:
  refs/heads/cordova-website 54a2c956c -> e835f0977


Replacing use of 'prefix' with just prepending variables. Adding poll interval to gulp and
adding '------' front matter to all generated CSS. Adding some docs CSS. Reworking TOC file
layouts because Liquid templates don't like dots in key names.


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

Branch: refs/heads/cordova-website
Commit: f259fb262bc4db34a2b15f109971e6d27e9339db
Parents: 54a2c95
Author: Dmitry Blotsky <dmitry.blotsky@gmail.com>
Authored: Wed Aug 5 17:52:02 2015 -0700
Committer: Dmitry Blotsky <dmitry.blotsky@gmail.com>
Committed: Wed Aug 5 17:52:02 2015 -0700

----------------------------------------------------------------------
 gulpfile.js                      |   9 +++
 package.json                     |   1 +
 www/_data/.gitignore             |   2 +-
 www/_data/pl/edge/toc-manual.yml |  66 -------------------
 www/_includes/footer.html        |  12 ++--
 www/_includes/head.html          |  12 ++--
 www/_layouts/docs.html           | 118 ++++++++++++++++++++--------------
 www/feed.xml                     |   6 +-
 www/index.html                   |   5 +-
 www/static/css-src/docs.css      |  13 ----
 www/static/css-src/docs.scss     |  13 ++++
 www/static/css-src/main.scss     |  12 ++--
 12 files changed, 116 insertions(+), 153 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f259fb26/gulpfile.js
----------------------------------------------------------------------
diff --git a/gulpfile.js b/gulpfile.js
index 0074485..e48047b 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -11,6 +11,7 @@ var sass        = require("gulp-sass");
 var vstream     = require("vinyl-source-stream");
 var buffer      = require("vinyl-buffer");
 var browsersync = require("browser-sync");
+var header      = require("gulp-header");
 
 // constants
 var CONFIG_FILES = ["_config.yml", "_defaults.yml"];
@@ -19,6 +20,8 @@ var JEKYLL_FLAGS = ["--trace", "--config", CONFIG_FILES.join(",")];
 var SOURCE_DIR = "www";
 var BUILD_DIR  = "public";
 
+var WATCH_INTERVAL = 1000; // in milliseconds
+
 var CONFIG_FILE    = "_config.yml";
 var DEFAULTS_FILE  = "_defaults.yml";
 var DATA_DIR       = path.join(SOURCE_DIR, "_data");
@@ -56,6 +59,7 @@ gulp.task("watch", function () {
         [
             path.join(CSS_SRC_DIR, "**", "*"),
         ],
+        {interval: WATCH_INTERVAL},
         ["styles", "regenerate"]
     );
     gulp.watch(
@@ -63,6 +67,7 @@ gulp.task("watch", function () {
             path.join(DOCS_DIR, "**", "*.md"),
             path.join(DOCS_DIR, "**", "*.html"),
         ],
+        {interval: WATCH_INTERVAL},
         ["configs", "regenerate"]
     );
     gulp.watch(
@@ -73,6 +78,7 @@ gulp.task("watch", function () {
             path.join(SOURCE_DIR, "**", "*.js"),
             path.join(CSS_OUT_DIR, "**", "*.css"),
         ],
+        {interval: WATCH_INTERVAL},
         ["regenerate"]
     );
 });
@@ -109,11 +115,14 @@ gulp.task("configs", function (done) {
 gulp.task("styles", function() {
     gulp.src(path.join(CSS_SRC_DIR, "**", "*.less"))
         .pipe(less())
+        .pipe(header("---\n---\n"))
         .pipe(gulp.dest(CSS_OUT_DIR));
     gulp.src(path.join(CSS_SRC_DIR, "**", "*.css"))
+        .pipe(header("---\n---\n"))
         .pipe(gulp.dest(CSS_OUT_DIR));
     gulp.src(path.join(CSS_SRC_DIR, "**", "*.scss"))
         .pipe(sass().on("error", sass.logError))
+        .pipe(header("---\n---\n"))
         .pipe(gulp.dest(CSS_OUT_DIR));
 });
 

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f259fb26/package.json
----------------------------------------------------------------------
diff --git a/package.json b/package.json
index 77aa13f..acb3de8 100644
--- a/package.json
+++ b/package.json
@@ -20,6 +20,7 @@
     "fs-extra": "^0.11.1",
     "gulp": "^3.9.0",
     "gulp-concat": "^2.6.0",
+    "gulp-header": "^1.2.2",
     "gulp-less": "^3.0.3",
     "gulp-run": "^1.6.8",
     "gulp-sass": "^2.0.4",

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f259fb26/www/_data/.gitignore
----------------------------------------------------------------------
diff --git a/www/_data/.gitignore b/www/_data/.gitignore
index 73391ae..a85bc42 100644
--- a/www/_data/.gitignore
+++ b/www/_data/.gitignore
@@ -1 +1 @@
-toc-auto.yml
+toc/*generated.yml

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f259fb26/www/_data/pl/edge/toc-manual.yml
----------------------------------------------------------------------
diff --git a/www/_data/pl/edge/toc-manual.yml b/www/_data/pl/edge/toc-manual.yml
deleted file mode 100644
index f06c4c9..0000000
--- a/www/_data/pl/edge/toc-manual.yml
+++ /dev/null
@@ -1,66 +0,0 @@
-- {name: Przewodniki, url: /docs/pl/edge/index.html}
-- {name: Ikony i ekrany powitalne w aplikacjach, url: /docs/pl/edge/config_ref/images.html}
-- {name: Plik config.xml, url: /docs/pl/edge/config_ref/index.html}
-- {name: backbutton, url: /docs/pl/edge/cordova/events/events.backbutton.html}
-- {name: deviceready, url: /docs/pl/edge/cordova/events/events.deviceready.html}
-- {name: endcallbutton, url: /docs/pl/edge/cordova/events/events.endcallbutton.html}
-- {name: Wydarzenia, url: /docs/pl/edge/cordova/events/events.html}
-- {name: menubutton, url: /docs/pl/edge/cordova/events/events.menubutton.html}
-- {name: pause, url: /docs/pl/edge/cordova/events/events.pause.html}
-- {name: resume, url: /docs/pl/edge/cordova/events/events.resume.html}
-- {name: searchbutton, url: /docs/pl/edge/cordova/events/events.searchbutton.html}
-- {name: startcallbutton, url: /docs/pl/edge/cordova/events/events.startcallbutton.html}
-- {name: volumedownbutton, url: /docs/pl/edge/cordova/events/events.volumedownbutton.html}
-- {name: volumeupbutton, url: /docs/pl/edge/cordova/events/events.volumeupbutton.html}
-- {name: Plugin API, url: /docs/pl/edge/cordova/plugins/pluginapis.html}
-- {name: Magazyn, url: /docs/pl/edge/cordova/storage/storage.html}
-- {name: Hooks Przewodnik, url: /docs/pl/edge/guide/appdev/hooks/index.html}
-- {name: !!python/str "Prywatno\u015Bci Przewodnik", url: /docs/pl/edge/guide/appdev/privacy/index.html}
-- {name: !!python/str "Przewodnik bezpiecze\u0144stwa", url: /docs/pl/edge/guide/appdev/security/index.html}
-- {name: !!python/str "Przewodnik bia\u0142ej listy", url: /docs/pl/edge/guide/appdev/whitelist/index.html}
-- {name: !!python/str "Interfejs wiersza polece\u0144", url: /docs/pl/edge/guide/cli/index.html}
-- {name: Plugin rozwoju Przewodnik, url: /docs/pl/edge/guide/hybrid/plugins/index.html}
-- {name: Osadzanie WebViews, url: /docs/pl/edge/guide/hybrid/webviews/index.html}
-- {name: na licencji., url: /docs/pl/edge/guide/next/index.html}
-- {name: !!python/str "Przegl\u0105d", url: /docs/pl/edge/guide/overview/index.html}
-- {name: !!python/str "Platforma przewodnik\xF3w", url: /docs/pl/edge/guide/platforms/index.html}
-- {name: !!python/str "Amazon ogie\u0144 OS konfiguracja", url: /docs/pl/edge/guide/platforms/amazonfireos/config.html}
-- {name: !!python/str "Amazon ogie\u0144 platformy OS Przewodnik", url: /docs/pl/edge/guide/platforms/amazonfireos/index.html}
-- {name: !!python/str "Amazon ogie\u0144 OS Plugins", url: /docs/pl/edge/guide/platforms/amazonfireos/plugin.html}
-- {name: !!python/str "Amazon ogie\u0144 OS WebViews", url: /docs/pl/edge/guide/platforms/amazonfireos/webview.html}
-- {name: Konfiguracja dla platformy Android, url: /docs/pl/edge/guide/platforms/android/config.html}
-- {name: Przewodnik platformy Android, url: /docs/pl/edge/guide/platforms/android/index.html}
-- {name: Wtyczek Android, url: /docs/pl/edge/guide/platforms/android/plugin.html}
-- {name: !!python/str "Android Shell narz\u0119dzia Przewodnik", url: /docs/pl/edge/guide/platforms/android/tools.html}
-- {name: Aktualizacja, url: /docs/pl/edge/guide/platforms/android/upgrade.html}
-- {name: Android WebViews, url: /docs/pl/edge/guide/platforms/android/webview.html}
-- {name: Uaktualnianie BlackBerry, url: /docs/pl/edge/guide/platforms/blackberry/upgrade.html}
-- {name: Konfiguracja blackBerry 10, url: /docs/pl/edge/guide/platforms/blackberry10/config.html}
-- {name: Przewodnik platformy blackBerry 10, url: /docs/pl/edge/guide/platforms/blackberry10/index.html}
-- {name: !!python/str "Je\u017Cyna 10 wtyczek", url: /docs/pl/edge/guide/platforms/blackberry10/plugin.html}
-- {name: !!python/str "Przewodnik narz\u0119dziem blackBerry 10 pow\u0142oki", url: /docs/pl/edge/guide/platforms/blackberry10/tools.html}
-- {name: Uaktualnianie BlackBerry 10, url: /docs/pl/edge/guide/platforms/blackberry10/upgrade.html}
-- {name: Firefox platformy OS Przewodnik, url: /docs/pl/edge/guide/platforms/firefoxos/index.html}
-- {name: Konfiguracja iOS, url: /docs/pl/edge/guide/platforms/ios/config.html}
-- {name: Przewodnik platformy iOS, url: /docs/pl/edge/guide/platforms/ios/index.html}
-- {name: iOS wtyczek, url: /docs/pl/edge/guide/platforms/ios/plugin.html}
-- {name: !!python/str "iOS Shell narz\u0119dzia Przewodnik", url: /docs/pl/edge/guide/platforms/ios/tools.html}
-- {name: Aktualizacja iOS, url: /docs/pl/edge/guide/platforms/ios/upgrade.html}
-- {name: iOS WebViews, url: /docs/pl/edge/guide/platforms/ios/webview.html}
-- {name: Platforma Tizen Przewodnik, url: /docs/pl/edge/guide/platforms/tizen/index.html}
-- {name: Platforma Ubuntu Guide, url: /docs/pl/edge/guide/platforms/ubuntu/index.html}
-- {name: Przewodnik platforma Windows, url: /docs/pl/edge/guide/platforms/win8/index.html}
-- {name: Opakowania systemu Windows, url: /docs/pl/edge/guide/platforms/win8/packaging.html}
-- {name: Wtyczki Windows, url: /docs/pl/edge/guide/platforms/win8/plugin.html}
-- {name: Aktualizacja systemu Windows 8, url: /docs/pl/edge/guide/platforms/win8/upgrade.html}
-- {name: Rozpoczynanie pracy z oknami 10, url: /docs/pl/edge/guide/platforms/win8/win10-support.html}
-- {name: Przewodnik platformy Windows Phone 8, url: /docs/pl/edge/guide/platforms/wp8/index.html}
-- {name: Konfigurowanie programu Parallels Desktop, url: /docs/pl/edge/guide/platforms/wp8/parallels.html}
-- {name: Windows Phone 8 wtyczki, url: /docs/pl/edge/guide/platforms/wp8/plugin.html}
-- {name: Aktualizacja Windows Phone 8, url: /docs/pl/edge/guide/platforms/wp8/upgrade.html}
-- {name: Konfigurowanie VMWare Fusion, url: /docs/pl/edge/guide/platforms/wp8/vmware.html}
-- {name: Windows Phone 8.0 WebViews, url: /docs/pl/edge/guide/platforms/wp8/webview.html}
-- {name: Wspierane platformy, url: /docs/pl/edge/guide/support/index.html}
-- {name: !!python/str "Platform i Zarz\u0105dzanie wersjami plugin\xF3w", url: /docs/pl/edge/platform_plugin_versioning_ref/index.html}
-- {name: !!python/str "Za pomoc\u0105 Plugman do zarz\u0105dzania wtyczki", url: /docs/pl/edge/plugin_ref/plugman.html}
-- {name: Specyfikacja plugin, url: /docs/pl/edge/plugin_ref/spec.html}

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f259fb26/www/_includes/footer.html
----------------------------------------------------------------------
diff --git a/www/_includes/footer.html b/www/_includes/footer.html
index 49c16cc..4502f9f 100644
--- a/www/_includes/footer.html
+++ b/www/_includes/footer.html
@@ -7,9 +7,9 @@
 </div>
 
 <!-- JS -->
-<script type="text/javascript" src="{{ "/static/js/lib/smooth.pack.js" | prepend: site.baseurl
}}"></script>
-<script type="text/javascript" src="{{ "/static/js/lib/jquery-2.1.1.min.js" | prepend:
site.baseurl }}"></script>
-<script type="text/javascript" src="{{ "/static/js/lib/bootstrap.min.js" | prepend: site.baseurl
}}"></script>
-<script type="text/javascript" src="{{ "/static/js/lib/toc.min.js" | prepend: site.baseurl
}}"></script>
-<script type="text/javascript" src="{{ "/static/js/index.js" | prepend: site.baseurl }}"></script>
-<script type="text/javascript" src="{{ "/static/js/docs.js" | prepend: site.baseurl }}"></script>
+<script type="text/javascript" src="{{ site.baseurl }}/static/js/lib/smooth.pack.js"></script>
+<script type="text/javascript" src="{{ site.baseurl }}/static/js/lib/jquery-2.1.1.min.js"></script>
+<script type="text/javascript" src="{{ site.baseurl }}/static/js/lib/bootstrap.min.js"></script>
+<script type="text/javascript" src="{{ site.baseurl }}/static/js/lib/toc.min.js"></script>
+<script type="text/javascript" src="{{ site.baseurl }}/static/js/index.js"></script>
+<script type="text/javascript" src="{{ site.baseurl }}/static/js/docs.js"></script>

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f259fb26/www/_includes/head.html
----------------------------------------------------------------------
diff --git a/www/_includes/head.html b/www/_includes/head.html
index 7fe80ff..f300942 100644
--- a/www/_includes/head.html
+++ b/www/_includes/head.html
@@ -9,14 +9,14 @@
     <title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
 
     <link rel="SHORTCUT ICON" href="{{ site.baseurl }}/favicon.ico"/>
-    <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl
| prepend: site.url }}">
+    <link rel="canonical" href="{{ site.url }}{{ site.baseurl }}{{ page.url | replace:'index.html',''
}}">
 
     <!-- CSS -->
-    <!-- <link rel="stylesheet" type="text/css" href="{{ "/static/css/lib/bootstrap.css"
| prepend: site.baseurl }}" /> -->
-    <link rel="stylesheet" type="text/css" href="{{ "/static/css/main.css" | prepend:
site.baseurl }}">
-    <link rel="stylesheet" type="text/css" href="{{ "/static/css/master.css" | prepend:
site.baseurl }}">
-    <link rel="stylesheet" type="text/css" href="{{ "/static/css/docs.css" | prepend:
site.baseurl }}">
-    
+    <!-- <link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/static/css/lib/bootstrap.css"
/> -->
+    <link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/static/css/main.css">
+    <link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/static/css/master.css">
+    <link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/static/css/docs.css">
+
     <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries
-->
     <!--[if lt IE 9]>
         <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f259fb26/www/_layouts/docs.html
----------------------------------------------------------------------
diff --git a/www/_layouts/docs.html b/www/_layouts/docs.html
index 8e78c3b..4d16c40 100644
--- a/www/_layouts/docs.html
+++ b/www/_layouts/docs.html
@@ -2,57 +2,77 @@
 layout: cordova
 ---
 
-<a href="{{ site.repo.uri }}/tree/{{ site.repo.branch }}/www/{{ page.path }}">Edit
this page on GitHub</a>.
+<div class="container">
 
-Language
-<ul>
-    {% for language_entry in site.data.languages %}
-    {% assign language_id = language_entry[0] %}
-    {% assign language    = language_entry[1] %}
-    <li>
-        {% if language.versions contains page.version %}
-        <a href="{{ site.baseurl }}/docs/{{ language_id }}/{{ page.version }}">
-        {% else %}
-        <a class="missing-version" href="{{ site.baseurl }}/docs/{{ language_id }}/edge">
-        {% endif %}
-            {{ language.name }}
-        </a>
-    </li>
-    {% endfor %}
-</ul>
-
-Version
-<ul>
-    {% for version in site.data.languages.[page.language].versions %}
-    <li>
-        <a href="{{ site.baseurl }}/docs/{{ page.language }}/{{ version }}">{{ version
}}</a>
-    </li>
-    {% endfor %}
-</ul>
-
-{% if page.version != 'edge' %}
-    {{ page.not_latest_warning_text }}
-{% endif %}
-
-<h2>{{ page.toc_text }}</h2>
-<ul>
-    {% assign page_meta = site.data.[page.language].[page.version] %}
-    {% if page_meta.toc-manual %}
-    {% assign tocfile = page_meta.toc-manual %}
-    {% else %}
-    {% assign tocfile = page_meta.toc-manual %}
+    {% if page.version != 'edge' %}
+    <div class="alert alert-danger">
+        {{ page.not_latest_warning_text }}
+    </div>
     {% endif %}
 
-    {% for entry in tocfile %}
-    <li>
-        <a href="{{ entry.url | prepend: site.baseurl }}">{{ entry.name }}</a>
-        {% if page.url == entry.url %}
-        <div id="page-toc"></div>
-        {% endif %}
-    </li>
-    {% endfor %}
-</ul>
+    <div class="col-xs-3">
+        <h2>{{ page.toc_text }}</h2>
+        <ul>
+            {% assign toc_dir = site.data.toc %}
+            {% if toc_dir.[page.manual_toc] %}
+                {% assign tocfile = toc_dir.[page.manual_toc] %}
+            {% else %}
+                {% assign tocfile = toc_dir.[page.generated_toc] %}
+            {% endif %}
+
+            {% for entry in tocfile %}
+            <li>
+                <a href="{{ site.baseurl }}{{ entry.url }}">{{ entry.name }}</a>
+                {% if page.url == entry.url %}
+                <div id="page-toc"></div>
+                {% endif %}
+            </li>
+            {% endfor %}
+        </ul>
+    </div>
 
-<div id="page-toc-source">
-    {{ content }}
+    <div id="page-toc-source" class="col-xs-9">
+        <div class="row">
+            <a href="{{ site.repo.uri }}/tree/{{ site.repo.branch }}/www/{{ page.path
}}">Edit</a>
+            <div class="dropdown">
+                <button class="btn btn-default dropdown-toggle" type="button" id="languageDropdown"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
+                    Language
+                    <span class="caret"></span>
+                </button>
+                <ul class="dropdown-menu" aria-labelledby="languageDropdown">
+                    {% for language_entry in site.data.languages %}
+                    {% assign language_id = language_entry[0] %}
+                    {% assign language    = language_entry[1] %}
+                    <li>
+                        {% if language.versions contains page.version %}
+                        <a href="{{ site.baseurl }}/docs/{{ language_id }}/{{ page.version
}}">
+                        {% else %}
+                        <a href="#" class="missing-version">
+                        {% endif %}
+                            {{ language.name }}
+                        </a>
+                    </li>
+                    {% endfor %}
+                </ul>
+            </div>
+            <div class="dropdown">
+                <button class="btn btn-default dropdown-toggle" type="button" id="languageDropdown"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
+                    Version
+                    <span class="caret"></span>
+                </button>
+                <ul class="dropdown-menu" aria-labelledby="languageDropdown">
+                    {% for version in site.data.languages.[page.language].versions %}
+                    <li>
+                        <a href="{{ site.baseurl }}/docs/{{ page.language }}/{{ version
}}">
+                            {{ version }}
+                        </a>
+                    </li>
+                    {% endfor %}
+                </ul>
+            </div>
+        </div>
+        <div class="row">
+            {{ content }}
+        </div>
+    </div>
 </div>

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f259fb26/www/feed.xml
----------------------------------------------------------------------
diff --git a/www/feed.xml b/www/feed.xml
index a6628bd..754f546 100644
--- a/www/feed.xml
+++ b/www/feed.xml
@@ -7,7 +7,7 @@ layout: null
     <title>{{ site.title | xml_escape }}</title>
     <description>{{ site.description | xml_escape }}</description>
     <link>{{ site.url }}{{ site.baseurl }}/</link>
-    <atom:link href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self"
type="application/rss+xml"/>
+    <atom:link href="{{ site.url }}{{ site.baseurl }}/feed.xml" rel="self" type="application/rss+xml"/>
     <pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
     <lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
     <generator>Jekyll v{{ jekyll.version }}</generator>
@@ -16,8 +16,8 @@ layout: null
         <title>{{ post.title | xml_escape }}</title>
         <description>{{ post.content | xml_escape }}</description>
         <pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
-        <link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
-        <guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url
}}</guid>
+        <link>{{ site.url }}{{ site.baseurl }}{{ post.url }}</link>
+        <guid isPermaLink="true">{{ site.url }}{{ site.baseurl }}{{ post.url }}</guid>
         {% for tag in post.tags %}
         <category>{{ tag | xml_escape }}</category>
         {% endfor %}

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f259fb26/www/index.html
----------------------------------------------------------------------
diff --git a/www/index.html b/www/index.html
index 30b2c31..1fd1e7e 100644
--- a/www/index.html
+++ b/www/index.html
@@ -6,8 +6,7 @@ title: Apache Cordova
 <!-- REMOVE THIS LINK BEFORE PUBLISHING.  This is just for IntelliSense while coding -->
 <!-- <link rel="stylesheet" type="text/css" href="static/css/lib/bootstrap.css"/>
-->
 
-
-    <!-- Main jumbotron for a primary marketing message or call to action -->
+<!-- Main jumbotron for a primary marketing message or call to action -->
 <div id="hero">
     <div class="container vertical-center-parent">
         <div id="hero_section" class="vertical-center-child">
@@ -82,7 +81,7 @@ title: Apache Cordova
 
       <hr>
 
-     
+
     </div> <!-- /container -->
 
 

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f259fb26/www/static/css-src/docs.css
----------------------------------------------------------------------
diff --git a/www/static/css-src/docs.css b/www/static/css-src/docs.css
deleted file mode 100644
index 67d300a..0000000
--- a/www/static/css-src/docs.css
+++ /dev/null
@@ -1,13 +0,0 @@
-.toc-active a {
-    color: red;
-}
-
-.page-toc-anchor {
-    display: block;
-    position: relative;
-    bottom: 50px;
-}
-
-.missing-version {
-    color: red !important;
-}

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f259fb26/www/static/css-src/docs.scss
----------------------------------------------------------------------
diff --git a/www/static/css-src/docs.scss b/www/static/css-src/docs.scss
new file mode 100644
index 0000000..67d300a
--- /dev/null
+++ b/www/static/css-src/docs.scss
@@ -0,0 +1,13 @@
+.toc-active a {
+    color: red;
+}
+
+.page-toc-anchor {
+    display: block;
+    position: relative;
+    bottom: 50px;
+}
+
+.missing-version {
+    color: red !important;
+}

http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f259fb26/www/static/css-src/main.scss
----------------------------------------------------------------------
diff --git a/www/static/css-src/main.scss b/www/static/css-src/main.scss
index df92d6b..97eafca 100644
--- a/www/static/css-src/main.scss
+++ b/www/static/css-src/main.scss
@@ -35,7 +35,7 @@ $brand-primary: #4CC2E4;
 #hero {
 	height:1020px;
 	background-color:$gray-transparent;
-    background-image: url("/static/img/wisplight.jpg");
+    background-image: url("{{ site.baseurl }}/static/img/wisplight.jpg");
     background-size: cover;
 	position:relative;
 	color:white;
@@ -89,11 +89,11 @@ $brand-primary: #4CC2E4;
 	}
 }
 .value_prop {
-	
+
 }
 
 @mixin sprite-img($a, $b) {
-	background: url("/static/img/value-prop-sprite.svg") $a $b;
+	background: url("{{ site.baseurl }}/static/img/value-prop-sprite.svg") $a $b;
 }
 
 #sprite_shared_code { @include sprite-img(0px, 0) }
@@ -119,8 +119,8 @@ img#logo_top {
 		float:none;
 	}
   }
-  
-  
+
+
 
 
 .vertical-center-parent {
@@ -204,4 +204,4 @@ h2 {
 	font-size:12px;
 	margin-top:-14px;
 	padding: 1px 5px;
-}
\ 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


Mime
View raw message