Skip to content

Commit

Permalink
Update Crystal documentation (1.0.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
simon04 committed Mar 22, 2021
1 parent 40fa61e commit 0a4ef6a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion assets/javascripts/templates/pages/about_tmpl.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ credits = [
'https://creativecommons.org/licenses/by-sa/2.5/'
], [
'Crystal',
'2012-2020 Manas Technology Solutions',
'2012-2021 Manas Technology Solutions',
'Apache',
'https://raw.githubusercontent.com/crystal-lang/crystal/master/LICENSE'
], [
Expand Down
20 changes: 9 additions & 11 deletions lib/docs/scrapers/crystal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,22 @@ class Crystal < UrlScraper
HTML
else
<<-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.
HTML
end
}

version do
self.release = '0.36.1'
self.root_path = "api/#{release}/index.html"
self.release = '1.0.0'
self.root_path = "api/#{release}/index.html"

options[:only_patterns] = [/\Aapi\/#{release}\//, /\Areference\//]
options[:skip_patterns] = [/debug/i]
options[:only_patterns] = [/\Aapi\/#{release}\//, /\Areference\//]
options[:skip_patterns] = [/debug/i]

options[:replace_paths] = {
"api/#{release}/" => "api/#{release}/index.html",
'reference/' => 'reference/index.html'
}
end
options[:replace_paths] = {
"api/#{release}/" => "api/#{release}/index.html",
'reference/' => 'reference/index.html'
}

def get_latest_version(opts)
doc = fetch_doc('https://crystal-lang.org/', opts)
Expand Down

0 comments on commit 0a4ef6a

Please sign in to comment.