History

Update Crystal documentation (1.0.0)

Simon Legner committed 5 years ago

Commit 0a4ef6a1 parent 40fa61e2 files · +10 −12Browse files

Unified · Split

2 files
  1. assets/javascripts/templates/pages/about_tmpl.coffee +1 −1
  2. lib/docs/scrapers/crystal.rb +9 −11
assets/javascripts/templates/pages/about_tmpl.coffee+1−1
@@ -208,7 +208,7 @@ credits = [ · 207 unmodified lines
208208 'https://creativecommons.org/licenses/by-sa/2.5/'
209209 ], [
210210 'Crystal',
211− '2012-2020 Manas Technology Solutions',
211+ '2012-2021 Manas Technology Solutions',
212212 'Apache',
213213 'https://raw.githubusercontent.com/crystal-lang/crystal/master/LICENSE'
214214 ], [
lib/docs/scrapers/crystal.rb+9−11
@@ -19,24 +19,22 @@ module Docs · 18 unmodified lines
1919 HTML
2020 else
2121 <<-HTML
22− &copy; 2012&ndash;2020 Manas Technology Solutions.<br>
22+ &copy; 2012&ndash;2021 Manas Technology Solutions.<br>
2323 Licensed under the Apache License, Version 2.0.
2424 HTML
2525 end
2626 }
2727
28− version do
29− self.release = '0.36.1'
30− self.root_path = "api/#{release}/index.html"
28+ self.release = '1.0.0'
29+ self.root_path = "api/#{release}/index.html"
3130
32− options[:only_patterns] = [/\Aapi\/#{release}\//, /\Areference\//]
33− options[:skip_patterns] = [/debug/i]
31+ options[:only_patterns] = [/\Aapi\/#{release}\//, /\Areference\//]
32+ options[:skip_patterns] = [/debug/i]
3433
35− options[:replace_paths] = {
36− "api/#{release}/" => "api/#{release}/index.html",
37− 'reference/' => 'reference/index.html'
38− }
39− end
34+ options[:replace_paths] = {
35+ "api/#{release}/" => "api/#{release}/index.html",
36+ 'reference/' => 'reference/index.html'
37+ }
4038
4139 def get_latest_version(opts)
4240 doc = fetch_doc('https://crystal-lang.org/', opts)