From f681391ead8711d998f0c5b33dbbeaa97ec188ed Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sat, 6 Feb 2016 15:03:22 -0500 Subject: [PATCH] Update HTML documentation Fixes #248. --- assets/javascripts/templates/pages/about_tmpl.coffee | 2 +- lib/docs/filters/html/clean_html.rb | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee index 402daa89..6ab78f32 100644 --- a/assets/javascripts/templates/pages/about_tmpl.coffee +++ b/assets/javascripts/templates/pages/about_tmpl.coffee @@ -121,7 +121,7 @@ credits = [ 'https://raw.githubusercontent.com/apache/cordova-docs/master/LICENSE' ], [ 'CSS
DOM
HTML
JavaScript
SVG
XPath', - '2005-2015 Mozilla Developer Network and individual contributors', + '2005-2016 Mozilla Developer Network and individual contributors', 'CC BY-SA', 'https://creativecommons.org/licenses/by-sa/2.5/' ], [ diff --git a/lib/docs/filters/html/clean_html.rb b/lib/docs/filters/html/clean_html.rb index 60b49b29..0cc79ce5 100644 --- a/lib/docs/filters/html/clean_html.rb +++ b/lib/docs/filters/html/clean_html.rb @@ -13,6 +13,17 @@ module Docs end def other + css('span > .icon-thumbs-down-alt:first-child:last-child').each do |node| + node.parent.replace('deprecated') + end + + css('span > .icon-trash:first-child:last-child').each do |node| + node.parent.replace('deleted') + end + + css('span > .icon-warning-sign:first-child:last-child').each do |node| + node.parent.replace('non standard') + end end end end