Unified · Split
| @@ -20,6 +20,10 @@ module Docs · 19 unmodified lines | |||
| 20 | def get_type | 20 | def get_type |
| 21 | if slug.start_with?('guide/') | 21 | if slug.start_with?('guide/') |
| 22 | 'Guide' | 22 | 'Guide' |
| 23 | elsif slug.start_with?('cookbook/') | ||
| 24 | 'Cookbook' | ||
| 25 | elsif slug == 'glossary' | ||
| 26 | 'Guide' | ||
| 23 | else | 27 | else |
| 24 | type = at_css('.is-nav-title-selected').content.strip | 28 | type = at_css('.is-nav-title-selected').content.strip |
| 25 | type.remove! ' Reference' | 29 | type.remove! ' Reference' |
| @@ -18,9 +18,9 @@ module Docs · 17 unmodified lines | |||
| 18 | guide/style-guide.html) | 18 | guide/style-guide.html) |
| 19 | 19 | ||
| 20 | options[:replace_paths] = { | 20 | options[:replace_paths] = { |
| 21 | 'testing/index.html' => 'guide/testing.html', | 21 | 'testing/index.html' => 'guide/testing.html', |
| 22 | 'glossary.html' => 'guide/glossary.html', | 22 | 'guide/glossary.html' => 'glossary.html', |
| 23 | 'tutorial' => 'tutorial/' | 23 | 'tutorial' => 'tutorial/' |
| 24 | } | 24 | } |
| 25 | 25 | ||
| 26 | options[:fix_urls] = -> (url) do | 26 | options[:fix_urls] = -> (url) do |
| @@ -42,7 +42,7 @@ module Docs · 15 unmodified lines | |||
| 42 | end | 42 | end |
| 43 | 43 | ||
| 44 | version '2.0 TypeScript' do | 44 | version '2.0 TypeScript' do |
| 45 | self.release = '2.0.0rc1' | 45 | self.release = '2.0.0rc3' |
| 46 | self.base_url = "https://angular.io/docs/ts/latest/" | 46 | self.base_url = "https://angular.io/docs/ts/latest/" |
| 47 | end | 47 | end |
| 48 | 48 | ||