Unified · Split
| @@ -1,6 +0,0 @@ | |||
| 1 | #= require views/pages/base | ||
| 2 | |||
| 3 | class app.views.NginxPage extends app.views.BasePage | ||
| 4 | prepare: -> | ||
| 5 | @highlightCode @findAllByTag('pre'), 'nginx' | ||
| 6 | return | ||
| @@ -29,6 +29,7 @@ app.views.MochaPage = · 28 unmodified lines | |||
| 29 | app.views.ModernizrPage = | 29 | app.views.ModernizrPage = |
| 30 | app.views.MomentPage = | 30 | app.views.MomentPage = |
| 31 | app.views.MongoosePage = | 31 | app.views.MongoosePage = |
| 32 | app.views.NginxPage = | ||
| 32 | app.views.NodePage = | 33 | app.views.NodePage = |
| 33 | app.views.PerlPage = | 34 | app.views.PerlPage = |
| 34 | app.views.PhalconPage = | 35 | app.views.PhalconPage = |
| @@ -26,6 +26,10 @@ module Docs · 25 unmodified lines | |||
| 26 | node.name = 'code' | 26 | node.name = 'code' |
| 27 | end | 27 | end |
| 28 | 28 | ||
| 29 | css('pre').each do |node| | ||
| 30 | node['data-language'] = 'nginx' | ||
| 31 | end | ||
| 32 | |||
| 29 | doc | 33 | doc |
| 30 | end | 34 | end |
| 31 | end | 35 | end |
| @@ -2,10 +2,10 @@ module Docs · 1 unmodified line | |||
| 2 | class Nginx < UrlScraper | 2 | class Nginx < UrlScraper |
| 3 | self.name = 'nginx' | 3 | self.name = 'nginx' |
| 4 | self.type = 'nginx' | 4 | self.type = 'nginx' |
| 5 | self.release = '1.11.0' | 5 | self.release = '1.11.3' |
| 6 | self.base_url = 'http://nginx.org/en/docs/' | 6 | self.base_url = 'https://nginx.org/en/docs/' |
| 7 | self.links = { | 7 | self.links = { |
| 8 | home: 'http://nginx.org/', | 8 | home: 'https://nginx.org/', |
| 9 | code: 'http://hg.nginx.org/nginx' | 9 | code: 'http://hg.nginx.org/nginx' |
| 10 | } | 10 | } |
| 11 | 11 | ||