| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- module Docs
- class Matplotlib < UrlScraper
- include MultipleBaseUrls
- self.name = 'Matplotlib'
- self.type = 'sphinx'
- self.root_path = 'index.html'
- self.links = {
- home: 'https://matplotlib.org/',
- code: 'https://github.com/matplotlib/matplotlib'
- }
- html_filters.push 'matplotlib/entries', 'sphinx/clean_html'
- options[:container] = '.body, section'
- options[:skip] = %w(api_changes.html tutorial.html faq.html)
- options[:attribution] = <<-HTML
- © 2012–2023 Matplotlib Development Team. All rights reserved.<br>
- Licensed under the Matplotlib License Agreement.
- HTML
- version '3.7' do
- self.release = '3.7.1'
- self.base_urls = [
- "https://matplotlib.org/stable/api/",
- "https://matplotlib.org/stable/mpl_toolkits/mplot3d/",
- "https://matplotlib.org/stable/mpl_toolkits/axes_grid/api/"
- ]
- end
- version '3.6' do
- self.release = '3.6.0'
- self.base_urls = [
- "https://matplotlib.org/#{release}/api/",
- "https://matplotlib.org/#{release}/mpl_toolkits/mplot3d/",
- "https://matplotlib.org/#{release}/mpl_toolkits/axes_grid/api/"
- ]
- end
- version '3.5' do
- self.release = '3.5.1'
- self.base_urls = [
- "https://matplotlib.org/#{release}/api/",
- "https://matplotlib.org/#{release}/mpl_toolkits/mplot3d/",
- "https://matplotlib.org/#{release}/mpl_toolkits/axes_grid/api/"
- ]
- end
- version '3.4' do
- self.release = '3.4.3'
- self.base_urls = [
- "https://matplotlib.org/#{release}/api/",
- "https://matplotlib.org/#{release}/mpl_toolkits/mplot3d/",
- "https://matplotlib.org/#{release}/mpl_toolkits/axes_grid/api/"
- ]
- end
- version '3.3' do
- self.release = '3.3.3'
- self.base_urls = [
- "https://matplotlib.org/#{release}/api/",
- "https://matplotlib.org/#{release}/mpl_toolkits/mplot3d/",
- "https://matplotlib.org/#{release}/mpl_toolkits/axes_grid/api/"
- ]
- end
- version '3.2' do
- self.release = '3.2.2'
- self.base_urls = [
- "https://matplotlib.org/#{release}/api/",
- "https://matplotlib.org/#{release}/mpl_toolkits/mplot3d/",
- "https://matplotlib.org/#{release}/mpl_toolkits/axes_grid/api/"
- ]
- end
- version '3.1' do
- self.release = '3.1.1'
- self.base_urls = [
- "https://matplotlib.org/#{release}/api/",
- "https://matplotlib.org/#{release}/mpl_toolkits/mplot3d/",
- "https://matplotlib.org/#{release}/mpl_toolkits/axes_grid/api/"
- ]
- end
- version '3.0' do
- self.release = '3.0.0'
- self.base_urls = [
- "https://matplotlib.org/#{release}/api/",
- "https://matplotlib.org/#{release}/mpl_toolkits/mplot3d/",
- "https://matplotlib.org/#{release}/mpl_toolkits/axes_grid/api/"
- ]
- end
- version '2.2' do
- self.release = '2.2.3'
- self.base_urls = [
- "https://matplotlib.org/#{release}/api/",
- "https://matplotlib.org/#{release}/mpl_toolkits/mplot3d/",
- "https://matplotlib.org/#{release}/mpl_toolkits/axes_grid/api/"
- ]
- end
- version '2.1' do
- self.release = '2.1.0'
- self.base_urls = [
- "https://matplotlib.org/#{release}/api/",
- "https://matplotlib.org/#{release}/mpl_toolkits/mplot3d/",
- "https://matplotlib.org/#{release}/mpl_toolkits/axes_grid/api/"
- ]
- end
- version '2.0' do
- self.release = '2.0.2'
- self.base_urls = [
- "https://matplotlib.org/#{release}/api/",
- "https://matplotlib.org/#{release}/mpl_toolkits/mplot3d/",
- "https://matplotlib.org/#{release}/mpl_toolkits/axes_grid/api/"
- ]
- end
- version '1.5' do
- self.release = '1.5.3'
- self.base_urls = [
- "https://matplotlib.org/#{release}/api/",
- "https://matplotlib.org/#{release}/mpl_toolkits/mplot3d/",
- "https://matplotlib.org/#{release}/mpl_toolkits/axes_grid/api/"
- ]
- end
- def get_latest_version(opts)
- get_latest_github_release('matplotlib', 'matplotlib', opts)
- end
- end
- end
|