|
|
@ -1,7 +1,7 @@
|
|
|
|
module Docs
|
|
|
|
module Docs
|
|
|
|
class Git < UrlScraper
|
|
|
|
class Git < UrlScraper
|
|
|
|
self.type = 'git'
|
|
|
|
self.type = 'git'
|
|
|
|
self.version = '2.6.1'
|
|
|
|
self.version = '2.7.0'
|
|
|
|
self.base_url = 'http://git-scm.com/docs'
|
|
|
|
self.base_url = 'http://git-scm.com/docs'
|
|
|
|
self.initial_paths = %w(/git.html)
|
|
|
|
self.initial_paths = %w(/git.html)
|
|
|
|
self.links = {
|
|
|
|
self.links = {
|
|
|
@ -16,7 +16,7 @@ module Docs
|
|
|
|
options[:only_patterns] = [/\A\/git\-/]
|
|
|
|
options[:only_patterns] = [/\A\/git\-/]
|
|
|
|
|
|
|
|
|
|
|
|
options[:attribution] = <<-HTML
|
|
|
|
options[:attribution] = <<-HTML
|
|
|
|
© 2005–2015 Linus Torvalds and others<br>
|
|
|
|
© 2005–2016 Linus Torvalds and others<br>
|
|
|
|
Licensed under the GNU General Public License version 2.
|
|
|
|
Licensed under the GNU General Public License version 2.
|
|
|
|
HTML
|
|
|
|
HTML
|
|
|
|
end
|
|
|
|
end
|
|
|
|