From cd2339d96a39004d16680a7f2b73397ec80c6896 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Wed, 21 Aug 2019 14:19:12 +0200 Subject: [PATCH] julia: add versions 1.1 and 1.2 --- .../templates/pages/about_tmpl.coffee | 2 +- lib/docs/scrapers/julia.rb | 24 +++++++++++++++++-- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee index 4ec24e0e..14674366 100644 --- a/assets/javascripts/templates/pages/about_tmpl.coffee +++ b/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' ], [ diff --git a/lib/docs/scrapers/julia.rb b/lib/docs/scrapers/julia.rb index c9c96da6..7573ffe7 100644 --- a/lib/docs/scrapers/julia.rb +++ b/lib/docs/scrapers/julia.rb @@ -8,12 +8,32 @@ module Docs options[:only_patterns] = [/\Amanual\//, /\Astdlib\//] options[:attribution] = <<-HTML - © 2009–2018 Jeff Bezanson, Stefan Karpinski, Viral B. Shah, and other contributors
+ © 2009–2019 Jeff Bezanson, Stefan Karpinski, Viral B. Shah, and other contributors
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'