History

Update Angular documentation (2.0.0rc6)

Closes #472.

Thibaut Courouble committed 10 years ago

Commit f9dfcf41 parent d2d44232 files · +7 −2Browse files

Unified · Split

2 files
  1. lib/docs/filters/angular/entries.rb +6 −1
  2. lib/docs/scrapers/angular.rb +1 −1
lib/docs/filters/angular/entries.rb+6−1
@@ -2,7 +2,12 @@ module Docs · 1 unmodified line
2 class Angular2 class Angular
3 class EntriesFilter < Docs::EntriesFilter3 class EntriesFilter < Docs::EntriesFilter
4 def get_name4 def get_name
5 name = at_css('header.hero h1').content.strip5 if slug.start_with?('tutorial') || slug.start_with?('guide')
6 name = at_css('.nav-list-item.is-selected').content.strip
7 else
8 name = at_css('header.hero h1').content.strip
9 end
10
6 name = name.split(':').first11 name = name.split(':').first
7 12
8 if mod13 if mod
lib/docs/scrapers/angular.rb+1−1
@@ -42,7 +42,7 @@ module Docs · 41 unmodified lines
42 end42 end
43 43
44 version '2.0 TypeScript' do44 version '2.0 TypeScript' do
45 self.release = '2.0.0rc5'45 self.release = '2.0.0rc6'
46 self.base_url = "https://angular.io/docs/ts/latest/"46 self.base_url = "https://angular.io/docs/ts/latest/"
47 end47 end
48 48