falcon.rb 649 B

123456789101112131415161718192021222324252627
  1. module Docs
  2. class Falcon < UrlScraper
  3. self.type = 'sphinx'
  4. self.root_path = 'index.html'
  5. self.links = {
  6. home: 'https://falconframework.org/',
  7. code: 'https://github.com/falconry/falcon'
  8. }
  9. html_filters.push 'falcon/entries', 'sphinx/clean_html'
  10. options[:container] = '.body'
  11. options[:skip_patterns] = [/\Achanges/, /\A_modules/]
  12. options[:attribution] = <<-HTML
  13. &copy; 2016 Falcon Contributors<br>
  14. Licensed under the Apache 2 License.
  15. HTML
  16. version '1.2.0' do
  17. self.release = '1.2.0'
  18. self.base_url = "https://falcon.readthedocs.io/en/#{self.version}/"
  19. end
  20. end
  21. end