Showing the changes to lib (1 of 1 file). Show all
Unified · Split
| @@ -1,13 +1,13 @@ | |||
| 1 | module Docs | 1 | module Docs |
| 2 | class Git < UrlScraper | 2 | class Git < UrlScraper |
| 3 | self.type = 'git' | 3 | self.type = 'git' |
| 4 | self.version = '2.0.0' | 4 | self.version = '2.0.1' |
| 5 | self.base_url = 'http://git-scm.com/docs' | 5 | self.base_url = 'http://git-scm.com/docs' |
| 6 | self.initial_paths = %w(/git.html) | 6 | self.initial_paths = %w(/git.html) |
| 7 | 7 | ||
| 8 | html_filters.push 'git/clean_html', 'git/entries' | 8 | html_filters.push 'git/clean_html', 'git/entries' |
| 9 | 9 | ||
| 10 | options[:container] = ->(filter) { filter.root_page? ? '#main' : '.man-page' } | 10 | options[:container] = ->(filter) { filter.root_page? ? '#main' : '.man-page, #main' } |
| 11 | options[:follow_links] = ->(filter) { filter.root_page? } | 11 | options[:follow_links] = ->(filter) { filter.root_page? } |
| 12 | options[:only_patterns] = [/\A\/git\-/] | 12 | options[:only_patterns] = [/\A\/git\-/] |
| 13 | 13 | ||