Unified · Split
| @@ -297,7 +297,7 @@ credits = [ · 296 unmodified lines | ||
| 297 | 297 | 'https://raw.githubusercontent.com/mochajs/mocha/master/LICENSE' |
| 298 | 298 | ], [ |
| 299 | 299 | 'Modernizr', |
| 300 | − '2009-2014 Modernizr', | |
| 300 | + '2009-2016 The Modernizr team', | |
| 301 | 301 | 'MIT', |
| 302 | 302 | 'https://modernizr.com/license/' |
| 303 | 303 | ], [ |
| @@ -1,4 +1,4 @@ | ||
| 1 | −/* http://prismjs.com/download.html?themes=prism&languages=markup+css+clike+javascript+c+cpp+coffeescript+ruby+elixir+go+lua+nginx+perl+php+python+rust+sql+typescript */ | |
| 1 | +/* http://prismjs.com/download.html?themes=prism&languages=markup+css+clike+javascript+c+cpp+coffeescript+ruby+elixir+go+json+lua+nginx+perl+php+python+rust+sql+typescript */ | |
| 2 | 2 | var _self = (typeof window !== 'undefined') |
| 3 | 3 | ? window // if in browser |
| 4 | 4 | : ( |
| @@ -1006,6 +1006,18 @@ Prism.languages.go = Prism.languages.extend('clike', { · 1001 unmodified lines | ||
| 1006 | 1006 | }); |
| 1007 | 1007 | delete Prism.languages.go['class-name']; |
| 1008 | 1008 | |
| 1009 | +Prism.languages.json = { | |
| 1010 | + 'property': /".*?"(?=\s*:)/ig, | |
| 1011 | + 'string': /"(?!:)(\\?[^"])*?"(?!:)/g, | |
| 1012 | + 'number': /\b-?(0x[\dA-Fa-f]+|\d*\.?\d+([Ee]-?\d+)?)\b/g, | |
| 1013 | + 'punctuation': /[{}[\]);,]/g, | |
| 1014 | + 'operator': /:/g, | |
| 1015 | + 'boolean': /\b(true|false)\b/gi, | |
| 1016 | + 'null': /\bnull\b/gi, | |
| 1017 | +}; | |
| 1018 | + | |
| 1019 | +Prism.languages.jsonp = Prism.languages.json; | |
| 1020 | + | |
| 1009 | 1021 | Prism.languages.lua = { |
| 1010 | 1022 | 'comment': /^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m, |
| 1011 | 1023 | // \z may be used to skip the following space |
| @@ -20,7 +20,6 @@ app.views.GruntPage = · 19 unmodified lines | ||
| 20 | 20 | app.views.LodashPage = |
| 21 | 21 | app.views.MarionettePage = |
| 22 | 22 | app.views.MochaPage = |
| 23 | −app.views.ModernizrPage = | |
| 24 | 23 | app.views.MongoosePage = |
| 25 | 24 | app.views.SinonPage = |
| 26 | 25 | app.views.JavascriptPage |
| @@ -11,6 +11,7 @@ app.views.EmberPage = · 10 unmodified lines | ||
| 11 | 11 | app.views.ExpressPage = |
| 12 | 12 | app.views.GoPage = |
| 13 | 13 | app.views.MeteorPage = |
| 14 | +app.views.ModernizrPage = | |
| 14 | 15 | app.views.MomentPage = |
| 15 | 16 | app.views.NodePage = |
| 16 | 17 | app.views.PerlPage = |
| @@ -3,7 +3,9 @@ module Docs · 2 unmodified lines | ||
| 3 | 3 | class CleanHtmlFilter < Filter |
| 4 | 4 | def call |
| 5 | 5 | css('pre').each do |node| |
| 6 | − node.content = node.content | |
| 6 | + class_name = node.at_css('code')['class'] | |
| 7 | + node['data-language'] = class_name[/lang-(\w+)/, 1] if class_name | |
| 8 | + node.content = node.content.strip_heredoc | |
| 7 | 9 | end |
| 8 | 10 | |
| 9 | 11 | css('sub').each do |node| |
| @@ -2,7 +2,7 @@ module Docs · 1 unmodified line | ||
| 2 | 2 | class Modernizr < UrlScraper |
| 3 | 3 | self.name = 'Modernizr' |
| 4 | 4 | self.type = 'modernizr' |
| 5 | − self.release = '3.2.0' | |
| 5 | + self.release = '3.3.1' | |
| 6 | 6 | self.base_url = 'https://modernizr.com/docs/' |
| 7 | 7 | |
| 8 | 8 | html_filters.push 'modernizr/entries', 'modernizr/clean_html', 'title' |
| @@ -12,7 +12,7 @@ module Docs · 3 unmodified lines | ||
| 12 | 12 | options[:skip_links] = true |
| 13 | 13 | |
| 14 | 14 | options[:attribution] = <<-HTML |
| 15 | − © 2009–2015 Modernizr<br> | |
| 15 | + © 2009–2016 The Modernizr team<br> | |
| 16 | 16 | Licensed under the MIT License. |
| 17 | 17 | HTML |
| 18 | 18 | end |