History

Update Git documentation (2.0.1)

Thibaut committed 12 years ago

Commit 42e0cfe1 parent 90331451 file · +2 −2Browse files

Showing the changes to lib (1 of 1 file). Show all

Unified · Split

lib/docs/scrapers/git.rb+2−2
@@ -1,13 +1,13 @@
1module Docs1module Docs
2 class Git < UrlScraper2 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