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/19 02:59:23 UTC
[2/3] docs commit: Added page indices to the docs
Added page indices to the docs
Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/dc5550e4
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/dc5550e4
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/dc5550e4
Branch: refs/heads/cordova-website
Commit: dc5550e40db2a02ea277764c0e21117c67a3d14a
Parents: 66ea750
Author: riknoll <ri...@microsoft.com>
Authored: Fri Sep 18 12:15:34 2015 -0700
Committer: Dmitry Blotsky <dm...@gmail.com>
Committed: Fri Sep 18 17:58:51 2015 -0700
----------------------------------------------------------------------
gulpfile.js | 2 +-
tools/bin/toc.js | 35 ++++++++++++++++++++++------
www/_includes/docs_index.html | 19 +++++++++++++++
www/docs/de/3.1.0/page_index.md | 4 ++++
www/docs/de/3.4.0/page_index.md | 4 ++++
www/docs/de/3.5.0/page_index.md | 4 ++++
www/docs/de/edge/page_index.md | 4 ++++
www/docs/en/1.5.0/page_index.md | 4 ++++
www/docs/en/1.6.0/page_index.md | 4 ++++
www/docs/en/1.6.1/page_index.md | 4 ++++
www/docs/en/1.7.0/page_index.md | 4 ++++
www/docs/en/1.8.0/page_index.md | 4 ++++
www/docs/en/1.8.1/page_index.md | 4 ++++
www/docs/en/1.9.0/page_index.md | 4 ++++
www/docs/en/2.0.0/page_index.md | 4 ++++
www/docs/en/2.1.0/page_index.md | 4 ++++
www/docs/en/2.2.0/page_index.md | 4 ++++
www/docs/en/2.3.0/page_index.md | 4 ++++
www/docs/en/2.4.0/page_index.md | 4 ++++
www/docs/en/2.5.0/page_index.md | 4 ++++
www/docs/en/2.6.0/page_index.md | 4 ++++
www/docs/en/2.7.0/page_index.md | 4 ++++
www/docs/en/2.8.0/page_index.md | 4 ++++
www/docs/en/2.9.0/page_index.md | 4 ++++
www/docs/en/3.0.0/page_index.md | 4 ++++
www/docs/en/3.1.0/page_index.md | 4 ++++
www/docs/en/3.2.0/page_index.md | 4 ++++
www/docs/en/3.3.0/page_index.md | 4 ++++
www/docs/en/3.4.0/page_index.md | 4 ++++
www/docs/en/3.5.0/page_index.md | 4 ++++
www/docs/en/3.6.0/page_index.md | 4 ++++
www/docs/en/4.0.0/page_index.md | 4 ++++
www/docs/en/5.0.0/page_index.md | 4 ++++
www/docs/en/5.1.1/page_index.md | 4 ++++
www/docs/en/edge/page_index.md | 4 ++++
www/docs/es/3.1.0/page_index.md | 4 ++++
www/docs/es/3.4.0/page_index.md | 4 ++++
www/docs/es/3.5.0/page_index.md | 4 ++++
www/docs/es/edge/page_index.md | 4 ++++
www/docs/fr/3.1.0/page_index.md | 4 ++++
www/docs/fr/3.4.0/page_index.md | 4 ++++
www/docs/fr/3.5.0/page_index.md | 4 ++++
www/docs/fr/edge/page_index.md | 4 ++++
www/docs/it/3.1.0/page_index.md | 4 ++++
www/docs/it/3.4.0/page_index.md | 4 ++++
www/docs/it/3.5.0/page_index.md | 4 ++++
www/docs/it/edge/page_index.md | 4 ++++
www/docs/ja/1.7.0/page_index.md | 4 ++++
www/docs/ja/1.8.1/page_index.md | 4 ++++
www/docs/ja/1.9.0/page_index.md | 4 ++++
www/docs/ja/2.0.0/page_index.md | 4 ++++
www/docs/ja/2.1.0/page_index.md | 4 ++++
www/docs/ja/2.2.0/page_index.md | 4 ++++
www/docs/ja/3.1.0/page_index.md | 4 ++++
www/docs/ja/3.4.0/page_index.md | 4 ++++
www/docs/ja/3.5.0/page_index.md | 4 ++++
www/docs/ja/edge/page_index.md | 4 ++++
www/docs/ko/2.0.0/page_index.md | 4 ++++
www/docs/ko/3.1.0/page_index.md | 4 ++++
www/docs/ko/3.4.0/page_index.md | 4 ++++
www/docs/ko/3.5.0/page_index.md | 4 ++++
www/docs/ko/edge/page_index.md | 4 ++++
www/docs/pl/edge/page_index.md | 4 ++++
www/docs/ru/3.1.0/page_index.md | 4 ++++
www/docs/ru/3.4.0/page_index.md | 4 ++++
www/docs/ru/3.5.0/page_index.md | 4 ++++
www/docs/ru/5.0.0/page_index.md | 4 ++++
www/docs/ru/5.1.1/page_index.md | 4 ++++
www/docs/ru/edge/page_index.md | 4 ++++
www/docs/sl/3.4.0/page_index.md | 4 ++++
www/docs/sl/3.5.0/page_index.md | 4 ++++
www/docs/sl/edge/page_index.md | 4 ++++
www/docs/zh/3.1.0/page_index.md | 4 ++++
www/docs/zh/3.4.0/page_index.md | 4 ++++
www/docs/zh/3.5.0/page_index.md | 4 ++++
www/docs/zh/edge/page_index.md | 4 ++++
www/static/css-src/_docs.scss | 9 +++++++
www/static/js/docs-keyword-index.js | 40 ++++++++++++++++++++++++++++++++
78 files changed, 389 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/gulpfile.js
----------------------------------------------------------------------
diff --git a/gulpfile.js b/gulpfile.js
index aba3800..fec03d1 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -152,7 +152,7 @@ gulp.task("serve", ["build"], function () {
});
});
-gulp.task("gen-full", ["configs", "styles", "plugins"], function (done) {
+gulp.task("gen-full", ["toc", "configs", "styles", "plugins"], function (done) {
jekyllBuild(done);
});
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/tools/bin/toc.js
----------------------------------------------------------------------
diff --git a/tools/bin/toc.js b/tools/bin/toc.js
index fb0ce0a..71868ce 100644
--- a/tools/bin/toc.js
+++ b/tools/bin/toc.js
@@ -30,8 +30,21 @@ function isUnderline(line) {
return /-+|=+|\*+/.test(line);
}
-function getPageTitle(pagePath) {
- return path.basename(pagePath).replace('.md', '');
+function getPageTitle(filePath) {
+ var file = fs.readFileSync(filePath, 'utf8');
+ var res = /<h1>([^<]*)<\/h1>|#\ (.*)|(.*)[\n\f\r]+(?:={3}=+|-{3}-+)/.exec(file);
+ if(res) {
+ if(res[1]) {
+ return res[1].trim();
+ }
+ if(res[2]) {
+ return res[2].trim();
+ }
+ if(res[3]) {
+ return res[3].trim();
+ }
+ }
+ return null;
}
function generate(sourceDir, prefix) {
@@ -44,11 +57,15 @@ function generate(sourceDir, prefix) {
walker.on("file", function (root, fileStats, next) {
var dirPrefix = root.replace(sourceDir, '');
var filePath = path.join(dirPrefix, fileStats.name);
- var entry = {
- name: getPageTitle(filePath),
- url: path.join(prefix, filePath)
- };
- toc.push(entry);
+ var heading = getPageTitle(path.join(root, fileStats.name));
+
+ if(heading) {
+ toc.push({
+ url: path.join(prefix, filePath).replace(".md", ".html").replace(/\\/g, "/"),
+ name: heading
+ });
+ }
+
next();
});
@@ -94,6 +111,10 @@ function main () {
// generate file
generate(versionPath, prefix).then(function (toc) {
+ toc.sort(function (a, b) {
+ return a.name.localeCompare(b.name, languageName);
+ });
+
var tocText = yaml.dump(toc);
console.log(outputPath);
fs.writeFileSync(outputPath, tocText, 'utf-8');
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/_includes/docs_index.html
----------------------------------------------------------------------
diff --git a/www/_includes/docs_index.html b/www/_includes/docs_index.html
new file mode 100644
index 0000000..1672964
--- /dev/null
+++ b/www/_includes/docs_index.html
@@ -0,0 +1,19 @@
+<h1>Keyword Index</h1>
+
+<div id="keyword-index-container" class="keyword-index-list row"></div>
+
+<script>
+var keywordIndex = [
+{% for entry in site.data.toc[page.generated_toc] %}
+ {
+ url: "{{ site.baseurl }}{{ entry.url }}",
+ name: "{{entry.name}}"
+ }
+ {% if forloop.last != true %}
+ ,
+ {% endif %}
+{% endfor %}
+];
+</script>
+
+<script defer type="text/javascript" src="{{ site.baseurl }}/static/js/docs-keyword-index.js"></script>
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/de/3.1.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/de/3.1.0/page_index.md b/www/docs/de/3.1.0/page_index.md
new file mode 100644
index 0000000..b994f60
--- /dev/null
+++ b/www/docs/de/3.1.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-de
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/de/3.4.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/de/3.4.0/page_index.md b/www/docs/de/3.4.0/page_index.md
new file mode 100644
index 0000000..b994f60
--- /dev/null
+++ b/www/docs/de/3.4.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-de
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/de/3.5.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/de/3.5.0/page_index.md b/www/docs/de/3.5.0/page_index.md
new file mode 100644
index 0000000..b994f60
--- /dev/null
+++ b/www/docs/de/3.5.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-de
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/de/edge/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/de/edge/page_index.md b/www/docs/de/edge/page_index.md
new file mode 100644
index 0000000..b994f60
--- /dev/null
+++ b/www/docs/de/edge/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-de
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/en/1.5.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/en/1.5.0/page_index.md b/www/docs/en/1.5.0/page_index.md
new file mode 100644
index 0000000..563966f
--- /dev/null
+++ b/www/docs/en/1.5.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-en
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/en/1.6.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/en/1.6.0/page_index.md b/www/docs/en/1.6.0/page_index.md
new file mode 100644
index 0000000..563966f
--- /dev/null
+++ b/www/docs/en/1.6.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-en
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/en/1.6.1/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/en/1.6.1/page_index.md b/www/docs/en/1.6.1/page_index.md
new file mode 100644
index 0000000..563966f
--- /dev/null
+++ b/www/docs/en/1.6.1/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-en
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/en/1.7.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/en/1.7.0/page_index.md b/www/docs/en/1.7.0/page_index.md
new file mode 100644
index 0000000..563966f
--- /dev/null
+++ b/www/docs/en/1.7.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-en
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/en/1.8.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/en/1.8.0/page_index.md b/www/docs/en/1.8.0/page_index.md
new file mode 100644
index 0000000..563966f
--- /dev/null
+++ b/www/docs/en/1.8.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-en
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/en/1.8.1/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/en/1.8.1/page_index.md b/www/docs/en/1.8.1/page_index.md
new file mode 100644
index 0000000..563966f
--- /dev/null
+++ b/www/docs/en/1.8.1/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-en
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/en/1.9.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/en/1.9.0/page_index.md b/www/docs/en/1.9.0/page_index.md
new file mode 100644
index 0000000..563966f
--- /dev/null
+++ b/www/docs/en/1.9.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-en
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/en/2.0.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/en/2.0.0/page_index.md b/www/docs/en/2.0.0/page_index.md
new file mode 100644
index 0000000..563966f
--- /dev/null
+++ b/www/docs/en/2.0.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-en
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/en/2.1.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/en/2.1.0/page_index.md b/www/docs/en/2.1.0/page_index.md
new file mode 100644
index 0000000..563966f
--- /dev/null
+++ b/www/docs/en/2.1.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-en
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/en/2.2.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/en/2.2.0/page_index.md b/www/docs/en/2.2.0/page_index.md
new file mode 100644
index 0000000..563966f
--- /dev/null
+++ b/www/docs/en/2.2.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-en
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/en/2.3.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/en/2.3.0/page_index.md b/www/docs/en/2.3.0/page_index.md
new file mode 100644
index 0000000..563966f
--- /dev/null
+++ b/www/docs/en/2.3.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-en
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/en/2.4.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/en/2.4.0/page_index.md b/www/docs/en/2.4.0/page_index.md
new file mode 100644
index 0000000..563966f
--- /dev/null
+++ b/www/docs/en/2.4.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-en
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/en/2.5.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/en/2.5.0/page_index.md b/www/docs/en/2.5.0/page_index.md
new file mode 100644
index 0000000..563966f
--- /dev/null
+++ b/www/docs/en/2.5.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-en
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/en/2.6.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/en/2.6.0/page_index.md b/www/docs/en/2.6.0/page_index.md
new file mode 100644
index 0000000..563966f
--- /dev/null
+++ b/www/docs/en/2.6.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-en
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/en/2.7.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/en/2.7.0/page_index.md b/www/docs/en/2.7.0/page_index.md
new file mode 100644
index 0000000..563966f
--- /dev/null
+++ b/www/docs/en/2.7.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-en
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/en/2.8.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/en/2.8.0/page_index.md b/www/docs/en/2.8.0/page_index.md
new file mode 100644
index 0000000..563966f
--- /dev/null
+++ b/www/docs/en/2.8.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-en
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/en/2.9.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/en/2.9.0/page_index.md b/www/docs/en/2.9.0/page_index.md
new file mode 100644
index 0000000..563966f
--- /dev/null
+++ b/www/docs/en/2.9.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-en
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/en/3.0.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/en/3.0.0/page_index.md b/www/docs/en/3.0.0/page_index.md
new file mode 100644
index 0000000..563966f
--- /dev/null
+++ b/www/docs/en/3.0.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-en
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/en/3.1.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/en/3.1.0/page_index.md b/www/docs/en/3.1.0/page_index.md
new file mode 100644
index 0000000..563966f
--- /dev/null
+++ b/www/docs/en/3.1.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-en
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/en/3.2.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/en/3.2.0/page_index.md b/www/docs/en/3.2.0/page_index.md
new file mode 100644
index 0000000..563966f
--- /dev/null
+++ b/www/docs/en/3.2.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-en
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/en/3.3.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/en/3.3.0/page_index.md b/www/docs/en/3.3.0/page_index.md
new file mode 100644
index 0000000..563966f
--- /dev/null
+++ b/www/docs/en/3.3.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-en
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/en/3.4.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/en/3.4.0/page_index.md b/www/docs/en/3.4.0/page_index.md
new file mode 100644
index 0000000..563966f
--- /dev/null
+++ b/www/docs/en/3.4.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-en
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/en/3.5.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/en/3.5.0/page_index.md b/www/docs/en/3.5.0/page_index.md
new file mode 100644
index 0000000..563966f
--- /dev/null
+++ b/www/docs/en/3.5.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-en
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/en/3.6.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/en/3.6.0/page_index.md b/www/docs/en/3.6.0/page_index.md
new file mode 100644
index 0000000..563966f
--- /dev/null
+++ b/www/docs/en/3.6.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-en
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/en/4.0.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/en/4.0.0/page_index.md b/www/docs/en/4.0.0/page_index.md
new file mode 100644
index 0000000..563966f
--- /dev/null
+++ b/www/docs/en/4.0.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-en
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/en/5.0.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/en/5.0.0/page_index.md b/www/docs/en/5.0.0/page_index.md
new file mode 100644
index 0000000..563966f
--- /dev/null
+++ b/www/docs/en/5.0.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-en
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/en/5.1.1/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/en/5.1.1/page_index.md b/www/docs/en/5.1.1/page_index.md
new file mode 100644
index 0000000..563966f
--- /dev/null
+++ b/www/docs/en/5.1.1/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-en
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/en/edge/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/en/edge/page_index.md b/www/docs/en/edge/page_index.md
new file mode 100644
index 0000000..563966f
--- /dev/null
+++ b/www/docs/en/edge/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-en
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/es/3.1.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/es/3.1.0/page_index.md b/www/docs/es/3.1.0/page_index.md
new file mode 100644
index 0000000..12ad763
--- /dev/null
+++ b/www/docs/es/3.1.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-es
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/es/3.4.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/es/3.4.0/page_index.md b/www/docs/es/3.4.0/page_index.md
new file mode 100644
index 0000000..12ad763
--- /dev/null
+++ b/www/docs/es/3.4.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-es
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/es/3.5.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/es/3.5.0/page_index.md b/www/docs/es/3.5.0/page_index.md
new file mode 100644
index 0000000..12ad763
--- /dev/null
+++ b/www/docs/es/3.5.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-es
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/es/edge/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/es/edge/page_index.md b/www/docs/es/edge/page_index.md
new file mode 100644
index 0000000..12ad763
--- /dev/null
+++ b/www/docs/es/edge/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-es
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/fr/3.1.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/fr/3.1.0/page_index.md b/www/docs/fr/3.1.0/page_index.md
new file mode 100644
index 0000000..247a7ad
--- /dev/null
+++ b/www/docs/fr/3.1.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-fr
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/fr/3.4.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/fr/3.4.0/page_index.md b/www/docs/fr/3.4.0/page_index.md
new file mode 100644
index 0000000..247a7ad
--- /dev/null
+++ b/www/docs/fr/3.4.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-fr
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/fr/3.5.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/fr/3.5.0/page_index.md b/www/docs/fr/3.5.0/page_index.md
new file mode 100644
index 0000000..247a7ad
--- /dev/null
+++ b/www/docs/fr/3.5.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-fr
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/fr/edge/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/fr/edge/page_index.md b/www/docs/fr/edge/page_index.md
new file mode 100644
index 0000000..247a7ad
--- /dev/null
+++ b/www/docs/fr/edge/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-fr
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/it/3.1.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/it/3.1.0/page_index.md b/www/docs/it/3.1.0/page_index.md
new file mode 100644
index 0000000..5e05117
--- /dev/null
+++ b/www/docs/it/3.1.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-it
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/it/3.4.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/it/3.4.0/page_index.md b/www/docs/it/3.4.0/page_index.md
new file mode 100644
index 0000000..5e05117
--- /dev/null
+++ b/www/docs/it/3.4.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-it
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/it/3.5.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/it/3.5.0/page_index.md b/www/docs/it/3.5.0/page_index.md
new file mode 100644
index 0000000..5e05117
--- /dev/null
+++ b/www/docs/it/3.5.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-it
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/it/edge/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/it/edge/page_index.md b/www/docs/it/edge/page_index.md
new file mode 100644
index 0000000..5e05117
--- /dev/null
+++ b/www/docs/it/edge/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-it
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/ja/1.7.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/ja/1.7.0/page_index.md b/www/docs/ja/1.7.0/page_index.md
new file mode 100644
index 0000000..4199431
--- /dev/null
+++ b/www/docs/ja/1.7.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-ja
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/ja/1.8.1/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/ja/1.8.1/page_index.md b/www/docs/ja/1.8.1/page_index.md
new file mode 100644
index 0000000..4199431
--- /dev/null
+++ b/www/docs/ja/1.8.1/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-ja
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/ja/1.9.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/ja/1.9.0/page_index.md b/www/docs/ja/1.9.0/page_index.md
new file mode 100644
index 0000000..4199431
--- /dev/null
+++ b/www/docs/ja/1.9.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-ja
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/ja/2.0.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/ja/2.0.0/page_index.md b/www/docs/ja/2.0.0/page_index.md
new file mode 100644
index 0000000..4199431
--- /dev/null
+++ b/www/docs/ja/2.0.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-ja
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/ja/2.1.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/ja/2.1.0/page_index.md b/www/docs/ja/2.1.0/page_index.md
new file mode 100644
index 0000000..4199431
--- /dev/null
+++ b/www/docs/ja/2.1.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-ja
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/ja/2.2.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/ja/2.2.0/page_index.md b/www/docs/ja/2.2.0/page_index.md
new file mode 100644
index 0000000..4199431
--- /dev/null
+++ b/www/docs/ja/2.2.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-ja
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/ja/3.1.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/ja/3.1.0/page_index.md b/www/docs/ja/3.1.0/page_index.md
new file mode 100644
index 0000000..4199431
--- /dev/null
+++ b/www/docs/ja/3.1.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-ja
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/ja/3.4.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/ja/3.4.0/page_index.md b/www/docs/ja/3.4.0/page_index.md
new file mode 100644
index 0000000..4199431
--- /dev/null
+++ b/www/docs/ja/3.4.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-ja
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/ja/3.5.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/ja/3.5.0/page_index.md b/www/docs/ja/3.5.0/page_index.md
new file mode 100644
index 0000000..4199431
--- /dev/null
+++ b/www/docs/ja/3.5.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-ja
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/ja/edge/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/ja/edge/page_index.md b/www/docs/ja/edge/page_index.md
new file mode 100644
index 0000000..4199431
--- /dev/null
+++ b/www/docs/ja/edge/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-ja
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/ko/2.0.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/ko/2.0.0/page_index.md b/www/docs/ko/2.0.0/page_index.md
new file mode 100644
index 0000000..8385361
--- /dev/null
+++ b/www/docs/ko/2.0.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-ko
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/ko/3.1.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/ko/3.1.0/page_index.md b/www/docs/ko/3.1.0/page_index.md
new file mode 100644
index 0000000..8385361
--- /dev/null
+++ b/www/docs/ko/3.1.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-ko
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/ko/3.4.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/ko/3.4.0/page_index.md b/www/docs/ko/3.4.0/page_index.md
new file mode 100644
index 0000000..8385361
--- /dev/null
+++ b/www/docs/ko/3.4.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-ko
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/ko/3.5.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/ko/3.5.0/page_index.md b/www/docs/ko/3.5.0/page_index.md
new file mode 100644
index 0000000..8385361
--- /dev/null
+++ b/www/docs/ko/3.5.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-ko
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/ko/edge/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/ko/edge/page_index.md b/www/docs/ko/edge/page_index.md
new file mode 100644
index 0000000..8385361
--- /dev/null
+++ b/www/docs/ko/edge/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-ko
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/pl/edge/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/pl/edge/page_index.md b/www/docs/pl/edge/page_index.md
new file mode 100644
index 0000000..1784036
--- /dev/null
+++ b/www/docs/pl/edge/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-pl
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/ru/3.1.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/ru/3.1.0/page_index.md b/www/docs/ru/3.1.0/page_index.md
new file mode 100644
index 0000000..ac97794
--- /dev/null
+++ b/www/docs/ru/3.1.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-ru
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/ru/3.4.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/ru/3.4.0/page_index.md b/www/docs/ru/3.4.0/page_index.md
new file mode 100644
index 0000000..ac97794
--- /dev/null
+++ b/www/docs/ru/3.4.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-ru
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/ru/3.5.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/ru/3.5.0/page_index.md b/www/docs/ru/3.5.0/page_index.md
new file mode 100644
index 0000000..ac97794
--- /dev/null
+++ b/www/docs/ru/3.5.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-ru
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/ru/5.0.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/ru/5.0.0/page_index.md b/www/docs/ru/5.0.0/page_index.md
new file mode 100644
index 0000000..ac97794
--- /dev/null
+++ b/www/docs/ru/5.0.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-ru
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/ru/5.1.1/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/ru/5.1.1/page_index.md b/www/docs/ru/5.1.1/page_index.md
new file mode 100644
index 0000000..ac97794
--- /dev/null
+++ b/www/docs/ru/5.1.1/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-ru
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/ru/edge/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/ru/edge/page_index.md b/www/docs/ru/edge/page_index.md
new file mode 100644
index 0000000..ac97794
--- /dev/null
+++ b/www/docs/ru/edge/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-ru
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/sl/3.4.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/sl/3.4.0/page_index.md b/www/docs/sl/3.4.0/page_index.md
new file mode 100644
index 0000000..2978883
--- /dev/null
+++ b/www/docs/sl/3.4.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-sl
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/sl/3.5.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/sl/3.5.0/page_index.md b/www/docs/sl/3.5.0/page_index.md
new file mode 100644
index 0000000..2978883
--- /dev/null
+++ b/www/docs/sl/3.5.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-sl
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/sl/edge/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/sl/edge/page_index.md b/www/docs/sl/edge/page_index.md
new file mode 100644
index 0000000..2978883
--- /dev/null
+++ b/www/docs/sl/edge/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-sl
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/zh/3.1.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/zh/3.1.0/page_index.md b/www/docs/zh/3.1.0/page_index.md
new file mode 100644
index 0000000..c7775d1
--- /dev/null
+++ b/www/docs/zh/3.1.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-zh
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/zh/3.4.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/zh/3.4.0/page_index.md b/www/docs/zh/3.4.0/page_index.md
new file mode 100644
index 0000000..c7775d1
--- /dev/null
+++ b/www/docs/zh/3.4.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-zh
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/zh/3.5.0/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/zh/3.5.0/page_index.md b/www/docs/zh/3.5.0/page_index.md
new file mode 100644
index 0000000..c7775d1
--- /dev/null
+++ b/www/docs/zh/3.5.0/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-zh
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/docs/zh/edge/page_index.md
----------------------------------------------------------------------
diff --git a/www/docs/zh/edge/page_index.md b/www/docs/zh/edge/page_index.md
new file mode 100644
index 0000000..c7775d1
--- /dev/null
+++ b/www/docs/zh/edge/page_index.md
@@ -0,0 +1,4 @@
+---
+layout: docs-zh
+---
+{% include docs_index.html %}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/static/css-src/_docs.scss
----------------------------------------------------------------------
diff --git a/www/static/css-src/_docs.scss b/www/static/css-src/_docs.scss
index 49a7255..c8d2b84 100644
--- a/www/static/css-src/_docs.scss
+++ b/www/static/css-src/_docs.scss
@@ -101,6 +101,15 @@
color: gray !important;
}
+ .keyword-index-list {
+ list-style: none;
+
+ .keyword-index-sublist {
+ min-height: 180px;
+ list-style: none;
+ }
+ }
+
/* Formatting for compatibility table on plugin docs page */
.compat {
td {
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/dc5550e4/www/static/js/docs-keyword-index.js
----------------------------------------------------------------------
diff --git a/www/static/js/docs-keyword-index.js b/www/static/js/docs-keyword-index.js
new file mode 100644
index 0000000..3fc335c
--- /dev/null
+++ b/www/static/js/docs-keyword-index.js
@@ -0,0 +1,40 @@
+var createSublist = function() {
+ var ul = document.createElement("div");
+ ul.setAttribute("class", "keyword-index-sublist")
+ return ul;
+}
+
+var createLink = function(href, text) {
+ var a = document.createElement("a");
+ a.textContent = text;
+ a.setAttribute("href", href);
+ return a;
+}
+
+var container = document.getElementById("keyword-index-container");
+var currentLetter = null;
+var currentList = null;
+
+keywordIndex.forEach(function(entry) {
+ // Create a separate sublist for each letter
+ if(currentLetter !== entry.name.charAt(0).toUpperCase()) {
+ if(currentList) {
+ var letterHeader = document.createElement("h2");
+ letterHeader.textContent = currentLetter;
+
+ var letterSection = document.createElement("div");
+ letterSection.setAttribute("class", "col-sm-4");
+ letterSection.appendChild(letterHeader);
+ letterSection.appendChild(currentList);
+ container.appendChild(letterSection);
+ }
+
+ currentList = createSublist();
+ currentLetter = entry.name.charAt(0).toUpperCase();
+ }
+
+ var listItem = document.createElement("div");
+ listItem.appendChild(createLink(entry.url, entry.name));
+
+ currentList.appendChild(listItem);
+});
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org