sequelize.rb 1011 B

123456789101112131415161718192021222324252627282930
  1. module Docs
  2. class Sequelize < UrlScraper
  3. self.name = 'Sequelize'
  4. self.slug = 'sequelize'
  5. self.type = 'simple'
  6. self.release = '5.21.1'
  7. self.base_url = 'https://sequelize.org/master/'
  8. self.links = {
  9. home: 'https://sequelize.org/',
  10. code: 'https://github.com/sequelize/sequelize'
  11. }
  12. # List of content filters (to be applied sequentially)
  13. html_filters.push 'sequelize/entries', 'sequelize/clean_html'
  14. # Skip the source files, the license page and the "Who's using Sequelize" page
  15. options[:skip_patterns] = [/\.js\.html/, /manual\/legal\.html/, /manual\/whos-using\.html/]
  16. # License information that appears appears at the bottom of the entry page
  17. options[:attribution] = <<-HTML
  18. Copyright &copy; 2014&ndash;present Sequelize contributors<br>
  19. Licensed under the MIT License.
  20. HTML
  21. # Method to fetch the most recent version of the project
  22. def get_latest_version(opts)
  23. get_npm_version('sequelize', opts)
  24. end
  25. end
  26. end