openlayers.rb 661 B

123456789101112131415161718192021222324
  1. module Docs
  2. class Openlayers < UrlScraper
  3. self.name = 'OpenLayers'
  4. self.type = 'openlayers'
  5. self.slug = 'openlayers'
  6. self.release = '10.4.0'
  7. self.base_url = "https://openlayers.org/en/latest/apidoc/"
  8. self.links = {
  9. home: 'https://openlayers.org/',
  10. code: 'https://github.com/openlayers/openlayers'
  11. }
  12. html_filters.push 'openlayers/entries', 'openlayers/clean_html'
  13. options[:attribution] = <<-HTML
  14. &copy; 2005-present, OpenLayers Contributors All rights reserved.
  15. Licensed under the BSD 2-Clause License.
  16. HTML
  17. def get_latest_version(opts)
  18. get_npm_version('ol', opts)
  19. end
  20. end
  21. end