History

Update Angular documentation (2.0.0rc3)

Thibaut Courouble committed 10 years ago

Commit 77ea68b1 parent d6a5e422 files · +8 −4Browse files

Unified · Split

2 files
  1. lib/docs/filters/angular/entries.rb +4 −0
  2. lib/docs/scrapers/angular.rb +4 −4
lib/docs/filters/angular/entries.rb+4−0
@@ -20,6 +20,10 @@ module Docs · 19 unmodified lines
2020 def get_type
2121 if slug.start_with?('guide/')
2222 'Guide'
23+ elsif slug.start_with?('cookbook/')
24+ 'Cookbook'
25+ elsif slug == 'glossary'
26+ 'Guide'
2327 else
2428 type = at_css('.is-nav-title-selected').content.strip
2529 type.remove! ' Reference'
lib/docs/scrapers/angular.rb+4−4
@@ -18,9 +18,9 @@ module Docs · 17 unmodified lines
1818 guide/style-guide.html)
1919
2020 options[:replace_paths] = {
21− 'testing/index.html' => 'guide/testing.html',
22− 'glossary.html' => 'guide/glossary.html',
23− 'tutorial' => 'tutorial/'
21+ 'testing/index.html' => 'guide/testing.html',
22+ 'guide/glossary.html' => 'glossary.html',
23+ 'tutorial' => 'tutorial/'
2424 }
2525
2626 options[:fix_urls] = -> (url) do
@@ -42,7 +42,7 @@ module Docs · 15 unmodified lines
4242 end
4343
4444 version '2.0 TypeScript' do
45− self.release = '2.0.0rc1'
45+ self.release = '2.0.0rc3'
4646 self.base_url = "https://angular.io/docs/ts/latest/"
4747 end
4848