man.rb 591 B

123456789101112131415161718192021
  1. module Docs
  2. class Man < UrlScraper
  3. self.name = 'Debian man pages'
  4. self.slug = 'man'
  5. self.type = 'man'
  6. self.base_url = 'https://manpages.debian.org/testing/'
  7. self.links = {
  8. home: 'https://manpages.debian.org/',
  9. code: 'https://github.com/Debian/debiman/'
  10. }
  11. html_filters.push 'man/entries', 'man/clean_html', 'title'
  12. options[:container] = '#content'
  13. options[:skip_patterns] = [/src:/, /en.gz$/, /[1-9]$/, /^lib/]
  14. options[:attribution] = <<-HTML
  15. Debian Manpages generated using https://github.com/Debian/debiman/
  16. HTML
  17. end
  18. end