mirror of https://github.com/freeCodeCamp/devdocs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
591 B
22 lines
591 B
module Docs
|
|
class Man < UrlScraper
|
|
self.name = 'Debian man pages'
|
|
self.slug = 'man'
|
|
self.type = 'man'
|
|
self.base_url = 'https://manpages.debian.org/testing/'
|
|
self.links = {
|
|
home: 'https://manpages.debian.org/',
|
|
code: 'https://github.com/Debian/debiman/'
|
|
}
|
|
|
|
html_filters.push 'man/entries', 'man/clean_html', 'title'
|
|
|
|
options[:container] = '#content'
|
|
options[:skip_patterns] = [/src:/, /en.gz$/, /[1-9]$/, /^lib/]
|
|
|
|
options[:attribution] = <<-HTML
|
|
Debian Manpages generated using https://github.com/Debian/debiman/
|
|
HTML
|
|
end
|
|
end
|