crystal: provide only latest release 0.35.1

pull/1196/head
Simon Legner 4 years ago
parent 6c9f765c04
commit 4288fe5104

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

@ -14,7 +14,7 @@ module Docs
name
else
name = at_css('h1').children.last.content.strip
name = at_css('.type-name').children.last.content.strip
name.remove! %r{\(.*\)}
name
end

@ -19,27 +19,14 @@ module Docs
HTML
else
<<-HTML
&copy; 2012&ndash;2019 Manas Technology Solutions.<br>
&copy; 2012&ndash;2020 Manas Technology Solutions.<br>
Licensed under the Apache License, Version 2.0.
HTML
end
}
version '0.34' do
self.release = '0.34.0'
self.root_path = "api/#{release}/index.html"
options[:only_patterns] = [/\Adocs\//, /\Aapi\/#{release}\//]
options[:skip_patterns] = [/debug/i]
options[:replace_paths] = {
"api/#{release}/" => "api/#{release}/index.html",
'docs/' => 'docs/index.html'
}
end
version '0.33' do
self.release = '0.33.0'
version do
self.release = '0.35.1'
self.root_path = "api/#{release}/index.html"
options[:only_patterns] = [/\Adocs\//, /\Aapi\/#{release}\//]

Loading…
Cancel
Save