twig.rb 615 B

1234567891011121314151617181920
  1. module Docs
  2. class Twig < UrlScraper
  3. self.type = 'sphinx'
  4. self.release = '1.24'
  5. self.base_url = 'http://twig.sensiolabs.org/doc/'
  6. self.root_path = 'index.html'
  7. self.initial_paths = %w(extensions/index.html)
  8. options[:attribution] = <<-HTML
  9. &copy; 2009&ndash;2016 by the Twig Team<br>
  10. Licensed under the three clause BSD license.<br>
  11. The Twig logo is &copy; 2010&ndash;2016 SensioLabs
  12. HTML
  13. html_filters.push 'twig/clean_html', 'twig/entries'
  14. options[:container] = 'div.bd > div.content'
  15. options[:skip] = %w(deprecated.html advanced_legacy.html)
  16. end
  17. end