trio.rb 636 B

123456789101112131415161718192021222324252627
  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[:only_patterns] = [
  13. /reference-core/,
  14. /reference-io/,
  15. /reference-testing/,
  16. /reference-hazmat/,
  17. ]
  18. options[:attribution] = <<-HTML
  19. &copy; 2017-2019 Nathaniel Smith<br>
  20. Licensed under MIT and Apache2.
  21. HTML
  22. end
  23. end