|
|
@ -1,9 +1,9 @@
|
|
|
|
module Docs
|
|
|
|
module Docs
|
|
|
|
class Bash < UrlScraper
|
|
|
|
class Bash < UrlScraper
|
|
|
|
self.type = 'bash'
|
|
|
|
self.type = 'bash'
|
|
|
|
self.release = '5.0'
|
|
|
|
self.release = '5.1'
|
|
|
|
self.base_url = 'https://www.gnu.org/software/bash/manual'
|
|
|
|
self.base_url = 'https://www.gnu.org/software/bash/manual/html_node'
|
|
|
|
self.root_path = '/html_node/index.html'
|
|
|
|
self.root_path = 'index.html'
|
|
|
|
self.links = {
|
|
|
|
self.links = {
|
|
|
|
home: 'https://www.gnu.org/software/bash/',
|
|
|
|
home: 'https://www.gnu.org/software/bash/',
|
|
|
|
code: 'http://git.savannah.gnu.org/cgit/bash.git'
|
|
|
|
code: 'http://git.savannah.gnu.org/cgit/bash.git'
|
|
|
@ -11,8 +11,6 @@ module Docs
|
|
|
|
|
|
|
|
|
|
|
|
html_filters.push 'bash/entries', 'bash/clean_html'
|
|
|
|
html_filters.push 'bash/entries', 'bash/clean_html'
|
|
|
|
|
|
|
|
|
|
|
|
options[:only_patterns] = [/\/html_node\//]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
options[:attribution] = <<-HTML
|
|
|
|
options[:attribution] = <<-HTML
|
|
|
|
Copyright © 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.<br>
|
|
|
|
Copyright © 2000, 2001, 2002, 2007, 2008 Free Software Foundation, Inc.<br>
|
|
|
|
Licensed under the GNU Free Documentation License.
|
|
|
|
Licensed under the GNU Free Documentation License.
|
|
|
|