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.
devdocs/lib/docs/scrapers/fastapi.rb

32 lines
830 B

module Docs
class Fastapi < UrlScraper
self.name = 'FastAPI'
self.type = 'fastapi'
self.release = '0.115.6'
self.base_url = 'https://fastapi.tiangolo.com/'
self.root_path = '/'
self.links = {
home: 'https://fastapi.tiangolo.com/',
code: 'https://github.com/tiangolo/fastapi'
}
options[:only_patterns] = [
/\Afeatures\//, /\Apython-types\//,
/\Atutorial\//, /\Aadvanced\//, /\Aasync\//,
/\Adeployment\//, /\Aproject-generation\//
]
html_filters.push 'fastapi/container', 'fastapi/clean_html', 'fastapi/entries'
options[:attribution] = <<-HTML
&copy; 2018 Sebastián Ramírez<br>
Licensed under the MIT License.
HTML
def get_latest_version(opts)
get_latest_github_release('tiangolo', 'fastapi', opts)
end
end
end