浏览代码

Update Laravel documentation (5.3.15)

Fixes #491.
Thibaut Courouble 9 年之前
父节点
当前提交
20d41b13e5
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 4 4
      lib/docs/filters/laravel/clean_html.rb
  2. 1 1
      lib/docs/scrapers/laravel.rb

+ 4 - 4
lib/docs/filters/laravel/clean_html.rb

@@ -8,16 +8,16 @@ module Docs
           other
           other
         end
         end
 
 
+        css('a.__cf_email__').each do |node|
+          node.replace(decode_cloudflare_email(node['data-cfemail']))
+        end
+
         # Remove code highlighting
         # Remove code highlighting
         css('pre').each do |node|
         css('pre').each do |node|
           node.content = node.content
           node.content = node.content
           node['data-language'] = 'php'
           node['data-language'] = 'php'
         end
         end
 
 
-        css('a.__cf_email__').each do |node|
-          node.replace(decode_cloudflare_email(node['data-cfemail']))
-        end
-
         doc
         doc
       end
       end
 
 

+ 1 - 1
lib/docs/scrapers/laravel.rb

@@ -34,7 +34,7 @@ module Docs
     HTML
     HTML
 
 
     version '5.3' do
     version '5.3' do
-      self.release = '5.3.0'
+      self.release = '5.3.15'
       self.root_path = '/api/5.3/index.html'
       self.root_path = '/api/5.3/index.html'
       self.initial_paths = %w(/docs/5.3/installation /api/5.3/classes.html)
       self.initial_paths = %w(/docs/5.3/installation /api/5.3/classes.html)