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 2016/04/21 02:39:52 UTC
[9/9] docs commit: CB-11126 Refactoring ToC generation process.
CB-11126 Refactoring ToC generation process.
Source ToCs are now always required, and the result ToCs are generated from
them. Refactored Makefile for better readability. Renamed ToCs to match new ToC
build process. Moved ToC names into toc_title properties for their respective
files, and also removed the 'name' property from all ToC files.
Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/72bf41e7
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/72bf41e7
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/72bf41e7
Branch: refs/heads/master
Commit: 72bf41e74891ce8b57d16ed93587fecf3543fbfc
Parents: 638da7a
Author: Dmitry Blotsky <dm...@gmail.com>
Authored: Tue Apr 19 18:45:44 2016 -0700
Committer: Dmitry Blotsky <dm...@gmail.com>
Committed: Wed Apr 20 17:28:35 2016 -0700
----------------------------------------------------------------------
.gitignore | 1 +
Makefile | 124 +++++++-------
gulpfile.js | 12 +-
tools/bin/augment_toc.js | 160 +++++++++++++++++++
tools/bin/fetch_docs.js | 4 +-
tools/bin/gen_defaults.js | 12 +-
tools/bin/gen_versions.js | 3 +-
tools/bin/toc.js | 118 +++-----------
tools/bin/util.js | 23 +--
www/_data/.gitignore | 1 -
www/_data/toc/de-3-1-0-manual.yml | 27 ----
www/_data/toc/de-3-4-0-manual.yml | 15 --
www/_data/toc/de-3-5-0-manual.yml | 15 --
www/_data/toc/de-5-4-0-manual.yml | 18 ---
www/_data/toc/de-6-x-manual.yml | 118 --------------
www/_data/toc/de-dev-manual.yml | 118 --------------
www/_data/toc/de_3-1-0-src.yml | 27 ++++
www/_data/toc/de_3-4-0-src.yml | 15 ++
www/_data/toc/de_3-5-0-src.yml | 15 ++
www/_data/toc/de_5-4-0-src.yml | 18 +++
www/_data/toc/de_6-x-src.yml | 75 +++++++++
www/_data/toc/de_dev-src.yml | 75 +++++++++
www/_data/toc/en-1-5-0-manual.yml | 15 --
www/_data/toc/en-1-6-0-manual.yml | 15 --
www/_data/toc/en-1-6-1-manual.yml | 15 --
www/_data/toc/en-1-7-0-manual.yml | 15 --
www/_data/toc/en-1-8-0-manual.yml | 17 --
www/_data/toc/en-1-8-1-manual.yml | 17 --
www/_data/toc/en-1-9-0-manual.yml | 19 ---
www/_data/toc/en-2-0-0-manual.yml | 20 ---
www/_data/toc/en-2-1-0-manual.yml | 20 ---
www/_data/toc/en-2-2-0-manual.yml | 23 ---
www/_data/toc/en-2-3-0-manual.yml | 24 ---
www/_data/toc/en-2-4-0-manual.yml | 24 ---
www/_data/toc/en-2-5-0-manual.yml | 24 ---
www/_data/toc/en-2-6-0-manual.yml | 24 ---
www/_data/toc/en-2-7-0-manual.yml | 24 ---
www/_data/toc/en-2-8-0-manual.yml | 25 ---
www/_data/toc/en-2-9-0-manual.yml | 27 ----
www/_data/toc/en-3-0-0-manual.yml | 25 ---
www/_data/toc/en-3-1-0-manual.yml | 25 ---
www/_data/toc/en-3-2-0-manual.yml | 28 ----
www/_data/toc/en-3-3-0-manual.yml | 28 ----
www/_data/toc/en-3-4-0-manual.yml | 15 --
www/_data/toc/en-3-5-0-manual.yml | 17 --
www/_data/toc/en-3-6-0-manual.yml | 17 --
www/_data/toc/en-4-0-0-manual.yml | 17 --
www/_data/toc/en-5-0-0-manual.yml | 17 --
www/_data/toc/en-5-1-1-manual.yml | 19 ---
www/_data/toc/en-5-4-0-manual.yml | 20 ---
www/_data/toc/en-6-x-manual.yml | 118 --------------
www/_data/toc/en-dev-manual.yml | 118 --------------
www/_data/toc/en_1-5-0-src.yml | 15 ++
www/_data/toc/en_1-6-0-src.yml | 15 ++
www/_data/toc/en_1-6-1-src.yml | 15 ++
www/_data/toc/en_1-7-0-src.yml | 15 ++
www/_data/toc/en_1-8-0-src.yml | 17 ++
www/_data/toc/en_1-8-1-src.yml | 17 ++
www/_data/toc/en_1-9-0-src.yml | 19 +++
www/_data/toc/en_2-0-0-src.yml | 20 +++
www/_data/toc/en_2-1-0-src.yml | 20 +++
www/_data/toc/en_2-2-0-src.yml | 23 +++
www/_data/toc/en_2-3-0-src.yml | 24 +++
www/_data/toc/en_2-4-0-src.yml | 24 +++
www/_data/toc/en_2-5-0-src.yml | 24 +++
www/_data/toc/en_2-6-0-src.yml | 24 +++
www/_data/toc/en_2-7-0-src.yml | 24 +++
www/_data/toc/en_2-8-0-src.yml | 25 +++
www/_data/toc/en_2-9-0-src.yml | 27 ++++
www/_data/toc/en_3-0-0-src.yml | 25 +++
www/_data/toc/en_3-1-0-src.yml | 25 +++
www/_data/toc/en_3-2-0-src.yml | 28 ++++
www/_data/toc/en_3-3-0-src.yml | 28 ++++
www/_data/toc/en_3-4-0-src.yml | 15 ++
www/_data/toc/en_3-5-0-src.yml | 17 ++
www/_data/toc/en_3-6-0-src.yml | 17 ++
www/_data/toc/en_4-0-0-src.yml | 17 ++
www/_data/toc/en_5-0-0-src.yml | 17 ++
www/_data/toc/en_5-1-1-src.yml | 19 +++
www/_data/toc/en_5-4-0-src.yml | 20 +++
www/_data/toc/en_6-x-src.yml | 75 +++++++++
www/_data/toc/en_dev-src.yml | 75 +++++++++
www/_data/toc/es-3-1-0-manual.yml | 26 ---
www/_data/toc/es-3-4-0-manual.yml | 11 --
www/_data/toc/es-3-5-0-manual.yml | 11 --
www/_data/toc/es-5-4-0-manual.yml | 18 ---
www/_data/toc/es-6-x-manual.yml | 118 --------------
www/_data/toc/es-dev-manual.yml | 118 --------------
www/_data/toc/es_3-1-0-src.yml | 26 +++
www/_data/toc/es_3-4-0-src.yml | 11 ++
www/_data/toc/es_3-5-0-src.yml | 11 ++
www/_data/toc/es_5-4-0-src.yml | 18 +++
www/_data/toc/es_6-x-src.yml | 75 +++++++++
www/_data/toc/es_dev-src.yml | 75 +++++++++
www/_data/toc/fr-3-1-0-manual.yml | 24 ---
www/_data/toc/fr-3-4-0-manual.yml | 11 --
www/_data/toc/fr-3-5-0-manual.yml | 11 --
www/_data/toc/fr-5-4-0-manual.yml | 15 --
www/_data/toc/fr-6-x-manual.yml | 118 --------------
www/_data/toc/fr-dev-manual.yml | 118 --------------
www/_data/toc/fr_3-1-0-src.yml | 24 +++
www/_data/toc/fr_3-4-0-src.yml | 11 ++
www/_data/toc/fr_3-5-0-src.yml | 11 ++
www/_data/toc/fr_5-4-0-src.yml | 15 ++
www/_data/toc/fr_6-x-src.yml | 75 +++++++++
www/_data/toc/fr_dev-src.yml | 75 +++++++++
www/_data/toc/it-3-1-0-manual.yml | 26 ---
www/_data/toc/it-3-4-0-manual.yml | 15 --
www/_data/toc/it-3-5-0-manual.yml | 15 --
www/_data/toc/it-5-4-0-manual.yml | 19 ---
www/_data/toc/it-6-x-manual.yml | 118 --------------
www/_data/toc/it-dev-manual.yml | 118 --------------
www/_data/toc/it_3-1-0-src.yml | 26 +++
www/_data/toc/it_3-4-0-src.yml | 15 ++
www/_data/toc/it_3-5-0-src.yml | 15 ++
www/_data/toc/it_5-4-0-src.yml | 19 +++
www/_data/toc/it_6-x-src.yml | 75 +++++++++
www/_data/toc/it_dev-src.yml | 75 +++++++++
www/_data/toc/ja-1-7-0-manual.yml | 15 --
www/_data/toc/ja-1-8-1-manual.yml | 18 ---
www/_data/toc/ja-1-9-0-manual.yml | 21 ---
www/_data/toc/ja-2-0-0-manual.yml | 22 ---
www/_data/toc/ja-2-1-0-manual.yml | 22 ---
www/_data/toc/ja-2-2-0-manual.yml | 25 ---
www/_data/toc/ja-3-1-0-manual.yml | 29 ----
www/_data/toc/ja-3-4-0-manual.yml | 20 ---
www/_data/toc/ja-3-5-0-manual.yml | 20 ---
www/_data/toc/ja-5-4-0-manual.yml | 25 ---
www/_data/toc/ja-6-x-manual.yml | 118 --------------
www/_data/toc/ja-dev-manual.yml | 118 --------------
www/_data/toc/ja_1-7-0-src.yml | 15 ++
www/_data/toc/ja_1-8-1-src.yml | 17 ++
www/_data/toc/ja_1-9-0-src.yml | 19 +++
www/_data/toc/ja_2-0-0-src.yml | 20 +++
www/_data/toc/ja_2-1-0-src.yml | 20 +++
www/_data/toc/ja_2-2-0-src.yml | 23 +++
www/_data/toc/ja_3-1-0-src.yml | 26 +++
www/_data/toc/ja_3-4-0-src.yml | 15 ++
www/_data/toc/ja_3-5-0-src.yml | 15 ++
www/_data/toc/ja_5-4-0-src.yml | 19 +++
www/_data/toc/ja_6-x-src.yml | 75 +++++++++
www/_data/toc/ja_dev-src.yml | 75 +++++++++
www/_data/toc/ko-2-0-0-manual.yml | 20 ---
www/_data/toc/ko-3-1-0-manual.yml | 20 ---
www/_data/toc/ko-3-4-0-manual.yml | 16 --
www/_data/toc/ko-3-5-0-manual.yml | 16 --
www/_data/toc/ko-5-4-0-manual.yml | 21 ---
www/_data/toc/ko-6-x-manual.yml | 118 --------------
www/_data/toc/ko-dev-manual.yml | 118 --------------
www/_data/toc/ko_2-0-0-src.yml | 20 +++
www/_data/toc/ko_3-1-0-src.yml | 20 +++
www/_data/toc/ko_3-4-0-src.yml | 15 ++
www/_data/toc/ko_3-5-0-src.yml | 15 ++
www/_data/toc/ko_5-4-0-src.yml | 19 +++
www/_data/toc/ko_6-x-src.yml | 75 +++++++++
www/_data/toc/ko_dev-src.yml | 75 +++++++++
www/_data/toc/pl-5-4-0-manual.yml | 17 --
www/_data/toc/pl-6-x-manual.yml | 118 --------------
www/_data/toc/pl-dev-manual.yml | 118 --------------
www/_data/toc/pl_5-4-0-src.yml | 17 ++
www/_data/toc/pl_6-x-src.yml | 75 +++++++++
www/_data/toc/pl_dev-src.yml | 75 +++++++++
www/_data/toc/ru-3-1-0-manual.yml | 36 -----
www/_data/toc/ru-3-4-0-manual.yml | 30 ----
www/_data/toc/ru-3-5-0-manual.yml | 30 ----
www/_data/toc/ru-5-0-0-manual.yml | 30 ----
www/_data/toc/ru-5-1-1-manual.yml | 40 -----
www/_data/toc/ru-5-4-0-manual.yml | 41 -----
www/_data/toc/ru-6-x-manual.yml | 118 --------------
www/_data/toc/ru-dev-manual.yml | 118 --------------
www/_data/toc/ru_3-1-0-src.yml | 24 +++
www/_data/toc/ru_3-4-0-src.yml | 15 ++
www/_data/toc/ru_3-5-0-src.yml | 15 ++
www/_data/toc/ru_5-0-0-src.yml | 15 ++
www/_data/toc/ru_5-1-1-src.yml | 19 +++
www/_data/toc/ru_5-4-0-src.yml | 20 +++
www/_data/toc/ru_6-x-src.yml | 75 +++++++++
www/_data/toc/ru_dev-src.yml | 75 +++++++++
www/_data/toc/sl-3-4-0-manual.yml | 15 --
www/_data/toc/sl-3-5-0-manual.yml | 15 --
www/_data/toc/sl-5-4-0-manual.yml | 16 --
www/_data/toc/sl-6-x-manual.yml | 118 --------------
www/_data/toc/sl-dev-manual.yml | 118 --------------
www/_data/toc/sl_3-4-0-src.yml | 15 ++
www/_data/toc/sl_3-5-0-src.yml | 15 ++
www/_data/toc/sl_5-4-0-src.yml | 16 ++
www/_data/toc/sl_6-x-src.yml | 75 +++++++++
www/_data/toc/sl_dev-src.yml | 75 +++++++++
www/_data/toc/zh-cn-3-1-0-manual.yml | 26 ---
www/_data/toc/zh-cn-3-4-0-manual.yml | 15 --
www/_data/toc/zh-cn-3-5-0-manual.yml | 15 --
www/_data/toc/zh-cn-5-4-0-manual.yml | 18 ---
www/_data/toc/zh-cn-6-x-manual.yml | 118 --------------
www/_data/toc/zh-cn-dev-manual.yml | 118 --------------
www/_data/toc/zh-cn_3-1-0-src.yml | 26 +++
www/_data/toc/zh-cn_3-4-0-src.yml | 15 ++
www/_data/toc/zh-cn_3-5-0-src.yml | 15 ++
www/_data/toc/zh-cn_5-4-0-src.yml | 18 +++
www/_data/toc/zh-cn_6-x-src.yml | 75 +++++++++
www/_data/toc/zh-cn_dev-src.yml | 75 +++++++++
www/_data/toc/zh-tw-3-1-0-manual.yml | 26 ---
www/_data/toc/zh-tw-3-4-0-manual.yml | 15 --
www/_data/toc/zh-tw-3-5-0-manual.yml | 15 --
www/_data/toc/zh-tw-5-4-0-manual.yml | 18 ---
www/_data/toc/zh-tw-6-x-manual.yml | 118 --------------
www/_data/toc/zh-tw-dev-manual.yml | 118 --------------
www/_data/toc/zh-tw_3-1-0-src.yml | 26 +++
www/_data/toc/zh-tw_3-4-0-src.yml | 15 ++
www/_data/toc/zh-tw_3-5-0-src.yml | 15 ++
www/_data/toc/zh-tw_5-4-0-src.yml | 18 +++
www/_data/toc/zh-tw_6-x-src.yml | 75 +++++++++
www/_data/toc/zh-tw_dev-src.yml | 75 +++++++++
www/_layouts/docs.html | 6 +-
www/docs/de/dev/config_ref/images.md | 1 +
www/docs/de/dev/config_ref/index.md | 1 +
www/docs/de/dev/cordova/events/events.md | 1 +
www/docs/de/dev/cordova/storage/storage.md | 1 +
www/docs/de/dev/guide/appdev/hooks/index.md | 1 +
www/docs/de/dev/guide/appdev/privacy/index.md | 1 +
www/docs/de/dev/guide/appdev/security/index.md | 1 +
www/docs/de/dev/guide/appdev/whitelist/index.md | 1 +
www/docs/de/dev/guide/cli/index.md | 1 +
www/docs/de/dev/guide/hybrid/plugins/index.md | 1 +
www/docs/de/dev/guide/hybrid/webviews/index.md | 1 +
www/docs/de/dev/guide/next/index.md | 1 +
www/docs/de/dev/guide/overview/index.md | 1 +
.../de/dev/guide/platforms/android/index.md | 1 +
.../de/dev/guide/platforms/android/plugin.md | 1 +
.../de/dev/guide/platforms/blackberry10/home.md | 1 +
.../dev/guide/platforms/blackberry10/plugin.md | 1 +
www/docs/de/dev/guide/platforms/ios/index.md | 1 +
www/docs/de/dev/guide/platforms/ios/plugin.md | 1 +
www/docs/de/dev/guide/platforms/ubuntu/index.md | 1 +
www/docs/de/dev/guide/platforms/win8/index.md | 1 +
www/docs/de/dev/guide/platforms/win8/plugin.md | 1 +
www/docs/de/dev/guide/platforms/wp8/home.md | 1 +
www/docs/de/dev/guide/platforms/wp8/plugin.md | 1 +
www/docs/de/dev/guide/support/index.md | 1 +
.../dev/platform_plugin_versioning_ref/index.md | 1 +
www/docs/de/dev/plugin_ref/plugman.md | 1 +
www/docs/de/dev/plugin_ref/spec.md | 1 +
www/docs/en/dev/config_ref/images.md | 1 +
www/docs/en/dev/cordova/storage/storage.md | 1 +
www/docs/en/dev/guide/appdev/hooks/index.md | 1 +
www/docs/en/dev/guide/appdev/privacy/index.md | 1 +
www/docs/en/dev/guide/appdev/security/index.md | 1 +
www/docs/en/dev/guide/appdev/whitelist/index.md | 1 +
www/docs/en/dev/guide/cli/index.md | 1 +
www/docs/en/dev/guide/hybrid/plugins/index.md | 1 +
www/docs/en/dev/guide/hybrid/webviews/index.md | 1 +
www/docs/en/dev/guide/overview/index.md | 1 +
.../en/dev/guide/platforms/android/index.md | 1 +
.../en/dev/guide/platforms/android/plugin.md | 1 +
.../en/dev/guide/platforms/blackberry10/home.md | 1 +
.../dev/guide/platforms/blackberry10/plugin.md | 1 +
www/docs/en/dev/guide/platforms/ios/index.md | 1 +
www/docs/en/dev/guide/platforms/ios/plugin.md | 1 +
www/docs/en/dev/guide/platforms/osx/index.md | 1 +
www/docs/en/dev/guide/platforms/ubuntu/index.md | 1 +
www/docs/en/dev/guide/platforms/win8/index.md | 1 +
www/docs/en/dev/guide/platforms/win8/plugin.md | 1 +
www/docs/en/dev/guide/platforms/wp8/home.md | 1 +
www/docs/en/dev/guide/platforms/wp8/plugin.md | 1 +
www/docs/en/dev/guide/support/index.md | 1 +
.../dev/platform_plugin_versioning_ref/index.md | 1 +
www/docs/en/dev/plugin_ref/plugman.md | 1 +
www/docs/en/dev/plugin_ref/spec.md | 1 +
www/docs/es/dev/config_ref/images.md | 1 +
www/docs/es/dev/config_ref/index.md | 1 +
www/docs/es/dev/cordova/events/events.md | 1 +
www/docs/es/dev/cordova/storage/storage.md | 1 +
www/docs/es/dev/guide/appdev/hooks/index.md | 1 +
www/docs/es/dev/guide/appdev/privacy/index.md | 1 +
www/docs/es/dev/guide/appdev/security/index.md | 1 +
www/docs/es/dev/guide/appdev/whitelist/index.md | 1 +
www/docs/es/dev/guide/cli/index.md | 1 +
www/docs/es/dev/guide/hybrid/plugins/index.md | 1 +
www/docs/es/dev/guide/hybrid/webviews/index.md | 1 +
www/docs/es/dev/guide/next/index.md | 1 +
www/docs/es/dev/guide/overview/index.md | 1 +
.../es/dev/guide/platforms/android/index.md | 1 +
.../es/dev/guide/platforms/android/plugin.md | 1 +
.../es/dev/guide/platforms/blackberry10/home.md | 1 +
.../dev/guide/platforms/blackberry10/plugin.md | 1 +
www/docs/es/dev/guide/platforms/ios/index.md | 1 +
www/docs/es/dev/guide/platforms/ios/plugin.md | 1 +
www/docs/es/dev/guide/platforms/ubuntu/index.md | 1 +
www/docs/es/dev/guide/platforms/win8/index.md | 1 +
www/docs/es/dev/guide/platforms/win8/plugin.md | 1 +
www/docs/es/dev/guide/platforms/wp8/home.md | 1 +
www/docs/es/dev/guide/platforms/wp8/plugin.md | 1 +
www/docs/es/dev/guide/support/index.md | 1 +
.../dev/platform_plugin_versioning_ref/index.md | 1 +
www/docs/es/dev/plugin_ref/plugman.md | 1 +
www/docs/es/dev/plugin_ref/spec.md | 1 +
www/docs/fr/dev/config_ref/images.md | 1 +
www/docs/fr/dev/config_ref/index.md | 1 +
www/docs/fr/dev/cordova/events/events.md | 1 +
www/docs/fr/dev/cordova/storage/storage.md | 1 +
www/docs/fr/dev/guide/appdev/hooks/index.md | 1 +
www/docs/fr/dev/guide/appdev/privacy/index.md | 1 +
www/docs/fr/dev/guide/appdev/security/index.md | 1 +
www/docs/fr/dev/guide/appdev/whitelist/index.md | 1 +
www/docs/fr/dev/guide/cli/index.md | 3 +-
www/docs/fr/dev/guide/hybrid/plugins/index.md | 1 +
www/docs/fr/dev/guide/hybrid/webviews/index.md | 1 +
www/docs/fr/dev/guide/next/index.md | 1 +
www/docs/fr/dev/guide/overview/index.md | 1 +
.../fr/dev/guide/platforms/android/index.md | 1 +
.../fr/dev/guide/platforms/android/plugin.md | 1 +
.../fr/dev/guide/platforms/blackberry10/home.md | 1 +
.../dev/guide/platforms/blackberry10/plugin.md | 1 +
www/docs/fr/dev/guide/platforms/ios/index.md | 1 +
www/docs/fr/dev/guide/platforms/ios/plugin.md | 1 +
www/docs/fr/dev/guide/platforms/ubuntu/index.md | 1 +
www/docs/fr/dev/guide/platforms/win8/index.md | 1 +
www/docs/fr/dev/guide/platforms/win8/plugin.md | 1 +
www/docs/fr/dev/guide/platforms/wp8/home.md | 1 +
www/docs/fr/dev/guide/platforms/wp8/plugin.md | 1 +
www/docs/fr/dev/guide/support/index.md | 1 +
.../dev/platform_plugin_versioning_ref/index.md | 1 +
www/docs/fr/dev/plugin_ref/plugman.md | 1 +
www/docs/fr/dev/plugin_ref/spec.md | 1 +
www/docs/it/dev/config_ref/images.md | 1 +
www/docs/it/dev/config_ref/index.md | 1 +
www/docs/it/dev/cordova/events/events.md | 1 +
www/docs/it/dev/cordova/storage/storage.md | 1 +
www/docs/it/dev/guide/appdev/hooks/index.md | 1 +
www/docs/it/dev/guide/appdev/privacy/index.md | 1 +
www/docs/it/dev/guide/appdev/security/index.md | 1 +
www/docs/it/dev/guide/appdev/whitelist/index.md | 1 +
www/docs/it/dev/guide/cli/index.md | 3 +-
www/docs/it/dev/guide/hybrid/plugins/index.md | 1 +
www/docs/it/dev/guide/hybrid/webviews/index.md | 1 +
www/docs/it/dev/guide/next/index.md | 1 +
www/docs/it/dev/guide/overview/index.md | 1 +
.../it/dev/guide/platforms/android/index.md | 1 +
.../it/dev/guide/platforms/android/plugin.md | 1 +
.../it/dev/guide/platforms/blackberry10/home.md | 1 +
.../dev/guide/platforms/blackberry10/plugin.md | 1 +
www/docs/it/dev/guide/platforms/ios/index.md | 1 +
www/docs/it/dev/guide/platforms/ios/plugin.md | 1 +
www/docs/it/dev/guide/platforms/ubuntu/index.md | 1 +
www/docs/it/dev/guide/platforms/win8/index.md | 1 +
www/docs/it/dev/guide/platforms/win8/plugin.md | 1 +
www/docs/it/dev/guide/platforms/wp8/home.md | 1 +
www/docs/it/dev/guide/platforms/wp8/plugin.md | 1 +
www/docs/it/dev/guide/support/index.md | 1 +
.../dev/platform_plugin_versioning_ref/index.md | 1 +
www/docs/it/dev/plugin_ref/plugman.md | 3 +-
www/docs/it/dev/plugin_ref/spec.md | 1 +
www/docs/ja/dev/config_ref/images.md | 1 +
www/docs/ja/dev/config_ref/index.md | 1 +
www/docs/ja/dev/cordova/events/events.md | 1 +
www/docs/ja/dev/cordova/storage/storage.md | 1 +
www/docs/ja/dev/guide/appdev/hooks/index.md | 1 +
www/docs/ja/dev/guide/appdev/privacy/index.md | 1 +
www/docs/ja/dev/guide/appdev/security/index.md | 1 +
www/docs/ja/dev/guide/appdev/whitelist/index.md | 1 +
www/docs/ja/dev/guide/cli/index.md | 1 +
www/docs/ja/dev/guide/hybrid/plugins/index.md | 1 +
www/docs/ja/dev/guide/hybrid/webviews/index.md | 1 +
www/docs/ja/dev/guide/next/index.md | 1 +
www/docs/ja/dev/guide/overview/index.md | 1 +
.../ja/dev/guide/platforms/android/index.md | 1 +
.../ja/dev/guide/platforms/android/plugin.md | 1 +
.../ja/dev/guide/platforms/blackberry10/home.md | 1 +
.../dev/guide/platforms/blackberry10/plugin.md | 1 +
www/docs/ja/dev/guide/platforms/ios/index.md | 1 +
www/docs/ja/dev/guide/platforms/ios/plugin.md | 1 +
www/docs/ja/dev/guide/platforms/ubuntu/index.md | 1 +
www/docs/ja/dev/guide/platforms/win8/index.md | 1 +
www/docs/ja/dev/guide/platforms/win8/plugin.md | 1 +
www/docs/ja/dev/guide/platforms/wp8/home.md | 1 +
www/docs/ja/dev/guide/platforms/wp8/plugin.md | 1 +
www/docs/ja/dev/guide/support/index.md | 1 +
.../dev/platform_plugin_versioning_ref/index.md | 1 +
www/docs/ja/dev/plugin_ref/plugman.md | 1 +
www/docs/ja/dev/plugin_ref/spec.md | 1 +
www/docs/ko/dev/config_ref/images.md | 1 +
www/docs/ko/dev/config_ref/index.md | 1 +
www/docs/ko/dev/cordova/events/events.md | 1 +
www/docs/ko/dev/cordova/storage/storage.md | 1 +
www/docs/ko/dev/guide/appdev/hooks/index.md | 1 +
www/docs/ko/dev/guide/appdev/privacy/index.md | 1 +
www/docs/ko/dev/guide/appdev/security/index.md | 1 +
www/docs/ko/dev/guide/appdev/whitelist/index.md | 1 +
www/docs/ko/dev/guide/cli/index.md | 1 +
www/docs/ko/dev/guide/hybrid/plugins/index.md | 1 +
www/docs/ko/dev/guide/hybrid/webviews/index.md | 1 +
www/docs/ko/dev/guide/next/index.md | 1 +
www/docs/ko/dev/guide/overview/index.md | 1 +
.../ko/dev/guide/platforms/android/index.md | 1 +
.../ko/dev/guide/platforms/android/plugin.md | 1 +
.../ko/dev/guide/platforms/blackberry10/home.md | 1 +
.../dev/guide/platforms/blackberry10/plugin.md | 1 +
www/docs/ko/dev/guide/platforms/ios/index.md | 1 +
www/docs/ko/dev/guide/platforms/ios/plugin.md | 1 +
www/docs/ko/dev/guide/platforms/ubuntu/index.md | 1 +
www/docs/ko/dev/guide/platforms/win8/index.md | 1 +
www/docs/ko/dev/guide/platforms/win8/plugin.md | 1 +
www/docs/ko/dev/guide/platforms/wp8/home.md | 1 +
www/docs/ko/dev/guide/platforms/wp8/plugin.md | 1 +
www/docs/ko/dev/guide/support/index.md | 1 +
.../dev/platform_plugin_versioning_ref/index.md | 1 +
www/docs/ko/dev/plugin_ref/plugman.md | 1 +
www/docs/ko/dev/plugin_ref/spec.md | 1 +
www/docs/pl/dev/config_ref/images.md | 1 +
www/docs/pl/dev/config_ref/index.md | 1 +
www/docs/pl/dev/cordova/events/events.md | 1 +
www/docs/pl/dev/cordova/storage/storage.md | 1 +
www/docs/pl/dev/guide/appdev/hooks/index.md | 1 +
www/docs/pl/dev/guide/appdev/privacy/index.md | 1 +
www/docs/pl/dev/guide/appdev/security/index.md | 1 +
www/docs/pl/dev/guide/appdev/whitelist/index.md | 1 +
www/docs/pl/dev/guide/cli/index.md | 1 +
www/docs/pl/dev/guide/hybrid/plugins/index.md | 1 +
www/docs/pl/dev/guide/hybrid/webviews/index.md | 1 +
www/docs/pl/dev/guide/next/index.md | 1 +
www/docs/pl/dev/guide/overview/index.md | 1 +
.../pl/dev/guide/platforms/android/index.md | 1 +
.../pl/dev/guide/platforms/android/plugin.md | 1 +
.../pl/dev/guide/platforms/blackberry10/home.md | 1 +
.../dev/guide/platforms/blackberry10/plugin.md | 1 +
www/docs/pl/dev/guide/platforms/ios/index.md | 1 +
www/docs/pl/dev/guide/platforms/ios/plugin.md | 1 +
www/docs/pl/dev/guide/platforms/ubuntu/index.md | 1 +
www/docs/pl/dev/guide/platforms/win8/index.md | 1 +
www/docs/pl/dev/guide/platforms/win8/plugin.md | 1 +
www/docs/pl/dev/guide/platforms/wp8/home.md | 1 +
www/docs/pl/dev/guide/platforms/wp8/plugin.md | 1 +
www/docs/pl/dev/guide/support/index.md | 1 +
.../dev/platform_plugin_versioning_ref/index.md | 1 +
www/docs/pl/dev/plugin_ref/plugman.md | 1 +
www/docs/pl/dev/plugin_ref/spec.md | 1 +
www/docs/ru/dev/config_ref/images.md | 1 +
www/docs/ru/dev/config_ref/index.md | 1 +
www/docs/ru/dev/cordova/events/events.md | 1 +
www/docs/ru/dev/cordova/storage/storage.md | 1 +
www/docs/ru/dev/guide/appdev/hooks/index.md | 1 +
www/docs/ru/dev/guide/appdev/privacy/index.md | 1 +
www/docs/ru/dev/guide/appdev/security/index.md | 1 +
www/docs/ru/dev/guide/appdev/whitelist/index.md | 1 +
www/docs/ru/dev/guide/cli/index.md | 1 +
www/docs/ru/dev/guide/hybrid/plugins/index.md | 1 +
www/docs/ru/dev/guide/hybrid/webviews/index.md | 1 +
www/docs/ru/dev/guide/next/index.md | 1 +
www/docs/ru/dev/guide/overview/index.md | 1 +
.../ru/dev/guide/platforms/android/index.md | 1 +
.../ru/dev/guide/platforms/android/plugin.md | 1 +
.../ru/dev/guide/platforms/blackberry10/home.md | 1 +
.../dev/guide/platforms/blackberry10/plugin.md | 1 +
www/docs/ru/dev/guide/platforms/ios/index.md | 1 +
www/docs/ru/dev/guide/platforms/ios/plugin.md | 1 +
www/docs/ru/dev/guide/platforms/ubuntu/index.md | 1 +
www/docs/ru/dev/guide/platforms/win8/index.md | 1 +
www/docs/ru/dev/guide/platforms/win8/plugin.md | 1 +
www/docs/ru/dev/guide/platforms/wp8/home.md | 1 +
www/docs/ru/dev/guide/platforms/wp8/plugin.md | 1 +
www/docs/ru/dev/guide/support/index.md | 1 +
.../dev/platform_plugin_versioning_ref/index.md | 1 +
www/docs/ru/dev/plugin_ref/plugman.md | 1 +
www/docs/ru/dev/plugin_ref/spec.md | 1 +
www/docs/sl/dev/config_ref/images.md | 1 +
www/docs/sl/dev/config_ref/index.md | 1 +
www/docs/sl/dev/cordova/events/events.md | 1 +
www/docs/sl/dev/cordova/storage/storage.md | 1 +
www/docs/sl/dev/guide/appdev/privacy/index.md | 1 +
www/docs/sl/dev/guide/appdev/whitelist/index.md | 1 +
www/docs/sl/dev/guide/cli/index.md | 1 +
www/docs/sl/dev/guide/hybrid/plugins/index.md | 1 +
www/docs/sl/dev/guide/hybrid/webviews/index.md | 1 +
www/docs/sl/dev/guide/overview/index.md | 1 +
.../sl/dev/guide/platforms/android/index.md | 1 +
.../sl/dev/guide/platforms/android/plugin.md | 1 +
.../sl/dev/guide/platforms/blackberry10/home.md | 1 +
.../dev/guide/platforms/blackberry10/plugin.md | 1 +
www/docs/sl/dev/guide/platforms/ios/index.md | 1 +
www/docs/sl/dev/guide/platforms/ios/plugin.md | 1 +
www/docs/sl/dev/guide/platforms/ubuntu/index.md | 1 +
www/docs/sl/dev/guide/platforms/win8/index.md | 1 +
www/docs/sl/dev/guide/platforms/wp8/home.md | 1 +
www/docs/sl/dev/guide/platforms/wp8/plugin.md | 1 +
www/docs/sl/dev/guide/support/index.md | 1 +
www/docs/sl/dev/plugin_ref/plugman.md | 1 +
www/docs/sl/dev/plugin_ref/spec.md | 1 +
www/docs/zh-cn/dev/config_ref/images.md | 1 +
www/docs/zh-cn/dev/config_ref/index.md | 1 +
www/docs/zh-cn/dev/cordova/events/events.md | 1 +
www/docs/zh-cn/dev/cordova/storage/storage.md | 1 +
www/docs/zh-cn/dev/guide/appdev/hooks/index.md | 1 +
.../zh-cn/dev/guide/appdev/privacy/index.md | 1 +
.../zh-cn/dev/guide/appdev/security/index.md | 1 +
.../zh-cn/dev/guide/appdev/whitelist/index.md | 1 +
www/docs/zh-cn/dev/guide/cli/index.md | 1 +
.../zh-cn/dev/guide/hybrid/plugins/index.md | 1 +
.../zh-cn/dev/guide/hybrid/webviews/index.md | 1 +
www/docs/zh-cn/dev/guide/next/index.md | 1 +
www/docs/zh-cn/dev/guide/overview/index.md | 1 +
.../zh-cn/dev/guide/platforms/android/index.md | 1 +
.../zh-cn/dev/guide/platforms/android/plugin.md | 1 +
.../dev/guide/platforms/blackberry10/home.md | 1 +
.../dev/guide/platforms/blackberry10/plugin.md | 1 +
www/docs/zh-cn/dev/guide/platforms/ios/index.md | 1 +
.../zh-cn/dev/guide/platforms/ios/plugin.md | 1 +
.../zh-cn/dev/guide/platforms/ubuntu/index.md | 1 +
.../zh-cn/dev/guide/platforms/win8/index.md | 1 +
.../zh-cn/dev/guide/platforms/win8/plugin.md | 1 +
www/docs/zh-cn/dev/guide/platforms/wp8/home.md | 1 +
.../zh-cn/dev/guide/platforms/wp8/plugin.md | 1 +
www/docs/zh-cn/dev/guide/support/index.md | 1 +
.../dev/platform_plugin_versioning_ref/index.md | 1 +
www/docs/zh-cn/dev/plugin_ref/plugman.md | 1 +
www/docs/zh-cn/dev/plugin_ref/spec.md | 1 +
www/docs/zh-tw/dev/config_ref/images.md | 1 +
www/docs/zh-tw/dev/config_ref/index.md | 1 +
www/docs/zh-tw/dev/cordova/events/events.md | 1 +
www/docs/zh-tw/dev/cordova/storage/storage.md | 1 +
www/docs/zh-tw/dev/guide/appdev/hooks/index.md | 1 +
.../zh-tw/dev/guide/appdev/privacy/index.md | 1 +
.../zh-tw/dev/guide/appdev/security/index.md | 1 +
.../zh-tw/dev/guide/appdev/whitelist/index.md | 1 +
www/docs/zh-tw/dev/guide/cli/index.md | 1 +
.../zh-tw/dev/guide/hybrid/plugins/index.md | 1 +
.../zh-tw/dev/guide/hybrid/webviews/index.md | 1 +
www/docs/zh-tw/dev/guide/next/index.md | 1 +
www/docs/zh-tw/dev/guide/overview/index.md | 1 +
.../zh-tw/dev/guide/platforms/android/index.md | 1 +
.../zh-tw/dev/guide/platforms/android/plugin.md | 1 +
.../dev/guide/platforms/blackberry10/home.md | 1 +
.../dev/guide/platforms/blackberry10/plugin.md | 1 +
www/docs/zh-tw/dev/guide/platforms/ios/index.md | 1 +
.../zh-tw/dev/guide/platforms/ios/plugin.md | 1 +
.../zh-tw/dev/guide/platforms/ubuntu/index.md | 1 +
.../zh-tw/dev/guide/platforms/win8/index.md | 1 +
.../zh-tw/dev/guide/platforms/win8/plugin.md | 1 +
www/docs/zh-tw/dev/guide/platforms/wp8/home.md | 1 +
.../zh-tw/dev/guide/platforms/wp8/plugin.md | 1 +
www/docs/zh-tw/dev/guide/support/index.md | 1 +
.../dev/platform_plugin_versioning_ref/index.md | 1 +
www/docs/zh-tw/dev/plugin_ref/plugman.md | 1 +
www/docs/zh-tw/dev/plugin_ref/spec.md | 1 +
542 files changed, 3859 insertions(+), 4603 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/72bf41e7/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index eec04e6..158c3ec 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,6 +5,7 @@ conf/_defaults.yml
conf/_version.yml
www/_data/docs-versions.yml
+www/_data/toc/*-gen.yml
www/static/css
www/static/js/plugins.js
www/docs/*/dev/reference
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/72bf41e7/Makefile
----------------------------------------------------------------------
diff --git a/Makefile b/Makefile
index c8cea37..5f38b9e 100644
--- a/Makefile
+++ b/Makefile
@@ -12,17 +12,44 @@ endif
ifdef WINDOWS
SHELL = cmd
JEKYLL = bundle.bat exec jekyll
-MKDIRP = mkdir
CAT = type
LS = ls
else
SHELL = sh
JEKYLL = bundle exec jekyll
-MKDIRP = mkdir -p
CAT = cat
LS = ls
endif
+# macros
+slugify = $(subst /,_,$(subst .,-,$(1)))
+slug2language = $(subst /,,$(dir $(subst _,/,$(1))))
+slug2version = $(subst -,.,$(notdir $(subst _,/,$(1))))
+
+ifdef WINDOWS
+copydir = xcopy "$(subst /,\,$(1))" "$(subst /,\,$(2))" /E /I
+else
+copydir = cp -r $(1) $(2)
+endif
+
+ifdef WINDOWS
+copyfile = copy "$(subst /,\,$(1))" "$(subst /,\,$(2))"
+else
+copyfile = cp $(1) $(2)
+endif
+
+ifdef WINDOWS
+makedir = mkdir $(subst /,\,$(1))
+else
+makedir = mkdir -p $(1)
+endif
+
+ifdef WINDOWS
+printfile = type $(subst /,\,$(1))
+else
+printfile = cat $(1)
+endif
+
# constants
EMPTY =
SPACE = $(EMPTY) $(EMPTY)
@@ -80,8 +107,8 @@ FETCH_SCRIPT = $(BIN_DIR)/fetch_docs.js
# which includes them on its own, and the SCSS compiler takes care of them;
# because of this, there is also no .scss -> .css pattern rule
ifdef WINDOWS
-SCSS_SRC = $(shell cd $(CSS_SRC_DIR) && dir *.scss /S /B)
-STYLES_SRC = $(shell cd $(CSS_SRC_DIR) && dir *.less *.css /S /B)
+SCSS_SRC = $(subst $(PWD)/,,$(subst \,/,$(shell cd $(CSS_SRC_DIR) && dir *.scss /S /B)))
+STYLES_SRC = $(subst $(PWD)/,,$(subst \,/,$(shell cd $(CSS_SRC_DIR) && dir *.less *.css /S /B)))
else
SCSS_SRC = $(shell find $(CSS_SRC_DIR) -name "*.scss")
STYLES_SRC = $(shell find $(CSS_SRC_DIR) -name "*.less" -or -name "*.css")
@@ -89,14 +116,14 @@ endif
LANGUAGES = $(shell $(LS) $(DOCS_DIR))
-LATEST_DOCS_VERSION = $(shell $(CAT) $(VERSION_FILE))
+LATEST_DOCS_VERSION = $(strip $(shell $(CAT) $(VERSION_FILE)))
NEXT_DOCS_VERSION = $(shell $(NODE) $(BIN_DIR)/nextversion.js $(LATEST_DOCS_VERSION))
-LATEST_DOCS_VERSION_SLUG = $(subst .,-,$(LATEST_DOCS_VERSION))
-NEXT_DOCS_VERSION_SLUG = $(subst .,-,$(NEXT_DOCS_VERSION))
+LATEST_DOCS_VERSION_SLUG = $(call slugify,$(LATEST_DOCS_VERSION))
+NEXT_DOCS_VERSION_SLUG = $(call slugify,$(NEXT_DOCS_VERSION))
DEV_DOCS = $(addprefix $(DOCS_DIR)/,$(addsuffix /dev,$(LANGUAGES)))
-DEV_DOCS_TOCS = $(addprefix $(TOC_DIR)/,$(addsuffix -dev-manual.yml, $(LANGUAGES)))
+DEV_DOCS_TOCS = $(addprefix $(TOC_DIR)/,$(addsuffix _dev-src.yml, $(LANGUAGES)))
# generated files
VERSION_CONFIG = $(CONFIG_DIR)/_version.yml
@@ -110,17 +137,17 @@ STYLES = $(MAIN_STYLE_FILE) $(addsuffix .css,$(basename $(subst $(CSS_SRC_DIR),$
# NOTE:
# docs slugs are lang/version pairs, with "/" and "." replaced by "-"
DOCS_VERSION_DIRS = $(filter-out %.md,$(wildcard $(DOCS_DIR)/**/*))
-DOCS_VERSION_SLUGS = $(subst /,-,$(subst .,-,$(subst $(DOCS_DIR)/,,$(DOCS_VERSION_DIRS))))
-TOC_FILES = $(addprefix $(TOC_DIR)/,$(addsuffix -generated.yml,$(DOCS_VERSION_SLUGS)))
+DOCS_VERSION_SLUGS = $(call slugify,$(subst $(DOCS_DIR)/,,$(DOCS_VERSION_DIRS)))
+TOC_FILES = $(addprefix $(TOC_DIR)/,$(addsuffix -gen.yml,$(DOCS_VERSION_SLUGS)))
FETCH_FLAGS = --config $(FETCH_CONFIG) --docsRoot $(DOCS_DIR)
FETCHED_FILES = $(shell $(NODE) $(FETCH_SCRIPT) $(FETCH_FLAGS) --dump)
LATEST_DOCS = $(addprefix $(DOCS_DIR)/,$(addsuffix /$(LATEST_DOCS_VERSION),$(LANGUAGES)))
-LATEST_DOCS_TOCS = $(addprefix $(TOC_DIR)/,$(addsuffix -$(LATEST_DOCS_VERSION_SLUG)-manual.yml, $(LANGUAGES)))
+LATEST_DOCS_TOCS = $(addprefix $(TOC_DIR)/,$(addsuffix _$(LATEST_DOCS_VERSION_SLUG)-src.yml, $(LANGUAGES)))
NEXT_DOCS = $(addprefix $(DOCS_DIR)/,$(addsuffix /$(NEXT_DOCS_VERSION),$(LANGUAGES)))
-NEXT_DOCS_TOCS = $(addprefix $(TOC_DIR)/,$(addsuffix -$(NEXT_DOCS_VERSION_SLUG)-manual.yml, $(LANGUAGES)))
+NEXT_DOCS_TOCS = $(addprefix $(TOC_DIR)/,$(addsuffix _$(NEXT_DOCS_VERSION_SLUG)-src.yml, $(LANGUAGES)))
# other variables
# NOTE:
@@ -150,8 +177,10 @@ help usage default:
@echo " PROD: (defined or undefined) - uses production config instead of dev config"
@echo ""
-data: $(TOC_FILES) $(DOCS_VERSION_DATA)
-configs: $(DEFAULTS_CONFIG) $(VERSION_CONFIG)
+fetch: $(FETCHED_FILES)
+data: toc $(DOCS_VERSION_DATA)
+configs: fetch $(DEFAULTS_CONFIG) $(VERSION_CONFIG)
+reconfig: rmconfig configs
styles: $(STYLES)
plugins: $(PLUGINS_APP)
toc: $(TOC_FILES)
@@ -174,7 +203,7 @@ endif
endif
build: JEKYLL_FLAGS += --config $(subst $(SPACE),$(COMMA),$(strip $(JEKYLL_CONFIGS)))
-build: $(JEKYLL_CONFIGS) fetch data styles plugins
+build: $(JEKYLL_CONFIGS) configs fetch data styles plugins
$(JEKYLL) build $(JEKYLL_FLAGS)
install:
@@ -184,8 +213,6 @@ install:
serve:
cd $(DEV_DIR) && python -m SimpleHTTPServer 8000
-fetch: $(FETCHED_FILES)
-
snap: fetch $(LATEST_DOCS) $(LATEST_DOCS_TOCS)
newversion: $(NEXT_DOCS) $(NEXT_DOCS_TOCS)
@@ -211,87 +238,60 @@ $(DEFAULTS_CONFIG): $(BIN_DIR)/gen_defaults.js $(VERSION_FILE) $(DOCS_DIR)
$(VERSION_CONFIG): $(VERSION_FILE)
sed -e "s/^/$(VERSION_VAR_NAME): /" < $< > $@
-$(TOC_FILES): $(BIN_DIR)/toc.js $(DOCS_DIR)
- $(NODE) $(BIN_DIR)/toc.js $(DOCS_DIR) $(DATA_DIR)
-
$(MAIN_STYLE_FILE): $(SCSS_SRC)
# pattern rules
$(DOCS_DIR)/%/$(LATEST_DOCS_VERSION): $(DOCS_DIR)/%/dev
$(RM) -r $@
-ifdef WINDOWS
- xcopy "$^" "$@" /E /I
-else
- cp -r $^ $@
-endif
+ $(call copydir,$^,$@)
ifndef WINDOWS
touch $(DOCS_DIR)
endif
$(DOCS_DIR)/%/$(NEXT_DOCS_VERSION): $(DOCS_DIR)/%/dev
-ifdef WINDOWS
- xcopy "$^" "$@" /E /I
-else
- cp -r $^ $@
-endif
+ $(call copydir,$^,$@)
ifndef WINDOWS
touch $(DOCS_DIR)
endif
-$(TOC_DIR)/%-$(LATEST_DOCS_VERSION_SLUG)-manual.yml: $(TOC_DIR)/%-dev-manual.yml $(DOCS_DIR)
-ifdef WINDOWS
- copy $(subst /,\,"$<") $(subst /,\,"$@")
-else
- cp $< $@
-endif
+$(TOC_DIR)/%-gen.yml: $(TOC_DIR)/%-src.yml $(BIN_DIR)/augment_toc.js fetch
+ $(NODE) $(BIN_DIR)/augment_toc.js --srcToc $< --srcRoot $(DOCS_DIR)/$(call slug2language,$*)/$(call slug2version,$*) > $@
-$(TOC_DIR)/%-$(NEXT_DOCS_VERSION_SLUG)-manual.yml: $(TOC_DIR)/%-dev-manual.yml $(DOCS_DIR)
-ifdef WINDOWS
- copy $(subst /,\,"$<") $(subst /,\,"$@")
-else
- cp $< $@
-endif
+$(TOC_DIR)/%_$(LATEST_DOCS_VERSION_SLUG)-src.yml: $(TOC_DIR)/%_dev-src.yml $(DOCS_DIR)
+ $(call copyfile,$<,$@)
+
+$(TOC_DIR)/%_$(NEXT_DOCS_VERSION_SLUG)-src.yml: $(TOC_DIR)/%_dev-src.yml $(DOCS_DIR)
+ $(call copyfile,$<,$@)
# NODE:
# $(@D) means "directory part of target"
$(CSS_DEST_DIR)/%.css: $(CSS_SRC_DIR)/%.less
-ifdef WINDOWS
- -$(MKDIRP) $(subst /,\,$(@D))
-else
- $(MKDIRP) $(@D)
-endif
+ -$(call makedir,$(@D))
echo ---> $@
echo --->> $@
$(LESSC) $< >> $@
$(CSS_DEST_DIR)/%.css: $(CSS_SRC_DIR)/%.scss
-ifdef WINDOWS
- -$(MKDIRP) $(subst /,\,$(@D))
-else
- $(MKDIRP) $(@D)
-endif
+ -$(call makedir,$(@D))
echo ---> $@
echo --->> $@
$(SASSC) $< >> $@
$(CSS_DEST_DIR)/%.css: $(CSS_SRC_DIR)/%.css
-ifdef WINDOWS
- -$(MKDIRP) $(subst /,\,$(@D))
-else
- $(MKDIRP) $(@D)
-endif
+ -$(call makedir,$(@D))
echo ---> $@
echo --->> $@
- cat $< >> $@
+ $(call printfile,$<) >> $@
# maintenance
-clean:
-
- $(RM) -r $(PROD_DIR) $(DEV_DIR)
+rmconfig:
$(RM) $(VERSION_CONFIG)
$(RM) $(DEFAULTS_CONFIG)
- $(RM) $(TOC_FILES)
$(RM) $(DOCS_VERSION_DATA)
+
+clean: rmconfig
+ $(RM) -r $(PROD_DIR) $(DEV_DIR)
+ $(RM) $(TOC_FILES)
$(RM) $(PLUGINS_APP)
$(RM) -r $(CSS_DEST_DIR)
$(RM) $(FETCHED_FILES)
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/72bf41e7/gulpfile.js
----------------------------------------------------------------------
diff --git a/gulpfile.js b/gulpfile.js
index 27d010f..dd9ff79 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -175,9 +175,9 @@ function copyDocsVersion(oldVersion, newVersion, cb) {
// get files to copy
var oldVersionDocs = path.join(DOCS_DIR, languageName, oldVersion);
- var oldVersionToc = path.join(TOC_DIR, util.manualTocfileName(languageName, oldVersion));
+ var oldVersionToc = path.join(TOC_DIR, util.srcTocfileName(languageName, oldVersion));
var newVersionDocs = path.join(DOCS_DIR, languageName, newVersion);
- var newVersionToc = path.join(TOC_DIR, util.manualTocfileName(languageName, newVersion));
+ var newVersionToc = path.join(TOC_DIR, util.srcTocfileName(languageName, newVersion));
var copyOptions = {
stopOnErr: true
@@ -346,11 +346,7 @@ gulp.task("defaults", function () {
});
gulp.task("toc", ["fetch"], function (done) {
- if (gutil.env.prod) {
- exec("node", [bin("toc.js"), DOCS_DIR, DATA_DIR], done);
- } else {
- done();
- }
+ exec("node", [bin("toc.js"), DOCS_DIR, TOC_DIR], done);
});
gulp.task("less", function () {
@@ -472,7 +468,7 @@ gulp.task("clean", function () {
remove(DEV_DIR);
remove(PROD_DIR);
remove(FETCH_DIR);
- remove(path.join(DATA_DIR, "toc", "*-generated.yml"));
+ remove(path.join(DATA_DIR, "toc", "*-gen.yml"));
remove(CSS_OUT_DIR);
remove(PLUGINS_FILE);
remove(DOCS_VERSION_FILE);
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/72bf41e7/tools/bin/augment_toc.js
----------------------------------------------------------------------
diff --git a/tools/bin/augment_toc.js b/tools/bin/augment_toc.js
new file mode 100644
index 0000000..eae678b
--- /dev/null
+++ b/tools/bin/augment_toc.js
@@ -0,0 +1,160 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+"use strict";
+
+var fs = require("fs");
+var path = require("path");
+
+var yaml = require("js-yaml");
+var optimist = require("optimist");
+
+var util = require("./util");
+
+// constants
+var DEFAULT_PREFIX = "";
+var VERBOSE_BY_DEFAULT = false;
+
+// globals
+var verbose = VERBOSE_BY_DEFAULT;
+
+// helpers
+function augmentEntry(originalEntry, prefix) {
+ var augmentedEntry = {};
+
+ // skip entries that have no URI
+ if (!originalEntry.url) {
+ return originalEntry;
+ }
+
+ // get the path to the file to which this entry points
+ var filePath = path.join(prefix, originalEntry.url).replace('.html', '.md');
+
+ // skip entries that don't point to a valid file
+ if (!fs.existsSync(filePath)) {
+ console.warn("WARNING! Possible 404 in ToC: \"" + filePath + "\"");
+ return originalEntry;
+ }
+
+ // read in the referenced file and get its front matter
+ var fileContents = fs.readFileSync(filePath).toString();
+ var frontMatterString = util.getFrontMatterString(fileContents);
+ var frontMatter = yaml.load(frontMatterString);
+
+ augmentedEntry.name = decideOnName(originalEntry, frontMatter);
+ augmentedEntry.url = originalEntry.url;
+
+ if (frontMatter.description) {
+ augmentedEntry.description = frontMatter.description;
+ }
+
+ return augmentedEntry;
+}
+
+function decideOnName(originalEntry, frontMatter) {
+
+ // raise a warning for old-style ToC entry names
+ if (originalEntry.name && verbose === true) {
+ console.warn("'name' property will be ignored");
+ }
+
+ // error out if there is no name
+ if (!frontMatter.toc_title && !frontMatter.title) {
+ throw Error("can't find out name for ToC entry");
+ }
+
+ // use entry's name, and if it's not defined use the front matter name
+ return frontMatter.toc_title || frontMatter.title;
+}
+
+// public API
+function augmentToc(originalToc, prefix) {
+
+ var augmentedToc = [];
+
+ if (typeof prefix === "undefined") {
+ throw new Error("missing prefix for ToC");
+ }
+
+ // go through all original entries
+ for (var i = 0; i < originalToc.length; i++) {
+ var originalEntry = originalToc[i];
+ var augmentedEntry = {};
+
+ // recurse for entries with children, replacing their children with
+ // their augmented equivalents
+ if (originalEntry.children) {
+
+ if (typeof originalEntry.name === "undefined") {
+ throw new Error("entries with children must have a name");
+ }
+
+ augmentedEntry.name = originalEntry.name;
+ augmentedEntry.children = augmentToc(originalEntry.children, prefix);
+
+ // replace regular entries with their augmented equivalents
+ } else {
+ augmentedEntry = augmentEntry(originalEntry, prefix);
+ }
+
+ augmentedToc.push(augmentedEntry);
+ }
+
+ return augmentedToc;
+}
+
+function augmentString(srcTocString, prefix) {
+ var srcToc = yaml.load(srcTocString);
+ var augmentedToc = augmentToc(srcToc, prefix);
+ var augmentedTocString = yaml.dump(augmentedToc, {indent: 4});
+
+ return augmentedTocString;
+}
+
+function main () {
+
+ // get args
+ var argv = optimist
+ .usage("Usage: $0 [options]")
+ .demand("srcToc").describe("srcToc", "the source ToC for the given directory")
+ .demand("srcRoot").describe("srcRoot", "the directory containing files described by the ToC")
+ .boolean("verbose").describe("verbose", "if true, print more helpful information").default("verbose", VERBOSE_BY_DEFAULT)
+ .alias("v", "verbose")
+ .argv;
+
+ var srcTocPath = argv.srcToc;
+ var srcRootPath = argv.srcRoot;
+
+ // set globals
+ verbose = argv.verbose;
+
+ // get augmented ToC
+ var srcTocString = fs.readFileSync(srcTocPath);
+ var augmentedTocString = augmentString(srcTocString, srcRootPath);
+
+ console.log(util.generatedBy(__filename));
+ console.log(augmentedTocString);
+}
+
+if (require.main === module) {
+ main();
+}
+
+module.exports = {
+ augmentToc: augmentToc,
+ augmentString: augmentString,
+};
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/72bf41e7/tools/bin/fetch_docs.js
----------------------------------------------------------------------
diff --git a/tools/bin/fetch_docs.js b/tools/bin/fetch_docs.js
index b64e73e..801c01c 100644
--- a/tools/bin/fetch_docs.js
+++ b/tools/bin/fetch_docs.js
@@ -135,8 +135,8 @@ function getFrontMatter(text) {
return {};
}
-function setFrontMatter(text, frontMatter) {
- var frontMatterString = yaml.dump(frontMatter);
+function setFrontMatter(text, frontMatter, options) {
+ var frontMatterString = yaml.dump(frontMatter, options);
return util.setFrontMatterString(text, frontMatterString);
}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/72bf41e7/tools/bin/gen_defaults.js
----------------------------------------------------------------------
diff --git a/tools/bin/gen_defaults.js b/tools/bin/gen_defaults.js
index e0c7a9f..15f91db 100644
--- a/tools/bin/gen_defaults.js
+++ b/tools/bin/gen_defaults.js
@@ -24,8 +24,7 @@ var yaml = require("js-yaml");
var util = require("./util");
// constants
-var USAGE = "Usage: gen_defaults.js [docsRoot] [latestVersion]"
-
+var USAGE = "Usage: gen_defaults.js [docsRoot] [latestVersion]"
var DEV_VERSION_NAME = "dev";
// constants for sitemap.xml
@@ -79,8 +78,7 @@ function main () {
// set defaults for each version
util.listdirsSync(langPath).forEach(function (versionName) {
- var manualToc = util.manualTocfileName(langName, versionName);
- var generatedToc = util.generatedTocfileName(langName, versionName);
+ var tocfile = util.genTocfileName(langName, versionName);
var changeFrequency = DEFAULT_CHANGE_FREQUENCY;
var pagePriority = DEFAULT_PAGE_PRIORITY;
@@ -105,8 +103,7 @@ function main () {
},
values: {
version: versionName,
- manual_toc: manualToc.replace(".yml", ""),
- generated_toc: generatedToc.replace(".yml", ""),
+ tocfile: tocfile.replace(".yml", ""),
change_frequency: changeFrequency,
priority: pagePriority,
current: current
@@ -117,7 +114,8 @@ function main () {
});
});
- console.log(yaml.dump(config));
+ console.log(util.generatedBy(__filename));
+ console.log(yaml.dump(config, {indent: 4}));
}
main();
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/72bf41e7/tools/bin/gen_versions.js
----------------------------------------------------------------------
diff --git a/tools/bin/gen_versions.js b/tools/bin/gen_versions.js
index ebde51c..a85229a 100644
--- a/tools/bin/gen_versions.js
+++ b/tools/bin/gen_versions.js
@@ -72,7 +72,8 @@ function main () {
};
});
- console.log(yaml.dump(config));
+ console.log(util.generatedBy(__filename));
+ console.log(yaml.dump(config, {indent: 4}));
}
main();
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/72bf41e7/tools/bin/toc.js
----------------------------------------------------------------------
diff --git a/tools/bin/toc.js b/tools/bin/toc.js
index 4507865..ee9aebc 100644
--- a/tools/bin/toc.js
+++ b/tools/bin/toc.js
@@ -17,123 +17,57 @@
"use strict";
-var fs = require("fs");
-var path = require("path");
+var fs = require("fs");
+var path = require("path");
+var childProcess = require("child_process");
+
var yaml = require("js-yaml");
-var walk = require("walk");
var Q = require("q");
var argv = require("optimist").argv;
-var util = require("./util");
-
-function isUnderline(line) {
- return /-+|=+|\*+/.test(line);
-}
-
-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 generateToC(sourceDir) {
-
- var deferred = Q.defer();
- var toc = [];
-
- // go through each file in sourceDir
- var walker = walk.walk(sourceDir);
- walker.on("file", function (dirPrefix, fileStats, next) {
-
- var fileName = fileStats.name;
- var filePath = path.join(dirPrefix, fileName);
-
- // get the page path
- var pagePrefix = dirPrefix.replace(sourceDir, '');
- var pagePath = path.join(pagePrefix, fileName);
- var pageURI = pagePath.replace(".md", ".html").replace(/\\/g, "/");
-
- // remove leading slash
- if (pageURI[0] === "/") {
- pageURI = pageURI.substr(1);
- }
-
- // get heading
- var heading = getPageTitle(filePath);
-
- // if the page has a heading, add it to the ToC
- if (heading) {
- toc.push({
- name: heading,
- url: pageURI
- });
- }
-
- next();
- });
-
- walker.on("errors", function (root, nodeStatsArray, next) {
- console.error("ERROR while processing " + root);
- next();
- });
-
- walker.on("end", function () {
- deferred.resolve(toc);
- });
-
- return deferred.promise;
-}
+var augment = require("./augment_toc");
+var util = require("./util");
function main () {
var docsRoot = argv._[0];
- var dataRoot = argv._[1];
+ var tocRoot = argv._[1];
// validate args
- if ((!docsRoot) || (!dataRoot)) {
+ if ((!docsRoot) || (!tocRoot)) {
var scriptName = path.basename(process.argv[1]);
- console.log("usage: " + scriptName + " docsRoot dataRoot");
+ console.log("usage: " + scriptName + " docsRoot tocRoot");
console.log(scriptName + ": error: too few arguments");
return 1;
}
- var tocRoot = path.join(dataRoot, 'toc');
-
// go through all the languages
util.listdirsSync(docsRoot).forEach(function (languageName) {
-
var languagePath = path.join(docsRoot, languageName);
// go through all the versions
util.listdirsSync(languagePath).forEach(function (versionName) {
-
var versionPath = path.join(languagePath, versionName);
- var outputName = util.generatedTocfileName(languageName, versionName);
- var outputPath = path.join(tocRoot, outputName);
- // generate ToC
- generateToC(versionPath).then(function (toc) {
+ var srcTocName = util.srcTocfileName(languageName, versionName);
+ var destTocName = util.genTocfileName(languageName, versionName);
- // sort the ToC
- toc.sort(function (a, b) {
- return a.name.localeCompare(b.name, languageName);
- });
+ var srcTocPath = path.join(tocRoot, srcTocName);
+ var destTocPath = path.join(tocRoot, destTocName);
- // save it to a file
- var tocText = yaml.dump(toc);
- console.log(outputPath);
- fs.writeFileSync(outputPath, tocText, 'utf8');
+ // read the input
+ fs.readFile(srcTocPath, function (error, data) {
+
+ // augment the ToC
+ var originalTocString = data.toString();
+ var augmentedTocString = augment.augmentString(originalTocString, versionPath);
+ var warningComment = util.generatedBy(__filename);
+ var output = warningComment + "\n" + augmentedTocString;
+
+ // write the output
+ fs.writeFile(destTocPath, output, function (error, data) {
+ console.log(srcTocPath + " -> " + destTocPath);
+ });
});
});
});
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/72bf41e7/tools/bin/util.js
----------------------------------------------------------------------
diff --git a/tools/bin/util.js b/tools/bin/util.js
index e66fea1..8085af1 100644
--- a/tools/bin/util.js
+++ b/tools/bin/util.js
@@ -17,7 +17,7 @@
"use strict";
-module.exports = function () {
+module.exports = (function () {
var fs = require("fs");
var path = require("path");
@@ -78,15 +78,15 @@ module.exports = function () {
} else {
suffix = "";
}
- return language + "-" + versionSlug + suffix + ".yml";
+ return language + "_" + versionSlug + suffix + ".yml";
}
- function manualTocfileName(language, version) {
- return tocfileName(language, version, "manual");
+ function srcTocfileName(language, version) {
+ return tocfileName(language, version, "src");
}
- function generatedTocfileName(language, version) {
- return tocfileName(language, version, "generated");
+ function genTocfileName(language, version) {
+ return tocfileName(language, version, "gen");
}
function mergeObjects(a, b) {
@@ -100,6 +100,10 @@ module.exports = function () {
return c;
}
+ function generatedBy(scriptName) {
+ return "# WARNING: This file is generated by " + path.basename(scriptName);
+ }
+
return {
stripFrontMatter: stripFrontMatter,
getFrontMatterString: getFrontMatterString,
@@ -107,8 +111,9 @@ module.exports = function () {
getRawFrontMatterString: getRawFrontMatterString,
listdirsSync: listdirsSync,
tocfileName: tocfileName,
- manualTocfileName: manualTocfileName,
- generatedTocfileName: generatedTocfileName,
+ srcTocfileName: srcTocfileName,
+ genTocfileName: genTocfileName,
mergeObjects: mergeObjects,
+ generatedBy: generatedBy,
}
-}();
+})();
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/72bf41e7/www/_data/.gitignore
----------------------------------------------------------------------
diff --git a/www/_data/.gitignore b/www/_data/.gitignore
deleted file mode 100644
index 523d0c4..0000000
--- a/www/_data/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-toc/*-generated.yml
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/72bf41e7/www/_data/toc/de-3-1-0-manual.yml
----------------------------------------------------------------------
diff --git a/www/_data/toc/de-3-1-0-manual.yml b/www/_data/toc/de-3-1-0-manual.yml
deleted file mode 100644
index c247db9..0000000
--- a/www/_data/toc/de-3-1-0-manual.yml
+++ /dev/null
@@ -1,27 +0,0 @@
-- {name: "Reisef\xFChrer", url: !!python/unicode ''}
-- {name: "\xDCbersicht", url: !!python/unicode 'guide/overview/index.html'}
-- {name: !!python/unicode 'Die Befehlszeilenschnittstelle', url: !!python/unicode 'guide/cli/index.html'}
-- {name: !!python/unicode 'Plattform-Guides', url: !!python/unicode 'guide/platforms/index.html'}
-- {name: !!python/unicode 'Die Datei config.xml', url: !!python/unicode 'config_ref/index.html'}
-- {name: !!python/unicode 'Datei', url: !!python/unicode 'cordova/file/file.html'}
-- {name: !!python/unicode 'Symbole und Splash-Screens', url: !!python/unicode 'config_ref/images.html'}
-- {name: "Einbetten von Webansichten f\xFCr", url: !!python/unicode 'guide/hybrid/webviews/index.html'}
-- {name: !!python/unicode 'Plugin-Entwicklung-Guide', url: !!python/unicode 'guide/hybrid/plugins/index.html'}
-- {name: !!python/unicode 'Datenschutz-Guide', url: !!python/unicode 'guide/appdev/privacy/index.html'}
-- {name: !!python/unicode 'Whitelist-Guide', url: !!python/unicode 'guide/appdev/whitelist/index.html'}
-- {name: !!python/unicode 'Beschleunigungsmesser', url: !!python/unicode 'cordova/accelerometer/accelerometer.html'}
-- {name: !!python/unicode 'Kamera', url: !!python/unicode 'cordova/camera/camera.html'}
-- {name: !!python/unicode 'Erfassen', url: !!python/unicode 'cordova/media/capture/capture.html'}
-- {name: !!python/unicode 'Kompass', url: !!python/unicode 'cordova/compass/compass.html'}
-- {name: !!python/unicode 'Verbindung', url: !!python/unicode 'cordova/connection/connection.html'}
-- {name: !!python/unicode 'Kontakte', url: !!python/unicode 'cordova/contacts/contacts.html'}
-- {name: "Ger\xE4t", url: !!python/unicode 'cordova/device/device.html'}
-- {name: !!python/unicode 'Veranstaltungen', url: !!python/unicode 'cordova/events/events.html'}
-- {name: !!python/unicode 'Datei', url: !!python/unicode 'cordova/file/file.html'}
-- {name: !!python/unicode 'Geolocation', url: !!python/unicode 'cordova/geolocation/geolocation.html'}
-- {name: !!python/unicode 'Globalisierung', url: !!python/unicode 'cordova/globalization/globalization.html'}
-- {name: !!python/unicode 'InAppBrowser', url: !!python/unicode 'cordova/inappbrowser/inappbrowser.html'}
-- {name: !!python/unicode 'Medien', url: !!python/unicode 'cordova/media/media.html'}
-- {name: !!python/unicode 'Benachrichtigung', url: !!python/unicode 'cordova/notification/notification.html'}
-- {name: !!python/unicode 'SplashScreen', url: !!python/unicode 'cordova/splashscreen/splashscreen.html'}
-- {name: !!python/unicode 'Speicher', url: !!python/unicode 'cordova/storage/storage.html'}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/72bf41e7/www/_data/toc/de-3-4-0-manual.yml
----------------------------------------------------------------------
diff --git a/www/_data/toc/de-3-4-0-manual.yml b/www/_data/toc/de-3-4-0-manual.yml
deleted file mode 100644
index 081c2c2..0000000
--- a/www/_data/toc/de-3-4-0-manual.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-- {name: "Reisef\xFChrer", url: !!python/unicode ''}
-- {name: "\xDCbersicht", url: !!python/unicode 'guide/overview/index.html'}
-- {name: "Plattformunterst\xFCtzung", url: !!python/unicode 'guide/support/index.html'}
-- {name: !!python/unicode 'Die Befehlszeilenschnittstelle', url: !!python/unicode 'guide/cli/index.html'}
-- {name: !!python/unicode 'Plattform-Guides', url: !!python/unicode 'guide/platforms/index.html'}
-- {name: !!python/unicode 'Plugins verwalten mithilfe Plugman', url: !!python/unicode 'plugin_ref/plugman.html'}
-- {name: !!python/unicode 'Die Datei config.xml', url: !!python/unicode 'config_ref/index.html'}
-- {name: !!python/unicode 'Symbole und Splash-Screens', url: !!python/unicode 'config_ref/images.html'}
-- {name: "Einbetten von Webansichten f\xFCr", url: !!python/unicode 'guide/hybrid/webviews/index.html'}
-- {name: !!python/unicode 'Plugin-Entwicklung-Guide', url: !!python/unicode 'guide/hybrid/plugins/index.html'}
-- {name: !!python/unicode 'Datenschutz-Guide', url: !!python/unicode 'guide/appdev/privacy/index.html'}
-- {name: !!python/unicode 'Whitelist-Guide', url: !!python/unicode 'guide/appdev/whitelist/index.html'}
-- {name: !!python/unicode 'Speicher', url: !!python/unicode 'cordova/storage/storage.html'}
-- {name: !!python/unicode 'Veranstaltungen', url: !!python/unicode 'cordova/events/events.html'}
-- {name: !!python/unicode 'Plugin APIs', url: !!python/unicode 'cordova/plugins/pluginapis.html'}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/72bf41e7/www/_data/toc/de-3-5-0-manual.yml
----------------------------------------------------------------------
diff --git a/www/_data/toc/de-3-5-0-manual.yml b/www/_data/toc/de-3-5-0-manual.yml
deleted file mode 100644
index 081c2c2..0000000
--- a/www/_data/toc/de-3-5-0-manual.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-- {name: "Reisef\xFChrer", url: !!python/unicode ''}
-- {name: "\xDCbersicht", url: !!python/unicode 'guide/overview/index.html'}
-- {name: "Plattformunterst\xFCtzung", url: !!python/unicode 'guide/support/index.html'}
-- {name: !!python/unicode 'Die Befehlszeilenschnittstelle', url: !!python/unicode 'guide/cli/index.html'}
-- {name: !!python/unicode 'Plattform-Guides', url: !!python/unicode 'guide/platforms/index.html'}
-- {name: !!python/unicode 'Plugins verwalten mithilfe Plugman', url: !!python/unicode 'plugin_ref/plugman.html'}
-- {name: !!python/unicode 'Die Datei config.xml', url: !!python/unicode 'config_ref/index.html'}
-- {name: !!python/unicode 'Symbole und Splash-Screens', url: !!python/unicode 'config_ref/images.html'}
-- {name: "Einbetten von Webansichten f\xFCr", url: !!python/unicode 'guide/hybrid/webviews/index.html'}
-- {name: !!python/unicode 'Plugin-Entwicklung-Guide', url: !!python/unicode 'guide/hybrid/plugins/index.html'}
-- {name: !!python/unicode 'Datenschutz-Guide', url: !!python/unicode 'guide/appdev/privacy/index.html'}
-- {name: !!python/unicode 'Whitelist-Guide', url: !!python/unicode 'guide/appdev/whitelist/index.html'}
-- {name: !!python/unicode 'Speicher', url: !!python/unicode 'cordova/storage/storage.html'}
-- {name: !!python/unicode 'Veranstaltungen', url: !!python/unicode 'cordova/events/events.html'}
-- {name: !!python/unicode 'Plugin APIs', url: !!python/unicode 'cordova/plugins/pluginapis.html'}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/72bf41e7/www/_data/toc/de-5-4-0-manual.yml
----------------------------------------------------------------------
diff --git a/www/_data/toc/de-5-4-0-manual.yml b/www/_data/toc/de-5-4-0-manual.yml
deleted file mode 100644
index 1e52b09..0000000
--- a/www/_data/toc/de-5-4-0-manual.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-- {name: "Reisef\xFChrer", url: !!python/unicode ''}
-- {name: "\xDCbersicht", url: !!python/unicode 'guide/overview/index.html'}
-- {name: "Plattformunterst\xFCtzung", url: !!python/unicode 'guide/support/index.html'}
-- {name: !!python/unicode 'Die Befehlszeilenschnittstelle', url: !!python/unicode 'guide/cli/index.html'}
-- {name: !!python/unicode 'Plattform-Guides', url: !!python/unicode 'guide/platforms/index.html'}
-- {name: !!python/unicode 'Plugins verwalten mithilfe Plugman', url: !!python/unicode 'plugin_ref/plugman.html'}
-- {name: !!python/unicode 'Die Datei config.xml', url: !!python/unicode 'config_ref/index.html'}
-- {name: !!python/unicode 'Symbole und Splash-Screens', url: !!python/unicode 'config_ref/images.html'}
-- {name: "Einbetten von Webansichten f\xFCr", url: !!python/unicode 'guide/hybrid/webviews/index.html'}
-- {name: !!python/unicode 'Plugin-Entwicklung-Guide', url: !!python/unicode 'guide/hybrid/plugins/index.html'}
-- {name: !!python/unicode 'Plugin-Spezifikation', url: !!python/unicode 'plugin_ref/spec.html'}
-- {name: !!python/unicode 'Datenschutz-Guide', url: !!python/unicode 'guide/appdev/privacy/index.html'}
-- {name: !!python/unicode 'Sicherheitshandbuch', url: !!python/unicode 'guide/appdev/security/index.html'}
-- {name: !!python/unicode 'Plattformen und Plugins Versionsmanagement', url: !!python/unicode 'platform_plugin_versioning_ref/index.html'}
-- {name: !!python/unicode 'Whitelist-Guide', url: !!python/unicode 'guide/appdev/whitelist/index.html'}
-- {name: "Die n\xE4chsten Schritte", url: !!python/unicode 'guide/next/index.html'}
-- {name: !!python/unicode 'Veranstaltungen', url: !!python/unicode 'cordova/events/events.html'}
-- {name: !!python/unicode 'Plugin APIs', url: !!python/unicode 'cordova/plugins/pluginapis.html'}
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/72bf41e7/www/_data/toc/de-6-x-manual.yml
----------------------------------------------------------------------
diff --git a/www/_data/toc/de-6-x-manual.yml b/www/_data/toc/de-6-x-manual.yml
deleted file mode 100644
index af1b880..0000000
--- a/www/_data/toc/de-6-x-manual.yml
+++ /dev/null
@@ -1,118 +0,0 @@
-- name: "Introduction"
- children:
- - name: "Overview"
- url: "guide/overview/index.html"
-- name: "Create apps"
- children:
- - name: "Create your first app"
- url: "guide/cli/index.html"
- - name: "Platform support"
- url: "guide/support/index.html"
- - name: "Develop for platforms"
- children:
- - name: "Android"
- url: "guide/platforms/android/index.html"
- - name: "Blackberry 10"
- url: "guide/platforms/blackberry10/home.html"
- - name: "iOS"
- url: "guide/platforms/ios/index.html"
- - name: "OS X"
- url: "guide/platforms/osx/index.html"
- - name: "Ubuntu"
- url: "guide/platforms/ubuntu/index.html"
- - name: "Windows"
- url: "guide/platforms/win8/index.html"
- - name: "WP8"
- url: "guide/platforms/wp8/home.html"
- - name: "Manage versions and platforms"
- url: "platform_plugin_versioning_ref/index.html"
- - name: "Customize icons"
- url: "config_ref/images.html"
- - name: "Store data"
- url: "cordova/storage/storage.html"
- - name: "Manage privacy"
- url: "guide/appdev/privacy/index.html"
- - name: "Manage security"
- url: "guide/appdev/security/index.html"
- - name: "Whitelisting"
- url: "guide/appdev/whitelist/index.html"
-- name: "Create plugins"
- children:
- - name: "Create a plugin"
- url: "guide/hybrid/plugins/index.html"
- - name: "Develop for platforms"
- children:
- - name: "Android"
- url: "guide/platforms/android/plugin.html"
- - name: "Blackberry 10"
- url: "guide/platforms/blackberry10/plugin.html"
- - name: "iOS"
- url: "guide/platforms/ios/plugin.html"
- - name: "Windows"
- url: "guide/platforms/win8/plugin.html"
- - name: "WP8"
- url: "guide/platforms/wp8/plugin.html"
- - name: "Use Plugman"
- url: "plugin_ref/plugman.html"
-- name: "Advanced Topics"
- children:
- - name: "Embed Cordova in native apps"
- url: "guide/hybrid/webviews/index.html"
- - name: "Next Steps"
- url: "guide/next/index.html"
-- name: "Reference"
- children:
- - name: "Config.xml"
- url: "config_ref/index.html"
- - name: "Events"
- url: "cordova/events/events.html"
- - name: "CLI"
- url: "reference/cordova-cli/index.html"
- - name: "Hooks"
- url: "guide/appdev/hooks/index.html"
- - name: "Plugin.xml"
- url: "plugin_ref/spec.html"
- - name: "Plugin APIs"
- children:
- - name: Battery Status
- url: "reference/cordova-plugin-battery-status/index.html"
- - name: Camera
- url: "reference/cordova-plugin-camera/index.html"
- - name: Console
- url: "reference/cordova-plugin-console/index.html"
- - name: Contacts
- url: "reference/cordova-plugin-contacts/index.html"
- - name: Device
- url: "reference/cordova-plugin-device/index.html"
- - name: Device Motion
- url: "reference/cordova-plugin-device-motion/index.html"
- - name: Device Orientation
- url: "reference/cordova-plugin-device-orientation/index.html"
- - name: Dialogs
- url: "reference/cordova-plugin-dialogs/index.html"
- - name: File
- url: "reference/cordova-plugin-file/index.html"
- - name: File Transfer
- url: "reference/cordova-plugin-file-transfer/index.html"
- - name: Geolocation
- url: "reference/cordova-plugin-geolocation/index.html"
- - name: Globalization
- url: "reference/cordova-plugin-globalization/index.html"
- - name: Inappbrowser
- url: "reference/cordova-plugin-inappbrowser/index.html"
- - name: Media
- url: "reference/cordova-plugin-media/index.html"
- - name: Media Capture
- url: "reference/cordova-plugin-media-capture/index.html"
- - name: Network Information
- url: "reference/cordova-plugin-network-information/index.html"
- - name: Splashscreen
- url: "reference/cordova-plugin-splashscreen/index.html"
- - name: Vibration
- url: "reference/cordova-plugin-vibration/index.html"
- - name: Statusbar
- url: "reference/cordova-plugin-statusbar/index.html"
- - name: Whitelist
- url: "reference/cordova-plugin-whitelist/index.html"
- - name: Legacy Whitelist
- url: "reference/cordova-plugin-legacy-whitelist/index.html"
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/72bf41e7/www/_data/toc/de-dev-manual.yml
----------------------------------------------------------------------
diff --git a/www/_data/toc/de-dev-manual.yml b/www/_data/toc/de-dev-manual.yml
deleted file mode 100644
index af1b880..0000000
--- a/www/_data/toc/de-dev-manual.yml
+++ /dev/null
@@ -1,118 +0,0 @@
-- name: "Introduction"
- children:
- - name: "Overview"
- url: "guide/overview/index.html"
-- name: "Create apps"
- children:
- - name: "Create your first app"
- url: "guide/cli/index.html"
- - name: "Platform support"
- url: "guide/support/index.html"
- - name: "Develop for platforms"
- children:
- - name: "Android"
- url: "guide/platforms/android/index.html"
- - name: "Blackberry 10"
- url: "guide/platforms/blackberry10/home.html"
- - name: "iOS"
- url: "guide/platforms/ios/index.html"
- - name: "OS X"
- url: "guide/platforms/osx/index.html"
- - name: "Ubuntu"
- url: "guide/platforms/ubuntu/index.html"
- - name: "Windows"
- url: "guide/platforms/win8/index.html"
- - name: "WP8"
- url: "guide/platforms/wp8/home.html"
- - name: "Manage versions and platforms"
- url: "platform_plugin_versioning_ref/index.html"
- - name: "Customize icons"
- url: "config_ref/images.html"
- - name: "Store data"
- url: "cordova/storage/storage.html"
- - name: "Manage privacy"
- url: "guide/appdev/privacy/index.html"
- - name: "Manage security"
- url: "guide/appdev/security/index.html"
- - name: "Whitelisting"
- url: "guide/appdev/whitelist/index.html"
-- name: "Create plugins"
- children:
- - name: "Create a plugin"
- url: "guide/hybrid/plugins/index.html"
- - name: "Develop for platforms"
- children:
- - name: "Android"
- url: "guide/platforms/android/plugin.html"
- - name: "Blackberry 10"
- url: "guide/platforms/blackberry10/plugin.html"
- - name: "iOS"
- url: "guide/platforms/ios/plugin.html"
- - name: "Windows"
- url: "guide/platforms/win8/plugin.html"
- - name: "WP8"
- url: "guide/platforms/wp8/plugin.html"
- - name: "Use Plugman"
- url: "plugin_ref/plugman.html"
-- name: "Advanced Topics"
- children:
- - name: "Embed Cordova in native apps"
- url: "guide/hybrid/webviews/index.html"
- - name: "Next Steps"
- url: "guide/next/index.html"
-- name: "Reference"
- children:
- - name: "Config.xml"
- url: "config_ref/index.html"
- - name: "Events"
- url: "cordova/events/events.html"
- - name: "CLI"
- url: "reference/cordova-cli/index.html"
- - name: "Hooks"
- url: "guide/appdev/hooks/index.html"
- - name: "Plugin.xml"
- url: "plugin_ref/spec.html"
- - name: "Plugin APIs"
- children:
- - name: Battery Status
- url: "reference/cordova-plugin-battery-status/index.html"
- - name: Camera
- url: "reference/cordova-plugin-camera/index.html"
- - name: Console
- url: "reference/cordova-plugin-console/index.html"
- - name: Contacts
- url: "reference/cordova-plugin-contacts/index.html"
- - name: Device
- url: "reference/cordova-plugin-device/index.html"
- - name: Device Motion
- url: "reference/cordova-plugin-device-motion/index.html"
- - name: Device Orientation
- url: "reference/cordova-plugin-device-orientation/index.html"
- - name: Dialogs
- url: "reference/cordova-plugin-dialogs/index.html"
- - name: File
- url: "reference/cordova-plugin-file/index.html"
- - name: File Transfer
- url: "reference/cordova-plugin-file-transfer/index.html"
- - name: Geolocation
- url: "reference/cordova-plugin-geolocation/index.html"
- - name: Globalization
- url: "reference/cordova-plugin-globalization/index.html"
- - name: Inappbrowser
- url: "reference/cordova-plugin-inappbrowser/index.html"
- - name: Media
- url: "reference/cordova-plugin-media/index.html"
- - name: Media Capture
- url: "reference/cordova-plugin-media-capture/index.html"
- - name: Network Information
- url: "reference/cordova-plugin-network-information/index.html"
- - name: Splashscreen
- url: "reference/cordova-plugin-splashscreen/index.html"
- - name: Vibration
- url: "reference/cordova-plugin-vibration/index.html"
- - name: Statusbar
- url: "reference/cordova-plugin-statusbar/index.html"
- - name: Whitelist
- url: "reference/cordova-plugin-whitelist/index.html"
- - name: Legacy Whitelist
- url: "reference/cordova-plugin-legacy-whitelist/index.html"
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/72bf41e7/www/_data/toc/de_3-1-0-src.yml
----------------------------------------------------------------------
diff --git a/www/_data/toc/de_3-1-0-src.yml b/www/_data/toc/de_3-1-0-src.yml
new file mode 100644
index 0000000..d30dc54
--- /dev/null
+++ b/www/_data/toc/de_3-1-0-src.yml
@@ -0,0 +1,27 @@
+- url: ''
+- url: guide/overview/index.html
+- url: guide/cli/index.html
+- url: guide/platforms/index.html
+- url: config_ref/index.html
+- url: cordova/file/file.html
+- url: config_ref/images.html
+- url: guide/hybrid/webviews/index.html
+- url: guide/hybrid/plugins/index.html
+- url: guide/appdev/privacy/index.html
+- url: guide/appdev/whitelist/index.html
+- url: cordova/accelerometer/accelerometer.html
+- url: cordova/camera/camera.html
+- url: cordova/media/capture/capture.html
+- url: cordova/compass/compass.html
+- url: cordova/connection/connection.html
+- url: cordova/contacts/contacts.html
+- url: cordova/device/device.html
+- url: cordova/events/events.html
+- url: cordova/file/file.html
+- url: cordova/geolocation/geolocation.html
+- url: cordova/globalization/globalization.html
+- url: cordova/inappbrowser/inappbrowser.html
+- url: cordova/media/media.html
+- url: cordova/notification/notification.html
+- url: cordova/splashscreen/splashscreen.html
+- url: cordova/storage/storage.html
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/72bf41e7/www/_data/toc/de_3-4-0-src.yml
----------------------------------------------------------------------
diff --git a/www/_data/toc/de_3-4-0-src.yml b/www/_data/toc/de_3-4-0-src.yml
new file mode 100644
index 0000000..8efc9b3
--- /dev/null
+++ b/www/_data/toc/de_3-4-0-src.yml
@@ -0,0 +1,15 @@
+- url: ''
+- url: guide/overview/index.html
+- url: guide/support/index.html
+- url: guide/cli/index.html
+- url: guide/platforms/index.html
+- url: plugin_ref/plugman.html
+- url: config_ref/index.html
+- url: config_ref/images.html
+- url: guide/hybrid/webviews/index.html
+- url: guide/hybrid/plugins/index.html
+- url: guide/appdev/privacy/index.html
+- url: guide/appdev/whitelist/index.html
+- url: cordova/storage/storage.html
+- url: cordova/events/events.html
+- url: cordova/plugins/pluginapis.html
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/72bf41e7/www/_data/toc/de_3-5-0-src.yml
----------------------------------------------------------------------
diff --git a/www/_data/toc/de_3-5-0-src.yml b/www/_data/toc/de_3-5-0-src.yml
new file mode 100644
index 0000000..8efc9b3
--- /dev/null
+++ b/www/_data/toc/de_3-5-0-src.yml
@@ -0,0 +1,15 @@
+- url: ''
+- url: guide/overview/index.html
+- url: guide/support/index.html
+- url: guide/cli/index.html
+- url: guide/platforms/index.html
+- url: plugin_ref/plugman.html
+- url: config_ref/index.html
+- url: config_ref/images.html
+- url: guide/hybrid/webviews/index.html
+- url: guide/hybrid/plugins/index.html
+- url: guide/appdev/privacy/index.html
+- url: guide/appdev/whitelist/index.html
+- url: cordova/storage/storage.html
+- url: cordova/events/events.html
+- url: cordova/plugins/pluginapis.html
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/72bf41e7/www/_data/toc/de_5-4-0-src.yml
----------------------------------------------------------------------
diff --git a/www/_data/toc/de_5-4-0-src.yml b/www/_data/toc/de_5-4-0-src.yml
new file mode 100644
index 0000000..c3d8428
--- /dev/null
+++ b/www/_data/toc/de_5-4-0-src.yml
@@ -0,0 +1,18 @@
+- url: ''
+- url: guide/overview/index.html
+- url: guide/support/index.html
+- url: guide/cli/index.html
+- url: guide/platforms/index.html
+- url: plugin_ref/plugman.html
+- url: config_ref/index.html
+- url: config_ref/images.html
+- url: guide/hybrid/webviews/index.html
+- url: guide/hybrid/plugins/index.html
+- url: plugin_ref/spec.html
+- url: guide/appdev/privacy/index.html
+- url: guide/appdev/security/index.html
+- url: platform_plugin_versioning_ref/index.html
+- url: guide/appdev/whitelist/index.html
+- url: guide/next/index.html
+- url: cordova/events/events.html
+- url: cordova/plugins/pluginapis.html
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/72bf41e7/www/_data/toc/de_6-x-src.yml
----------------------------------------------------------------------
diff --git a/www/_data/toc/de_6-x-src.yml b/www/_data/toc/de_6-x-src.yml
new file mode 100644
index 0000000..2df8b49
--- /dev/null
+++ b/www/_data/toc/de_6-x-src.yml
@@ -0,0 +1,75 @@
+-
+ name: Introduction
+ children:
+ - url: guide/overview/index.html
+-
+ name: Create apps
+ children:
+ - url: guide/cli/index.html
+ - url: guide/support/index.html
+ -
+ name: Develop for platforms
+ children:
+ - url: guide/platforms/android/index.html
+ - url: guide/platforms/blackberry10/home.html
+ - url: guide/platforms/ios/index.html
+ - url: guide/platforms/osx/index.html
+ - url: guide/platforms/ubuntu/index.html
+ - url: guide/platforms/win8/index.html
+ - url: guide/platforms/wp8/home.html
+ - url: platform_plugin_versioning_ref/index.html
+ - url: config_ref/images.html
+ - url: cordova/storage/storage.html
+ - url: guide/appdev/privacy/index.html
+ - url: guide/appdev/security/index.html
+ - url: guide/appdev/whitelist/index.html
+-
+ name: Create plugins
+ children:
+ - url: guide/hybrid/plugins/index.html
+ -
+ name: Develop for platforms
+ children:
+ - url: guide/platforms/android/plugin.html
+ - url: guide/platforms/blackberry10/plugin.html
+ - url: guide/platforms/ios/plugin.html
+ - url: guide/platforms/win8/plugin.html
+ - url: guide/platforms/wp8/plugin.html
+ - url: plugin_ref/plugman.html
+-
+ name: Advanced Topics
+ children:
+ - url: guide/hybrid/webviews/index.html
+ - url: guide/next/index.html
+-
+ name: Reference
+ children:
+ - url: config_ref/index.html
+ - url: cordova/events/events.html
+ - url: reference/cordova-cli/index.html
+ - url: guide/appdev/hooks/index.html
+ - url: plugin_ref/spec.html
+ -
+ name: Plugin APIs
+ children:
+ - url: reference/cordova-plugin-battery-status/index.html
+ - url: reference/cordova-plugin-camera/index.html
+ - url: reference/cordova-plugin-console/index.html
+ - url: reference/cordova-plugin-contacts/index.html
+ - url: reference/cordova-plugin-device/index.html
+ - url: reference/cordova-plugin-device-motion/index.html
+ - url: reference/cordova-plugin-device-orientation/index.html
+ - url: reference/cordova-plugin-dialogs/index.html
+ - url: reference/cordova-plugin-file/index.html
+ - url: reference/cordova-plugin-file-transfer/index.html
+ - url: reference/cordova-plugin-geolocation/index.html
+ - url: reference/cordova-plugin-globalization/index.html
+ - url: reference/cordova-plugin-inappbrowser/index.html
+ - url: reference/cordova-plugin-media/index.html
+ - url: reference/cordova-plugin-media-capture/index.html
+ - url: reference/cordova-plugin-network-information/index.html
+ - url: reference/cordova-plugin-splashscreen/index.html
+ - url: reference/cordova-plugin-vibration/index.html
+ - url: reference/cordova-plugin-statusbar/index.html
+ - url: reference/cordova-plugin-whitelist/index.html
+ - url: reference/cordova-plugin-legacy-whitelist/index.html
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org