History

Merge pull request #2298 from spuun/crystal-1.13.1

Crystal 1.13.1

Simon Legner committed 2 years ago

Commit a49e13d2 parents cebf9fa a8367581 file · +7 −1Browse files

Unified · Split

lib/docs/scrapers/crystal.rb+7−1
@@ -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.11.1'5 self.release = '1.13.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]}/",
@@ -19,6 +19,12 @@ module Docs · 10 unmodified lines
19 19
20 html_filters.push 'crystal/entries', 'crystal/clean_html'20 html_filters.push 'crystal/entries', 'crystal/clean_html'
21 21
22 options[:skip_patterns] = [
23 %r{\ACrystal/System/},
24 %r{\AIO/Evented.html\z},
25 %r{\ARegex/PCRE2.html\z}
26 ]
27
22 options[:attribution] = ->(filter) {28 options[:attribution] = ->(filter) {
23 if filter.current_url.path.start_with?('/reference/')29 if filter.current_url.path.start_with?('/reference/')
24 <<-HTML30 <<-HTML

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t