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
22 class Angular
33 class EntriesFilter < Docs::EntriesFilter
44 def get_name
5− name = at_css('header.hero h1').content.strip
5+ 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+
611 name = name.split(':').first
712
813 if mod
lib/docs/scrapers/angular.rb+1−1
@@ -42,7 +42,7 @@ module Docs · 41 unmodified lines
4242 end
4343
4444 version '2.0 TypeScript' do
45− self.release = '2.0.0rc5'
45+ self.release = '2.0.0rc6'
4646 self.base_url = "https://angular.io/docs/ts/latest/"
4747 end
4848