History

Update Crystal documentation (0.20.3)

Thibaut Courouble committed 9 years ago

Commit 21b09fd1 parent af6bc872 files · +2 −2Browse files

Unified · Split

2 files
  1. lib/docs/filters/crystal/clean_html.rb +1 −1
  2. lib/docs/scrapers/crystal.rb +1 −1
lib/docs/filters/crystal/clean_html.rb+1−1
@@ -7,7 +7,7 @@ module Docs · 6 unmodified lines
7 end7 end
8 8
9 def book9 def book
10 @doc = at_css('.page-inner > section')10 @doc = at_css('.page-inner section')
11 11
12 css('pre > code').each do |node|12 css('pre > code').each do |node|
13 node.parent['data-language'] = node['class'][/lang-(\w+)/, 1] if node['class']13 node.parent['data-language'] = node['class'][/lang-(\w+)/, 1] if node['class']
lib/docs/scrapers/crystal.rb+1−1
@@ -1,7 +1,7 @@
1module Docs1module Docs
2 class Crystal < UrlScraper2 class Crystal < UrlScraper
3 self.type = 'crystal'3 self.type = 'crystal'
4 self.release = '0.20.0'4 self.release = '0.20.3'
5 self.base_url = 'https://crystal-lang.org/'5 self.base_url = 'https://crystal-lang.org/'
6 self.root_path = "api/#{release}/index.html"6 self.root_path = "api/#{release}/index.html"
7 self.initial_paths = %w(docs/index.html)7 self.initial_paths = %w(docs/index.html)