phalcon.rb 712 B

123456789101112131415161718192021222324
  1. module Docs
  2. class Phalcon < UrlScraper
  3. self.name = 'Phalcon'
  4. self.slug = 'phalcon'
  5. self.type = 'phalcon'
  6. self.base_url = 'https://docs.phalconphp.com/en/latest/'
  7. self.root_path = 'index.html'
  8. self.links = {
  9. home: 'https://phalconphp.com/',
  10. code: 'https://github.com/phalcon/cphalcon/'
  11. }
  12. html_filters.push 'phalcon/clean_html', 'phalcon/entries', 'title'
  13. options[:root_title] = 'Phalcon'
  14. options[:only_patterns] = [/reference\//, /api\//]
  15. options[:skip_patterns] = [/api\/index/]
  16. options[:attribution] = <<-HTML
  17. &copy; 2012&ndash;2015 the Phalcon Team<br>
  18. Licensed under the Creative Commons Attribution License 3.0.
  19. HTML
  20. end
  21. end