sanctuary.rb 607 B

12345678910111213141516171819202122232425
  1. module Docs
  2. class Sanctuary < UrlScraper
  3. self.name = "Sanctuary"
  4. self.slug = "sanctuary"
  5. self.type = "sanctuary"
  6. self.release = "3.1.0"
  7. self.base_url = "https://sanctuary.js.org/"
  8. self.links = {
  9. home: "https://sanctuary.js.org/",
  10. code: "https://github.com/sanctuary-js/sanctuary",
  11. }
  12. html_filters.push("sanctuary/entries")
  13. html_filters.push("sanctuary/clean_html")
  14. options[:title] = "Sanctuary"
  15. options[:attribution] = "Licensed under the MIT License."
  16. def get_latest_version(opts)
  17. get_npm_version("sanctuary", opts)
  18. end
  19. end
  20. end