cordova.rb 668 B

123456789101112131415161718192021
  1. module Docs
  2. class Cordova < UrlScraper
  3. self.name = 'Cordova'
  4. self.type = 'cordova'
  5. self.version = '3.6.0'
  6. self.base_url = 'http://cordova.apache.org/docs/en/3.6.0/'
  7. self.root_path = 'index.html'
  8. html_filters.push 'cordova/clean_html', 'cordova/entries', 'title'
  9. options[:container] = ->(filter) { filter.root_page? ? '#home' : '#content' }
  10. options[:title] = false
  11. options[:root_title] = 'Apache Cordova'
  12. options[:skip] = %w(_index.html guide_support_index.md.html)
  13. options[:attribution] = <<-HTML
  14. &copy; 2012-2014 The Apache Software Foundation<br>
  15. Licensed under the Apache License 2.0.
  16. HTML
  17. end
  18. end