Repository: cordova-docs Updated Branches: refs/heads/master 72bf41e74 -> 063dfba85
Fixed small bug in docs ToC scrolling. Fixed French translation strings. Fixing comments in .scss 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/063dfba8 Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/063dfba8 Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/063dfba8 Branch: refs/heads/master Commit: 063dfba85a9534d2ee07d1464d2cce2e8087fa5c Parents: 72bf41e Author: Dmitry Blotsky <dmitry.blot...@gmail.com> Authored: Wed Apr 20 18:54:36 2016 -0700 Committer: Dmitry Blotsky <dmitry.blot...@gmail.com> Committed: Wed Apr 20 18:54:36 2016 -0700 ---------------------------------------------------------------------- www/_layouts/docs-fr.html | 4 ++-- www/static/css-src/_blog.scss | 4 ++-- www/static/js/docs.js | 7 +++++-- 3 files changed, 9 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/063dfba8/www/_layouts/docs-fr.html ---------------------------------------------------------------------- diff --git a/www/_layouts/docs-fr.html b/www/_layouts/docs-fr.html index 249de1a..66b3a30 100644 --- a/www/_layouts/docs-fr.html +++ b/www/_layouts/docs-fr.html @@ -1,8 +1,8 @@ --- layout: docs outdated_text: "Ca n'est past la dernière version de la documentation." -in_development_text: "This version of the documentation is under development!" -click_here_text: "Click here for the latest released version." +in_development_text: "Cette version de la documentation est en cours de développement!" +click_here_text: "Cliquez ici pour voire la dernière version de la documentation." toc_text: "Table des Matières" latest_text: "Dernière" visit_github_text: "L'autres versions sont sur Github." http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/063dfba8/www/static/css-src/_blog.scss ---------------------------------------------------------------------- diff --git a/www/static/css-src/_blog.scss b/www/static/css-src/_blog.scss index aad080e..23d5097 100644 --- a/www/static/css-src/_blog.scss +++ b/www/static/css-src/_blog.scss @@ -15,7 +15,7 @@ } } - // landing page + /* landing page */ .blog-list { max-width: 700px; ul.posts { @@ -156,7 +156,7 @@ } - // blog post page + /* blog post page */ .post { header { margin-bottom: 20px; http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/063dfba8/www/static/js/docs.js ---------------------------------------------------------------------- diff --git a/www/static/js/docs.js b/www/static/js/docs.js index 9d5cc8e..2a922d2 100644 --- a/www/static/js/docs.js +++ b/www/static/js/docs.js @@ -20,8 +20,11 @@ $(document).ready(function () { var HEADER_OFFSET = 56; // in pixels var TOC_TOP_OFFSET = HEADER_OFFSET + 55; - // scroll the ToC to the current page's entry - $(".site-toc-container").scrollTop($(".this-page").first().offset().top - TOC_TOP_OFFSET); + // if this page's ToC entry can be found, scroll the ToC to it + var thisPageEntry = $(".this-page"); + if (thisPageEntry.length > 0) { + $(".site-toc-container").scrollTop(thisPageEntry.first().offset().top - TOC_TOP_OFFSET); + } function slugifyLikeGitHub(originalText) { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org