Bladeren bron

Add Julia version 1.5.3

MasterEnoc 5 jaren geleden
bovenliggende
commit
12c347410e
2 gewijzigde bestanden met toevoegingen van 13 en 2 verwijderingen
  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

@@ -408,7 +408,7 @@ credits = [
     'https://raw.githubusercontent.com/jquery/api.jqueryui.com/master/LICENSE.txt'
   ], [
     'Julia',
-    '2009-2019 Jeff Bezanson, Stefan Karpinski, Viral B. Shah, and other contributors',
+    '2009-2020 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;2019 Jeff Bezanson, Stefan Karpinski, Viral B. Shah, and other contributors<br>
+      &copy; 2009&ndash;2020 Jeff Bezanson, Stefan Karpinski, Viral B. Shah, and other contributors<br>
       Licensed under the MIT License.
     HTML
 
+    version '1.5' do
+      self.release = '1.5.3'
+      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.2' do
       self.release = '1.2.0'
       self.base_url = "https://docs.julialang.org/en/v#{release}/"