Selaa lähdekoodia

Update Crystal documentation (1.11.1)

Simon Legner 1 vuosi sitten
vanhempi
commit
33fc830ea5
2 muutettua tiedostoa jossa 4 lisäystä ja 2 poistoa
  1. 2 0
      lib/docs/filters/crystal/clean_html.rb
  2. 2 2
      lib/docs/scrapers/crystal.rb

+ 2 - 0
lib/docs/filters/crystal/clean_html.rb

@@ -23,6 +23,8 @@ module Docs
 
         at_css('h1 + p').remove if current_url.path == "/api/#{release}/index.html"
 
+        css('a[href="https://manas.tech/"]').remove
+
         css('.method-permalink', '.doc + br', 'hr', 'a > br', 'div + br').remove
 
         css('pre > code').each do |node|

+ 2 - 2
lib/docs/scrapers/crystal.rb

@@ -2,7 +2,7 @@ module Docs
   class Crystal < UrlScraper
     include MultipleBaseUrls
     self.type = 'crystal'
-    self.release = '1.10.1'
+    self.release = '1.11.1'
     self.base_urls = [
       "https://crystal-lang.org/api/#{release}/",
       "https://crystal-lang.org/reference/#{release[0..2]}/",
@@ -28,7 +28,7 @@ module Docs
         HTML
       else
         <<-HTML
-          &copy; 2012&ndash;2023 Manas Technology Solutions.<br>
+          &copy; 2012&ndash;2024 Manas Technology Solutions.<br>
           Licensed under the Apache License, Version 2.0.
         HTML
       end