From f9dfcf4504d483281bcc6eb7630f4d3390846a56 Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sun, 4 Sep 2016 10:28:25 -0400 Subject: [PATCH] Update Angular documentation (2.0.0rc6) Closes #472. --- lib/docs/filters/angular/entries.rb | 7 ++++++- lib/docs/scrapers/angular.rb | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/docs/filters/angular/entries.rb b/lib/docs/filters/angular/entries.rb index 9f22e923..63c1c797 100644 --- a/lib/docs/filters/angular/entries.rb +++ b/lib/docs/filters/angular/entries.rb @@ -2,7 +2,12 @@ module Docs class Angular class EntriesFilter < Docs::EntriesFilter def get_name - name = at_css('header.hero h1').content.strip + if slug.start_with?('tutorial') || slug.start_with?('guide') + name = at_css('.nav-list-item.is-selected').content.strip + else + name = at_css('header.hero h1').content.strip + end + name = name.split(':').first if mod diff --git a/lib/docs/scrapers/angular.rb b/lib/docs/scrapers/angular.rb index 810aeb10..30bc4afc 100644 --- a/lib/docs/scrapers/angular.rb +++ b/lib/docs/scrapers/angular.rb @@ -42,7 +42,7 @@ module Docs end version '2.0 TypeScript' do - self.release = '2.0.0rc5' + self.release = '2.0.0rc6' self.base_url = "https://angular.io/docs/ts/latest/" end