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.
30 lines
831 B
30 lines
831 B
module Docs
|
|
class ScikitImage < UrlScraper
|
|
self.name = 'scikit-image'
|
|
self.slug = 'scikit_image'
|
|
self.type = 'sphinx'
|
|
self.release = '0.18.1'
|
|
self.base_url = 'https://scikit-image.org/docs/0.18.x/'
|
|
self.links = {
|
|
home: 'https://scikit-image.org/',
|
|
code: 'https://github.com/scikit-image/scikit-image'
|
|
}
|
|
|
|
html_filters.push 'scikit_image/entries', 'sphinx/clean_html'
|
|
|
|
options[:container] = '.span9'
|
|
options[:skip] = %w(api_changes.html)
|
|
options[:only_patterns] = [/\Aapi/, /\Auser_guide/]
|
|
|
|
options[:attribution] = <<-HTML
|
|
© 2019 the scikit-image team<br>
|
|
Licensed under the BSD 3-clause License.
|
|
HTML
|
|
|
|
def get_latest_version(opts)
|
|
tags = get_github_tags('scikit-image', 'scikit-image', opts)
|
|
tags[0]['name'][1..-1]
|
|
end
|
|
end
|
|
end
|