mirror of https://github.com/freeCodeCamp/devdocs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
554 B
25 lines
554 B
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
|