Update Crystal documentation (1.0.0)

pull/1250/merge
Simon Legner 4 years ago
parent 40fa61ebef
commit 0a4ef6ada9

@ -208,7 +208,7 @@ credits = [
'https://creativecommons.org/licenses/by-sa/2.5/' 'https://creativecommons.org/licenses/by-sa/2.5/'
], [ ], [
'Crystal', 'Crystal',
'2012-2020 Manas Technology Solutions', '2012-2021 Manas Technology Solutions',
'Apache', 'Apache',
'https://raw.githubusercontent.com/crystal-lang/crystal/master/LICENSE' 'https://raw.githubusercontent.com/crystal-lang/crystal/master/LICENSE'
], [ ], [

@ -19,24 +19,22 @@ module Docs
HTML HTML
else else
<<-HTML <<-HTML
&copy; 2012&ndash;2020 Manas Technology Solutions.<br> &copy; 2012&ndash;2021 Manas Technology Solutions.<br>
Licensed under the Apache License, Version 2.0. Licensed under the Apache License, Version 2.0.
HTML HTML
end end
} }
version do self.release = '1.0.0'
self.release = '0.36.1' self.root_path = "api/#{release}/index.html"
self.root_path = "api/#{release}/index.html"
options[:only_patterns] = [/\Aapi\/#{release}\//, /\Areference\//] options[:only_patterns] = [/\Aapi\/#{release}\//, /\Areference\//]
options[:skip_patterns] = [/debug/i] options[:skip_patterns] = [/debug/i]
options[:replace_paths] = { options[:replace_paths] = {
"api/#{release}/" => "api/#{release}/index.html", "api/#{release}/" => "api/#{release}/index.html",
'reference/' => 'reference/index.html' 'reference/' => 'reference/index.html'
} }
end
def get_latest_version(opts) def get_latest_version(opts)
doc = fetch_doc('https://crystal-lang.org/', opts) doc = fetch_doc('https://crystal-lang.org/', opts)

Loading…
Cancel
Save