1
0

phalcon.rb 867 B

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