From 51944f6cefee59d6b70a1348942146221efbd9e2 Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sat, 1 Oct 2016 10:57:30 -0400 Subject: [PATCH] Update Meteor documentation (1.4.1, 1.3.5) --- lib/docs/filters/meteor/entries.rb | 1 + lib/docs/scrapers/meteor.rb | 10 ++++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/docs/filters/meteor/entries.rb b/lib/docs/filters/meteor/entries.rb index 0b339df3..3e77a900 100644 --- a/lib/docs/filters/meteor/entries.rb +++ b/lib/docs/filters/meteor/entries.rb @@ -9,6 +9,7 @@ module Docs if subpath.start_with?('api') name else + return 'Guide: Blaze' if base_url.host == 'blazejs.org' && subpath.start_with?('guide') type = at_css('.item-toc.current').ancestors('li').first.at_css('.heading-toc').try(:content) || 'Guide' type.prepend 'Guide: ' if base_url.host == 'guide.meteor.com' && type != 'Guide' type diff --git a/lib/docs/scrapers/meteor.rb b/lib/docs/scrapers/meteor.rb index 5d0cddf9..f2952e16 100644 --- a/lib/docs/scrapers/meteor.rb +++ b/lib/docs/scrapers/meteor.rb @@ -19,14 +19,20 @@ module Docs writing-packages.html ) + options[:fix_urls] = ->(url) { + url.sub! 'https://docs.meteor.com/api/blaze.html', 'http://blazejs.org/api/blaze.html' + url.sub! 'https://docs.meteor.com/api/templates.html', 'http://blazejs.org/api/templates.html' + url + } + options[:attribution] = <<-HTML © 2011–2016 Meteor Development Group
Licensed under the MIT License. HTML version '1.4' do - self.release = '1.4.0' - self.base_urls = ['https://docs.meteor.com/', 'https://guide.meteor.com/'] + self.release = '1.4.1' + self.base_urls = ['https://docs.meteor.com/', 'https://guide.meteor.com/', 'http://blazejs.org/'] end version '1.3' do