cordova.rb 723 B

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