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
99 if subpath.start_with?('api')
1010 name
1111 else
12+ return 'Guide: Blaze' if base_url.host == 'blazejs.org' && subpath.start_with?('guide')
1213 type = at_css('.item-toc.current').ancestors('li').first.at_css('.heading-toc').try(:content) || 'Guide'
1314 type.prepend 'Guide: ' if base_url.host == 'guide.meteor.com' && type != 'Guide'
1415 type
lib/docs/scrapers/meteor.rb+8−2
@@ -19,14 +19,20 @@ module Docs · 18 unmodified lines
1919 writing-packages.html
2020 )
2121
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+
2228 options[:attribution] = <<-HTML
2329 &copy; 2011&ndash;2016 Meteor Development Group<br>
2430 Licensed under the MIT License.
2531 HTML
2632
2733 version '1.4' do
28− self.release = '1.4.0'
29− self.base_urls = ['https://docs.meteor.com/', 'https://guide.meteor.com/']
34+ self.release = '1.4.1'
35+ self.base_urls = ['https://docs.meteor.com/', 'https://guide.meteor.com/', 'http://blazejs.org/']
3036 end
3137
3238 version '1.3' do