| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- module Docs
- class Fish < UrlScraper
- self.name = 'Fish'
- self.type = 'simple'
- self.root_path = 'index.html'
- self.links = {
- home: 'https://fishshell.com/',
- code: 'https://github.com/fish-shell/fish-shell'
- }
- html_filters.push 'fish/clean_html', 'fish/entries'
- options[:skip] = %w(design.html license.html)
- # https://fishshell.com/docs/current/license.html
- options[:attribution] = <<-HTML
- © 2005–2009 Axel Liljencrantz<br>
- Licensed under the GNU General Public License, version 2.
- HTML
- version '3.0' do
- self.release = '3.0.1'
- self.base_url = "https://fishshell.com/docs/#{version}/"
- end
- version '2.7' do
- self.release = '2.7.1'
- self.base_url = "https://fishshell.com/docs/#{version}/"
- end
- version '2.6' do
- self.release = '2.6.0'
- self.base_url = "https://fishshell.com/docs/#{version}/"
- end
- version '2.5' do
- self.release = '2.5.0'
- self.base_url = "https://fishshell.com/docs/#{version}/"
- end
- version '2.4' do
- self.release = '2.4.0'
- self.base_url = "https://fishshell.com/docs/#{version}/"
- end
- version '2.3' do
- self.release = '2.3.1'
- self.base_url = "https://fishshell.com/docs/#{version}/"
- end
- version '2.2' do
- self.release = '2.2.0'
- self.base_url = "https://fishshell.com/docs/#{version}/"
- end
- def get_latest_version(opts)
- get_latest_github_release('fish-shell', 'fish-shell', opts)
- end
- end
- end
|