浏览代码

Update Julia documentation (1.6.0)

Simon Legner 4 年之前
父节点
当前提交
5e5e46945a
共有 2 个文件被更改,包括 13 次插入2 次删除
  1. 1 1
      assets/javascripts/templates/pages/about_tmpl.coffee
  2. 12 1
      lib/docs/scrapers/julia.rb

+ 1 - 1
assets/javascripts/templates/pages/about_tmpl.coffee

@@ -433,7 +433,7 @@ credits = [
     'https://raw.githubusercontent.com/jquery/api.jqueryui.com/master/LICENSE.txt'
   ], [
     'Julia',
-    '2009-2020 Jeff Bezanson, Stefan Karpinski, Viral B. Shah, and other contributors',
+    '2009-2021 Jeff Bezanson, Stefan Karpinski, Viral B. Shah, and other contributors',
     'MIT',
     'https://raw.githubusercontent.com/JuliaLang/julia/master/LICENSE.md'
   ], [

+ 12 - 1
lib/docs/scrapers/julia.rb

@@ -7,10 +7,21 @@ module Docs
 
 
     options[:attribution] = <<-HTML
-      &copy; 2009&ndash;2020 Jeff Bezanson, Stefan Karpinski, Viral B. Shah, and other contributors<br>
+      &copy; 2009&ndash;2021 Jeff Bezanson, Stefan Karpinski, Viral B. Shah, and other contributors<br>
       Licensed under the MIT License.
     HTML
 
+    version '1.6' do
+      self.release = '1.6.0'
+      self.base_url = "https://docs.julialang.org/en/v#{release}/"
+      self.type = 'julia'
+
+      html_filters.push 'julia/entries', 'julia/clean_html'
+
+      options[:container] = '.docs-main'
+      options[:only_patterns] = [/\Amanual\//, /\Abase\//, /\Astdlib\//]
+    end
+
     version '1.5' do
       self.release = '1.5.3'
       self.base_url = "https://docs.julialang.org/en/v#{release}/"