joi.rb 755 B

12345678910111213141516171819202122232425262728293031
  1. module Docs
  2. class Joi < UrlScraper
  3. self.name = "Joi"
  4. self.slug = "joi"
  5. self.type = "joi"
  6. self.release = "17.11.0"
  7. self.base_url = "https://joi.dev/api/?v=#{self.release}"
  8. self.links = {
  9. home: "https://joi.dev/",
  10. code: "https://github.com/hapijs/joi",
  11. }
  12. html_filters.push "joi/entries", "joi/clean_html"
  13. options[:container] = '.markdown-wrapper'
  14. options[:title] = "Joi"
  15. options[:attribution] = <<-HTML
  16. Copyright &copy; 2012-2022, Project contributors Copyright &copy; 2012-2022, Sideway Inc Copyright &copy; 2012-2014, Walmart<br>
  17. Licensed under the BSD 3-clause License.
  18. HTML
  19. def get_latest_version(opts)
  20. get_npm_version("joi", opts)
  21. end
  22. private
  23. end
  24. end