express.rb 894 B

1234567891011121314151617181920212223242526272829303132
  1. module Docs
  2. class Express < UrlScraper
  3. self.name = 'Express'
  4. self.type = 'express'
  5. self.release = '4.14.0'
  6. self.base_url = 'http://expressjs.com/en/'
  7. self.root_path = '4x/api.html'
  8. self.initial_paths = %w(
  9. starter/installing.html
  10. guide/routing.html
  11. advanced/developing-template-engines.html )
  12. self.links = {
  13. home: 'http://expressjs.com/',
  14. code: 'https://github.com/strongloop/express/'
  15. }
  16. html_filters.push 'express/clean_html', 'express/entries', 'title'
  17. options[:title] = false
  18. options[:root_title] = 'Express'
  19. options[:container] = ->(filter) { filter.root_page? ? '#api-doc' : '.content' }
  20. options[:only_patterns] = [
  21. /\Astarter/,
  22. /\Aguide/,
  23. /\Aadvanced/ ]
  24. options[:attribution] = <<-HTML
  25. &copy; 2016 StrongLoop, IBM, and other expressjs.com contributors.
  26. HTML
  27. end
  28. end