1
0

padrino.rb 758 B

123456789101112131415161718192021222324252627
  1. module Docs
  2. class Padrino < UrlScraper
  3. self.slug = 'padrino'
  4. self.type = 'rubydoc'
  5. self.release = '0.14.1'
  6. self.base_url = 'http://www.rubydoc.info/github/padrino/padrino-framework/'
  7. self.root_path = 'file/README.rdoc'
  8. self.initial_paths = %w(index2)
  9. self.links = {
  10. home: 'http://padrinorb.com/',
  11. code: 'https://github.com/padrino/padrino-framework'
  12. }
  13. html_filters.push 'padrino/clean_html', 'padrino/entries'
  14. options[:container] = ->(filter) { filter.root_page? ? '#filecontents' : '#content' }
  15. options[:attribution] = <<-HTML
  16. &copy; 2010&ndash;2016 Padrino<br>
  17. Licensed under the MIT License.
  18. HTML
  19. stub 'index2' do
  20. request_one(url_for('index')).body
  21. end
  22. end
  23. end