|
|
@ -4,7 +4,7 @@ module Docs
|
|
|
|
self.slug = 'angular'
|
|
|
|
self.slug = 'angular'
|
|
|
|
self.type = 'angular'
|
|
|
|
self.type = 'angular'
|
|
|
|
self.version = '1.3.4'
|
|
|
|
self.version = '1.3.4'
|
|
|
|
self.base_url = 'https://code.angularjs.org/1.3.4/docs/partials/api/'
|
|
|
|
self.base_url = "https://code.angularjs.org/#{version}/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.4/docs/api')
|
|
|
|
Capybara.visit("https://code.angularjs.org/#{self.class.version}/docs/api")
|
|
|
|
Capybara.find('.side-navigation')['innerHTML']
|
|
|
|
Capybara.find('.side-navigation')['innerHTML']
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|