Update Angular.js documentation (1.3.1)

pull/139/head
Thibaut 10 years ago
parent 144581f951
commit 4908b827c1

@ -2,8 +2,8 @@ module Docs
class Angular class Angular
class CleanUrlsFilter < Filter class CleanUrlsFilter < Filter
def call def call
html.gsub! 'angularjs.org/1.3.0/docs/partials/api/', 'angularjs.org/1.3.0/docs/api/' html.gsub! 'angularjs.org/1.3.1/docs/partials/api/', 'angularjs.org/1.3.1/docs/api/'
html.gsub! %r{angularjs.org/1.3.0/docs/api/(.+?)\.html}, 'angularjs.org/1.3.0/docs/api/\1' html.gsub! %r{angularjs.org/1.3.1/docs/api/(.+?)\.html}, 'angularjs.org/1.3.1/docs/api/\1'
html html
end end
end end

@ -3,8 +3,8 @@ module Docs
self.name = 'Angular.js' self.name = 'Angular.js'
self.slug = 'angular' self.slug = 'angular'
self.type = 'angular' self.type = 'angular'
self.version = '1.3.0' self.version = '1.3.1'
self.base_url = 'https://code.angularjs.org/1.3.0/docs/partials/api/' self.base_url = 'https://code.angularjs.org/1.3.1/docs/partials/api/'
html_filters.push 'angular/clean_html', 'angular/entries', 'title' html_filters.push 'angular/clean_html', 'angular/entries', 'title'
text_filters.push 'angular/clean_urls' text_filters.push 'angular/clean_urls'
@ -52,7 +52,7 @@ module Docs
def get_root_page_body def get_root_page_body
require 'capybara' require 'capybara'
Capybara.current_driver = :selenium Capybara.current_driver = :selenium
Capybara.visit('https://code.angularjs.org/1.3.0/docs/api') Capybara.visit('https://code.angularjs.org/1.3.1/docs/api')
Capybara.find('.side-navigation')['innerHTML'] Capybara.find('.side-navigation')['innerHTML']
end end
end end

Loading…
Cancel
Save