[devdocsgjs/main: 1573/1867] Update Crystal documentation (1.0.0)




commit 0a4ef6ada9750203fad081f0588fbdffb37e77bf
Author: Simon Legner <Simon Legner gmail com>
Date:   Mon Mar 22 21:06:32 2021 +0100

    Update Crystal documentation (1.0.0)

 assets/javascripts/templates/pages/about_tmpl.coffee |  2 +-
 lib/docs/scrapers/crystal.rb                         | 20 +++++++++-----------
 2 files changed, 10 insertions(+), 12 deletions(-)
---
diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee 
b/assets/javascripts/templates/pages/about_tmpl.coffee
index fdd6d275..6b9f7006 100644
--- a/assets/javascripts/templates/pages/about_tmpl.coffee
+++ b/assets/javascripts/templates/pages/about_tmpl.coffee
@@ -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'
   ], [
diff --git a/lib/docs/scrapers/crystal.rb b/lib/docs/scrapers/crystal.rb
index 998d64e0..8dd794ef 100644
--- a/lib/docs/scrapers/crystal.rb
+++ b/lib/docs/scrapers/crystal.rb
@@ -19,24 +19,22 @@ module Docs
         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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]