1
0
Эх сурвалжийг харах

Update Julia documentation (1.8.0)

Simon Legner 3 жил өмнө
parent
commit
0cab6386b0

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

@@ -463,7 +463,7 @@ credits = [
     'https://raw.githubusercontent.com/jsdoc3/jsdoc3.github.com/master/LICENSE'
   ], [
     'Julia',
-    '2009-2021 Jeff Bezanson, Stefan Karpinski, Viral B. Shah, and other contributors',
+    '2009-2022 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;2021 Jeff Bezanson, Stefan Karpinski, Viral B. Shah, and other contributors<br>
+      &copy; 2009&ndash;2022 Jeff Bezanson, Stefan Karpinski, Viral B. Shah, and other contributors<br>
       Licensed under the MIT License.
     HTML
 
+    version '1.8' do
+      self.release = '1.8.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.7' do
       self.release = '1.7.0'
       self.base_url = "https://docs.julialang.org/en/v#{release}/"