1
0

click.rb 868 B

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