hapi.rb 815 B

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