cakephp.rb 712 B

1234567891011121314151617181920212223242526
  1. module Docs
  2. class Cakephp < FileScraper
  3. self.name = 'CakePHP'
  4. self.type = 'cakephp'
  5. self.version = '3.1'
  6. self.dir = ''
  7. self.base_url = "http://api.cakephp.org/#{version}/"
  8. self.root_path = 'index.html'
  9. self.links = {
  10. home: 'http://cakephp.org/',
  11. code: 'https://github.com/cakephp/cakephp'
  12. }
  13. html_filters.push 'cakephp/clean_html', 'cakephp/entries'
  14. options[:container] = '#right.columns.nine'
  15. # CakePHP docs include full source code. Ignore it.
  16. options[:skip_patterns] = [/\Asource-/]
  17. options[:attribution] = <<-HTML
  18. &copy; 2005&ndash;2015 The Cake Software Foundation, Inc.<br>
  19. Licensed under the MIT License.
  20. HTML
  21. end
  22. end