From 2faf0acebf8eafb88909b7f8ad8c0f7cfb0d3787 Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Mon, 2 Jan 2017 14:26:47 -0500 Subject: [PATCH] Update Angular.js documentation (1.6.1, 1.5.10, 1.4.14, 1.3.20, 1.2.32) --- lib/docs/scrapers/angularjs.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/docs/scrapers/angularjs.rb b/lib/docs/scrapers/angularjs.rb index 3858947b..8d4410ce 100644 --- a/lib/docs/scrapers/angularjs.rb +++ b/lib/docs/scrapers/angularjs.rb @@ -4,7 +4,7 @@ module Docs self.slug = 'angularjs' self.type = 'angularjs' self.root_path = 'api.html' - self.initial_paths = %w(guide.html) + self.initial_paths = %w(guide.html guide/controller.html) html_filters.push 'angularjs/clean_html', 'angularjs/entries', 'title' text_filters.push 'angularjs/clean_urls' @@ -45,8 +45,13 @@ module Docs capybara.execute_script("return document.querySelector('.side-navigation').innerHTML") end + version '1.6' do + self.release = '1.6.1' + self.base_url = "https://code.angularjs.org/#{release}/docs/partials/" + end + version '1.5' do - self.release = '1.5.9' + self.release = '1.5.10' self.base_url = "https://code.angularjs.org/#{release}/docs/partials/" end