|
@@ -0,0 +1,24 @@
|
|
|
|
|
+module Docs
|
|
|
|
|
+ class Trio < UrlScraper
|
|
|
|
|
+ self.type = 'simple'
|
|
|
|
|
+ self.release = '0.11'
|
|
|
|
|
+ self.base_url = 'https://trio.readthedocs.io/en/latest/'
|
|
|
|
|
+ self.root_path = 'index.html'
|
|
|
|
|
+ self.links = {
|
|
|
|
|
+ home: 'https://trio.readthedocs.io/',
|
|
|
|
|
+ code: 'https://github.com/python-trio/trio'
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ html_filters.push 'trio/entries', 'trio/clean_html'
|
|
|
|
|
+
|
|
|
|
|
+ options[:attribution] = <<-HTML
|
|
|
|
|
+ HTML
|
|
|
|
|
+ options[:only_patterns] = [
|
|
|
|
|
+ /reference-core/,
|
|
|
|
|
+ /reference-io/,
|
|
|
|
|
+ /reference-testing/,
|
|
|
|
|
+ /reference-hazmat/,
|
|
|
|
|
+ ]
|
|
|
|
|
+
|
|
|
|
|
+ end
|
|
|
|
|
+end
|