fish.rb 759 B

123456789101112131415161718192021222324252627282930
  1. module Docs
  2. class Fish < UrlScraper
  3. self.name = 'Fish'
  4. self.type = 'fish'
  5. self.root_path = 'index.html'
  6. self.links = {
  7. home: 'https://fishshell.com/',
  8. code: 'https://github.com/fish-shell/fish-shell'
  9. }
  10. html_filters.push 'fish/clean_html', 'fish/entries'
  11. options[:skip] = %w(design.html license.html)
  12. options[:attribution] = <<-HTML
  13. &copy; 2005&ndash;2009 Axel Liljencrantz<br>
  14. Licensed under the GNU General Public License, version 2.
  15. HTML
  16. version '2.3' do
  17. self.release = '2.3.1'
  18. self.base_url = "https://fishshell.com/docs/#{version}/"
  19. end
  20. version '2.2' do
  21. self.release = '2.2.0'
  22. self.base_url = "https://fishshell.com/docs/#{version}/"
  23. end
  24. end
  25. end