click.rb 909 B

1234567891011121314151617181920212223242526272829
  1. module Docs
  2. class Click < UrlScraper
  3. self.name = 'click'
  4. self.type = 'sphinx' #'simple'
  5. self.release = '8.1.7'
  6. self.base_url = 'https://click.palletsprojects.com/en/8.1.x/'
  7. self.root_path = 'index.html'
  8. self.links = {
  9. home: 'https://click.palletsprojects.com/',
  10. code: 'https://github.com/pallets/click'
  11. }
  12. html_filters.push 'click/pre_clean_html', 'click/entries', 'click/clean_html', 'sphinx/clean_html', 'title'
  13. options[:skip] = ['changes/', 'genindex/', 'py-modindex/', 'license/']
  14. options[:container] = '.body > section'
  15. options[:title] = false
  16. options[:attribution] = <<-HTML
  17. &copy; Copyright 2014 Pallets.<br>
  18. Licensed under the BSD 3-Clause License.<br>
  19. We are not supported nor endorsed by Pallets.
  20. HTML
  21. def get_latest_version(opts)
  22. get_latest_github_release('pallets', 'click', opts)
  23. end
  24. end
  25. end