twig.rb 729 B

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