1
0

express.rb 975 B

123456789101112131415161718192021222324252627282930313233343536
  1. module Docs
  2. class Express < UrlScraper
  3. self.name = 'Express'
  4. self.type = 'express'
  5. self.release = '4.18.1'
  6. self.base_url = 'https://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: 'https://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[:only_patterns] = [
  20. /\Astarter/,
  21. /\Aguide/,
  22. /\Aadvanced/ ]
  23. options[:attribution] = <<-HTML
  24. &copy; 2017 StrongLoop, IBM, and other expressjs.com contributors.<br>
  25. Licensed under the Creative Commons Attribution-ShareAlike License v3.0.
  26. HTML
  27. def get_latest_version(opts)
  28. get_npm_version('express', opts)
  29. end
  30. end
  31. end