diff --git a/assets/javascripts/views/pages/nginx.coffee b/assets/javascripts/views/pages/nginx.coffee deleted file mode 100644 index 0d5f8962..00000000 --- a/assets/javascripts/views/pages/nginx.coffee +++ /dev/null @@ -1,6 +0,0 @@ -#= require views/pages/base - -class app.views.NginxPage extends app.views.BasePage - prepare: -> - @highlightCode @findAllByTag('pre'), 'nginx' - return diff --git a/assets/javascripts/views/pages/simple.coffee b/assets/javascripts/views/pages/simple.coffee index c2f31bbf..a633f8c1 100644 --- a/assets/javascripts/views/pages/simple.coffee +++ b/assets/javascripts/views/pages/simple.coffee @@ -29,6 +29,7 @@ app.views.MochaPage = app.views.ModernizrPage = app.views.MomentPage = app.views.MongoosePage = +app.views.NginxPage = app.views.NodePage = app.views.PerlPage = app.views.PhalconPage = diff --git a/lib/docs/filters/nginx/clean_html.rb b/lib/docs/filters/nginx/clean_html.rb index 22154232..d90dc6f5 100644 --- a/lib/docs/filters/nginx/clean_html.rb +++ b/lib/docs/filters/nginx/clean_html.rb @@ -26,6 +26,10 @@ module Docs node.name = 'code' end + css('pre').each do |node| + node['data-language'] = 'nginx' + end + doc end end diff --git a/lib/docs/scrapers/nginx.rb b/lib/docs/scrapers/nginx.rb index 6fca19dc..3aaa5430 100644 --- a/lib/docs/scrapers/nginx.rb +++ b/lib/docs/scrapers/nginx.rb @@ -2,10 +2,10 @@ module Docs class Nginx < UrlScraper self.name = 'nginx' self.type = 'nginx' - self.release = '1.11.0' - self.base_url = 'http://nginx.org/en/docs/' + self.release = '1.11.3' + self.base_url = 'https://nginx.org/en/docs/' self.links = { - home: 'http://nginx.org/', + home: 'https://nginx.org/', code: 'http://hg.nginx.org/nginx' }