瀏覽代碼

julia: add versions 1.1 and 1.2

Simon Legner 6 年之前
父節點
當前提交
cd2339d96a
共有 2 個文件被更改,包括 23 次插入3 次删除
  1. 1 1
      assets/javascripts/templates/pages/about_tmpl.coffee
  2. 22 2
      lib/docs/scrapers/julia.rb

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

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

+ 22 - 2
lib/docs/scrapers/julia.rb

@@ -8,12 +8,32 @@ module Docs
     options[:only_patterns] = [/\Amanual\//, /\Astdlib\//]
 
     options[:attribution] = <<-HTML
-      &copy; 2009&ndash;2018 Jeff Bezanson, Stefan Karpinski, Viral B. Shah, and other contributors<br>
+      &copy; 2009&ndash;2019 Jeff Bezanson, Stefan Karpinski, Viral B. Shah, and other contributors<br>
       Licensed under the MIT License.
     HTML
 
+    version '1.2' do
+      self.release = '1.2.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'
+    end
+
+    version '1.1' do
+      self.release = '1.1.1'
+      self.base_url = "https://docs.julialang.org/en/v#{release}/"
+      self.type = 'julia'
+
+      html_filters.push 'julia/entries', 'julia/clean_html'
+
+      options[:container] = '#docs'
+    end
+
     version '1.0' do
-      self.release = '1.0.1'
+      self.release = '1.0.4'
       self.base_url = "https://docs.julialang.org/en/v#{release}/"
       self.type = 'julia'