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
208 'https://creativecommons.org/licenses/by-sa/2.5/'208 'https://creativecommons.org/licenses/by-sa/2.5/'
209 ], [209 ], [
210 'Crystal',210 'Crystal',
211 '2012-2020 Manas Technology Solutions',211 '2012-2021 Manas Technology Solutions',
212 'Apache',212 'Apache',
213 'https://raw.githubusercontent.com/crystal-lang/crystal/master/LICENSE'213 'https://raw.githubusercontent.com/crystal-lang/crystal/master/LICENSE'
214 ], [214 ], [
lib/docs/scrapers/crystal.rb+9−11
@@ -19,24 +19,22 @@ module Docs · 18 unmodified lines
19 HTML19 HTML
20 else20 else
21 <<-HTML21 <<-HTML
22 &copy; 2012&ndash;2020 Manas Technology Solutions.<br>22 &copy; 2012&ndash;2021 Manas Technology Solutions.<br>
23 Licensed under the Apache License, Version 2.0.23 Licensed under the Apache License, Version 2.0.
24 HTML24 HTML
25 end25 end
26 }26 }
27 27
28 version do28 self.release = '1.0.0'
29 self.release = '0.36.1'29 self.root_path = "api/#{release}/index.html"
30 self.root_path = "api/#{release}/index.html"
31 30
32 options[:only_patterns] = [/\Aapi\/#{release}\//, /\Areference\//]31 options[:only_patterns] = [/\Aapi\/#{release}\//, /\Areference\//]
33 options[:skip_patterns] = [/debug/i]32 options[:skip_patterns] = [/debug/i]
34 33
35 options[:replace_paths] = {34 options[:replace_paths] = {
36 "api/#{release}/" => "api/#{release}/index.html",35 "api/#{release}/" => "api/#{release}/index.html",
37 'reference/' => 'reference/index.html'36 'reference/' => 'reference/index.html'
38 }37 }
39 end
40 38
41 def get_latest_version(opts)39 def get_latest_version(opts)
42 doc = fetch_doc('https://crystal-lang.org/', opts)40 doc = fetch_doc('https://crystal-lang.org/', opts)