History

Update Crystal documentation (1.11.1)

Simon Legner committed 2 years ago

Commit 33fc8301 parent 30a8b162 files · +4 −2Browse files

Unified · Split

2 files
  1. lib/docs/filters/crystal/clean_html.rb +2 −0
  2. lib/docs/scrapers/crystal.rb +2 −2
lib/docs/filters/crystal/clean_html.rb+2−0
@@ -23,6 +23,8 @@ module Docs · 22 unmodified lines
2323
2424 at_css('h1 + p').remove if current_url.path == "/api/#{release}/index.html"
2525
26+ css('a[href="https://manas.tech/"]').remove
27+
2628 css('.method-permalink', '.doc + br', 'hr', 'a > br', 'div + br').remove
2729
2830 css('pre > code').each do |node|
lib/docs/scrapers/crystal.rb+2−2
@@ -2,7 +2,7 @@ module Docs · 1 unmodified line
22 class Crystal < UrlScraper
33 include MultipleBaseUrls
44 self.type = 'crystal'
5− self.release = '1.10.1'
5+ self.release = '1.11.1'
66 self.base_urls = [
77 "https://crystal-lang.org/api/#{release}/",
88 "https://crystal-lang.org/reference/#{release[0..2]}/",
@@ -28,7 +28,7 @@ module Docs · 19 unmodified lines
2828 HTML
2929 else
3030 <<-HTML
31− &copy; 2012&ndash;2023 Manas Technology Solutions.<br>
31+ &copy; 2012&ndash;2024 Manas Technology Solutions.<br>
3232 Licensed under the Apache License, Version 2.0.
3333 HTML
3434 end