trio.rb 554 B

123456789101112131415161718192021222324
  1. module Docs
  2. class Trio < UrlScraper
  3. self.type = 'simple'
  4. self.release = '0.11'
  5. self.base_url = 'https://trio.readthedocs.io/en/latest/'
  6. self.root_path = 'index.html'
  7. self.links = {
  8. home: 'https://trio.readthedocs.io/',
  9. code: 'https://github.com/python-trio/trio'
  10. }
  11. html_filters.push 'trio/entries', 'trio/clean_html'
  12. options[:attribution] = <<-HTML
  13. HTML
  14. options[:only_patterns] = [
  15. /reference-core/,
  16. /reference-io/,
  17. /reference-testing/,
  18. /reference-hazmat/,
  19. ]
  20. end
  21. end