[devdocsgjs/main: 1151/1867] crystal: provide only latest release 0.35.1




commit 4288fe51044e122b119059509292ea13c7408aa6
Author: Simon Legner <Simon Legner gmail com>
Date:   Sat Nov 14 21:46:11 2020 +0100

    crystal: provide only latest release 0.35.1

 assets/javascripts/templates/pages/about_tmpl.coffee |  2 +-
 lib/docs/filters/crystal/entries.rb                  |  2 +-
 lib/docs/scrapers/crystal.rb                         | 19 +++----------------
 3 files changed, 5 insertions(+), 18 deletions(-)
---
diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee 
b/assets/javascripts/templates/pages/about_tmpl.coffee
index 8ac93ed4..c9983402 100644
--- a/assets/javascripts/templates/pages/about_tmpl.coffee
+++ b/assets/javascripts/templates/pages/about_tmpl.coffee
@@ -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'
   ], [
diff --git a/lib/docs/filters/crystal/entries.rb b/lib/docs/filters/crystal/entries.rb
index 3a54e3c6..de2f91a0 100644
--- a/lib/docs/filters/crystal/entries.rb
+++ b/lib/docs/filters/crystal/entries.rb
@@ -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
diff --git a/lib/docs/scrapers/crystal.rb b/lib/docs/scrapers/crystal.rb
index 0a14ab43..4b106167 100644
--- a/lib/docs/scrapers/crystal.rb
+++ b/lib/docs/scrapers/crystal.rb
@@ -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}\//]


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