Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 32 KiB |
@ -1,34 +1,24 @@
|
||||
module Docs
|
||||
# class Vulkan < FileScraper
|
||||
class Vulkan < UrlScraper
|
||||
self.name = 'Vulkan'
|
||||
|
||||
self.slug = 'vk'
|
||||
self.type = 'vulkan'
|
||||
self.release = '1.0.59'
|
||||
self.base_url = 'https://www.khronos.org/registry/vulkan/specs/1.0/'
|
||||
self.root_path = 'apispec.html'
|
||||
self.links = {
|
||||
home: 'https://www.khronos.org/registry/vulkan/specs/',
|
||||
code: 'https://github.com/KhronosGroup/Vulkan-Docs'
|
||||
home: 'https://www.khronos.org/vulkan/'
|
||||
}
|
||||
|
||||
self.root_path = 'apispec.html'
|
||||
|
||||
self.release = '1.0.56'
|
||||
# self.dir = '/mnt/d/theblackunknown/Documents/GitHub/Vulkan-Docs/out/1.0/'
|
||||
self.base_url = 'https://www.khronos.org/registry/vulkan/specs/1.0/'
|
||||
|
||||
html_filters.push 'vulkan/entries', 'vulkan/clean_html'
|
||||
html_filters.push 'vulkan/entries', 'vulkan/clean_html', 'title'
|
||||
|
||||
# in apispec.html, skip #header and #footer
|
||||
options[:skip_links] = true
|
||||
options[:container] = '#content'
|
||||
|
||||
# If we only want API, we should skip this one
|
||||
options[:skip] = %w(
|
||||
html/vkspec.html
|
||||
)
|
||||
options[:root_title] = 'Vulkan API Reference'
|
||||
|
||||
options[:attribution] = <<-HTML
|
||||
Copyright © 2014-2017 Khronos Group. <br>
|
||||
This work is licensed under a Creative Commons Attribution 4.0 International License
|
||||
© 2014–2017 Khronos Group Inc.<br>
|
||||
Licensed under the Creative Commons Attribution 4.0 International License.<br>
|
||||
Vulkan and the Vulkan logo are registered trademarks of the Khronos Group Inc.
|
||||
HTML
|
||||
end
|
||||
end
|
||||
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 430 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 926 B |