Unified · Split
| @@ -9,6 +9,7 @@ module Docs · 8 unmodified lines | |||
| 9 | if subpath.start_with?('api') | 9 | if subpath.start_with?('api') |
| 10 | name | 10 | name |
| 11 | else | 11 | 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 | type | 15 | type |
| @@ -19,14 +19,20 @@ module Docs · 18 unmodified lines | |||
| 19 | writing-packages.html | 19 | 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] = <<-HTML | 28 | options[:attribution] = <<-HTML |
| 23 | © 2011–2016 Meteor Development Group<br> | 29 | © 2011–2016 Meteor Development Group<br> |
| 24 | Licensed under the MIT License. | 30 | Licensed under the MIT License. |
| 25 | HTML | 31 | HTML |
| 26 | 32 | ||
| 27 | version '1.4' do | 33 | 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 | end | 36 | end |
| 31 | 37 | ||
| 32 | version '1.3' do | 38 | version '1.3' do |