vulkan.rb 960 B

12345678910111213141516171819202122232425262728293031323334
  1. module Docs
  2. # class Vulkan < FileScraper
  3. class Vulkan < UrlScraper
  4. self.name = 'Vulkan'
  5. self.slug = 'vk'
  6. self.type = 'vulkan'
  7. self.links = {
  8. home: 'https://www.khronos.org/registry/vulkan/specs/',
  9. code: 'https://github.com/KhronosGroup/Vulkan-Docs'
  10. }
  11. self.root_path = 'apispec.html'
  12. self.release = '1.0.56'
  13. # self.dir = '/mnt/d/theblackunknown/Documents/GitHub/Vulkan-Docs/out/1.0/'
  14. self.base_url = 'https://www.khronos.org/registry/vulkan/specs/1.0/'
  15. html_filters.push 'vulkan/entries', 'vulkan/clean_html'
  16. # in apispec.html, skip #header and #footer
  17. options[:container] = '#content'
  18. # If we only want API, we should skip this one
  19. options[:skip] = %w(
  20. html/vkspec.html
  21. )
  22. options[:attribution] = <<-HTML
  23. Copyright &copy; 2014-2017 Khronos Group. <br>
  24. This work is licensed under a Creative Commons Attribution 4.0 International License
  25. HTML
  26. end
  27. end