Quellcode durchsuchen

Update nginx documentation (1.11.3)

Thibaut Courouble vor 9 Jahren
Ursprung
Commit
6c21dc85ba

+ 0 - 6
assets/javascripts/views/pages/nginx.coffee

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

+ 1 - 0
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 =

+ 4 - 0
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

+ 3 - 3
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'
     }