devdocs/lib/docs/scrapers/man.rb
2024-08-20 21:07:23 +02:00

16 lines
412 B
Ruby

module Docs
class Man < FileScraper
self.name = 'Linux man pages'
self.type = 'simple'
self.slug = 'man'
self.base_url = "https://man7.org/linux/man-pages/"
self.initial_paths = %w(dir_by_project.html)
self.links = {
home: 'https://man7.org/linux/man-pages/',
}
html_filters.push 'man/entries', 'man/clean_html'
options[:attribution] = <<-HTML
...
HTML
end
end