fish.rb 901 B

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