mirror of https://github.com/freeCodeCamp/devdocs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
960 B
35 lines
960 B
8 years ago
|
module Docs
|
||
|
# class Vulkan < FileScraper
|
||
|
class Vulkan < UrlScraper
|
||
|
self.name = 'Vulkan'
|
||
|
|
||
|
self.slug = 'vk'
|
||
|
self.type = 'vulkan'
|
||
|
self.links = {
|
||
|
home: 'https://www.khronos.org/registry/vulkan/specs/',
|
||
|
code: 'https://github.com/KhronosGroup/Vulkan-Docs'
|
||
|
}
|
||
|
|
||
|
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'
|
||
|
|
||
|
# in apispec.html, skip #header and #footer
|
||
|
options[:container] = '#content'
|
||
|
|
||
|
# If we only want API, we should skip this one
|
||
|
options[:skip] = %w(
|
||
|
html/vkspec.html
|
||
|
)
|
||
|
|
||
|
options[:attribution] = <<-HTML
|
||
|
Copyright © 2014-2017 Khronos Group. <br>
|
||
|
This work is licensed under a Creative Commons Attribution 4.0 International License
|
||
|
HTML
|
||
|
end
|
||
|
end
|