History

Update Meteor documentation (1.4.1, 1.3.5)

Thibaut Courouble committed 10 years ago

Commit 51944f61 parent 20d41b12 files · +9 −2Browse files

Unified · Split

2 files
  1. lib/docs/filters/meteor/entries.rb +1 −0
  2. lib/docs/scrapers/meteor.rb +8 −2
lib/docs/filters/meteor/entries.rb+1−0
@@ -9,6 +9,7 @@ module Docs · 8 unmodified lines
9 if subpath.start_with?('api')9 if subpath.start_with?('api')
10 name10 name
11 else11 else
12 return 'Guide: Blaze' if base_url.host == 'blazejs.org' && subpath.start_with?('guide')
12 type = at_css('.item-toc.current').ancestors('li').first.at_css('.heading-toc').try(:content) || 'Guide'13 type = at_css('.item-toc.current').ancestors('li').first.at_css('.heading-toc').try(:content) || 'Guide'
13 type.prepend 'Guide: ' if base_url.host == 'guide.meteor.com' && type != 'Guide'14 type.prepend 'Guide: ' if base_url.host == 'guide.meteor.com' && type != 'Guide'
14 type15 type
lib/docs/scrapers/meteor.rb+8−2
@@ -19,14 +19,20 @@ module Docs · 18 unmodified lines
19 writing-packages.html19 writing-packages.html
20 )20 )
21 21
22 options[:fix_urls] = ->(url) {
23 url.sub! 'https://docs.meteor.com/api/blaze.html', 'http://blazejs.org/api/blaze.html'
24 url.sub! 'https://docs.meteor.com/api/templates.html', 'http://blazejs.org/api/templates.html'
25 url
26 }
27
22 options[:attribution] = <<-HTML28 options[:attribution] = <<-HTML
23 &copy; 2011&ndash;2016 Meteor Development Group<br>29 &copy; 2011&ndash;2016 Meteor Development Group<br>
24 Licensed under the MIT License.30 Licensed under the MIT License.
25 HTML31 HTML
26 32
27 version '1.4' do33 version '1.4' do
28 self.release = '1.4.0'34 self.release = '1.4.1'
29 self.base_urls = ['https://docs.meteor.com/', 'https://guide.meteor.com/']35 self.base_urls = ['https://docs.meteor.com/', 'https://guide.meteor.com/', 'http://blazejs.org/']
30 end36 end
31 37
32 version '1.3' do38 version '1.3' do