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.
33 lines
917 B
33 lines
917 B
module Docs
|
|
class Matplotlib < UrlScraper
|
|
include MultipleBaseUrls
|
|
|
|
self.name = 'Matplotlib'
|
|
self.type = 'sphinx'
|
|
self.root_path = 'index.html'
|
|
self.links = {
|
|
home: 'http://matplotlib.org/',
|
|
code: 'https://github.com/matplotlib/matplotlib'
|
|
}
|
|
|
|
html_filters.push 'matplotlib/entries', 'sphinx/clean_html'
|
|
|
|
options[:container] = '.body'
|
|
options[:skip] = %w(api_changes.html tutorial.html faq.html)
|
|
|
|
options[:attribution] = <<-HTML
|
|
© 2012–2016 Matplotlib Development Team. All rights reserved.<br>
|
|
Licensed under the Matplotlib License Agreement.
|
|
HTML
|
|
|
|
version '1.5' do
|
|
self.release = '1.5.3'
|
|
self.base_urls = [
|
|
"http://matplotlib.org/#{release}/api/",
|
|
"http://matplotlib.org/#{release}/mpl_toolkits/mplot3d/",
|
|
"http://matplotlib.org/#{release}/mpl_toolkits/axes_grid/api/"
|
|
]
|
|
end
|
|
end
|
|
end
|