Update nginx documentation (1.11.3)

pull/447/merge
Thibaut Courouble 9 years ago
parent f57cc8e657
commit 6c21dc85ba

@ -1,6 +0,0 @@
#= require views/pages/base
class app.views.NginxPage extends app.views.BasePage
prepare: ->
@highlightCode @findAllByTag('pre'), 'nginx'
return

@ -29,6 +29,7 @@ app.views.MochaPage =
app.views.ModernizrPage = app.views.ModernizrPage =
app.views.MomentPage = app.views.MomentPage =
app.views.MongoosePage = app.views.MongoosePage =
app.views.NginxPage =
app.views.NodePage = app.views.NodePage =
app.views.PerlPage = app.views.PerlPage =
app.views.PhalconPage = app.views.PhalconPage =

@ -26,6 +26,10 @@ module Docs
node.name = 'code' node.name = 'code'
end end
css('pre').each do |node|
node['data-language'] = 'nginx'
end
doc doc
end end
end end

@ -2,10 +2,10 @@ module Docs
class Nginx < UrlScraper class Nginx < UrlScraper
self.name = 'nginx' self.name = 'nginx'
self.type = 'nginx' self.type = 'nginx'
self.release = '1.11.0' self.release = '1.11.3'
self.base_url = 'http://nginx.org/en/docs/' self.base_url = 'https://nginx.org/en/docs/'
self.links = { self.links = {
home: 'http://nginx.org/', home: 'https://nginx.org/',
code: 'http://hg.nginx.org/nginx' code: 'http://hg.nginx.org/nginx'
} }

Loading…
Cancel
Save