From 33fc830ea510aaf2867368ee0e01b0a18d1519f8 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Mon, 15 Jan 2024 17:48:28 +0100 Subject: [PATCH] Update Crystal documentation (1.11.1) --- lib/docs/filters/crystal/clean_html.rb | 2 ++ lib/docs/scrapers/crystal.rb | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/docs/filters/crystal/clean_html.rb b/lib/docs/filters/crystal/clean_html.rb index 2d951f08..bf8d62a2 100644 --- a/lib/docs/filters/crystal/clean_html.rb +++ b/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| diff --git a/lib/docs/scrapers/crystal.rb b/lib/docs/scrapers/crystal.rb index fefe62d6..ed26c585 100644 --- a/lib/docs/scrapers/crystal.rb +++ b/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 - © 2012–2023 Manas Technology Solutions.
+ © 2012–2024 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0. HTML end