Unified · Split
| @@ -31,10 +31,14 @@ module Docs · 30 unmodified lines | |||
| 31 | end | 31 | end |
| 32 | 32 | ||
| 33 | options[:only_patterns] = [%r{\Aapi}, %r{\Aguide}] | 33 | options[:only_patterns] = [%r{\Aapi}, %r{\Aguide}] |
| 34 | options[:skip] = %w(api/ng.html) | 34 | options[:skip] = %w(api/ng.html guide/tutorial/step_14.html guide/api.html guide/tutorial/.html) |
| 35 | options[:skip_patterns] = [ | ||
| 36 | /error\/\$compile/, | ||
| 37 | /misc/, | ||
| 38 | ] | ||
| 35 | 39 | ||
| 36 | options[:attribution] = <<-HTML | 40 | options[:attribution] = <<-HTML |
| 37 | © 2010–2017 Google, Inc.<br> | 41 | © 2010–2018 Google, Inc.<br> |
| 38 | Licensed under the Creative Commons Attribution License 4.0. | 42 | Licensed under the Creative Commons Attribution License 4.0. |
| 39 | HTML | 43 | HTML |
| 40 | 44 | ||
| @@ -45,8 +49,13 @@ module Docs · 4 unmodified lines | |||
| 45 | capybara.execute_script("return document.querySelector('.side-navigation').innerHTML") | 49 | capybara.execute_script("return document.querySelector('.side-navigation').innerHTML") |
| 46 | end | 50 | end |
| 47 | 51 | ||
| 52 | version '1.7' do | ||
| 53 | self.release = '1.7.8' | ||
| 54 | self.base_url = "https://code.angularjs.org/#{release}/docs/partials/" | ||
| 55 | end | ||
| 56 | |||
| 48 | version '1.6' do | 57 | version '1.6' do |
| 49 | self.release = '1.6.6' | 58 | self.release = '1.6.9' |
| 50 | self.base_url = "https://code.angularjs.org/#{release}/docs/partials/" | 59 | self.base_url = "https://code.angularjs.org/#{release}/docs/partials/" |
| 51 | end | 60 | end |
| 52 | 61 | ||