falcon.rb 769 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] = %w(user/index.html api/index.html)
  12. options[:skip_patterns] = [/\Achanges/, /\A_modules/, /\Acommunity/]
  13. options[:attribution] = <<-HTML
  14. &copy; 2012&ndash;2016 by Rackspace Hosting, Inc. and other contributors<br>
  15. Licensed under the Apache License, Version 2.0.
  16. HTML
  17. version '1.2' do
  18. self.release = '1.2.0'
  19. self.base_url = "https://falcon.readthedocs.io/en/#{self.release}/"
  20. end
  21. end
  22. end