express.rb 659 B

1234567891011121314151617181920212223242526
  1. module Docs
  2. class Express < UrlScraper
  3. self.name = 'Express'
  4. self.type = 'express'
  5. self.version = '4.12.0'
  6. self.base_url = 'http://expressjs.com/'
  7. self.root_path = '4x/api.html'
  8. html_filters.push 'express/clean_html', 'express/entries', 'title'
  9. options[:title] = false
  10. options[:root_title] = 'Express'
  11. options[:container] = ->(filter) { filter.root_page? ? '#api-doc' : '.content' }
  12. options[:only_patterns] = [
  13. /\Astarter/,
  14. /\Aguide/,
  15. /\Aadvanced/
  16. ]
  17. options[:attribution] = <<-HTML
  18. &copy; 2009&ndash;2015 TJ Holowaychuk<br>
  19. Licensed under the MIT License.
  20. HTML
  21. end
  22. end