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
23 23
24 at_css('h1 + p').remove if current_url.path == "/api/#{release}/index.html"24 at_css('h1 + p').remove if current_url.path == "/api/#{release}/index.html"
25 25
26 css('a[href="https://manas.tech/"]').remove
27
26 css('.method-permalink', '.doc + br', 'hr', 'a > br', 'div + br').remove28 css('.method-permalink', '.doc + br', 'hr', 'a > br', 'div + br').remove
27 29
28 css('pre > code').each do |node|30 css('pre > code').each do |node|
lib/docs/scrapers/crystal.rb+2−2
@@ -2,7 +2,7 @@ module Docs · 1 unmodified line
2 class Crystal < UrlScraper2 class Crystal < UrlScraper
3 include MultipleBaseUrls3 include MultipleBaseUrls
4 self.type = 'crystal'4 self.type = 'crystal'
5 self.release = '1.10.1'5 self.release = '1.11.1'
6 self.base_urls = [6 self.base_urls = [
7 "https://crystal-lang.org/api/#{release}/",7 "https://crystal-lang.org/api/#{release}/",
8 "https://crystal-lang.org/reference/#{release[0..2]}/",8 "https://crystal-lang.org/reference/#{release[0..2]}/",
@@ -28,7 +28,7 @@ module Docs · 19 unmodified lines
28 HTML28 HTML
29 else29 else
30 <<-HTML30 <<-HTML
31 &copy; 2012&ndash;2023 Manas Technology Solutions.<br>31 &copy; 2012&ndash;2024 Manas Technology Solutions.<br>
32 Licensed under the Apache License, Version 2.0.32 Licensed under the Apache License, Version 2.0.
33 HTML33 HTML
34 end34 end