vulkan.rb 903 B

1234567891011121314151617181920212223242526272829
  1. module Docs
  2. class Vulkan < UrlScraper
  3. self.name = 'Vulkan'
  4. self.type = 'simple'
  5. self.release = '1.0.59'
  6. self.base_url = 'https://www.khronos.org/registry/vulkan/specs/1.0/'
  7. self.root_path = 'apispec.html'
  8. self.links = {
  9. home: 'https://www.khronos.org/vulkan/'
  10. }
  11. html_filters.push 'vulkan/entries', 'vulkan/clean_html', 'title'
  12. options[:skip_links] = true
  13. options[:container] = '#content'
  14. options[:root_title] = 'Vulkan API Reference'
  15. options[:attribution] = <<-HTML
  16. &copy; 2014&ndash;2017 Khronos Group Inc.<br>
  17. Licensed under the Creative Commons Attribution 4.0 International License.<br>
  18. Vulkan and the Vulkan logo are registered trademarks of the Khronos Group Inc.
  19. HTML
  20. def get_latest_version(opts)
  21. tags = get_github_tags('KhronosGroup', 'Vulkan-Docs', opts)
  22. tags[0]['name'][1..-1]
  23. end
  24. end
  25. end