phalcon.rb 715 B

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