diff --git a/assets/images/docs-2.png b/assets/images/docs-2.png
index ba3a162b..208aeade 100644
Binary files a/assets/images/docs-2.png and b/assets/images/docs-2.png differ
diff --git a/assets/images/docs-2@2x.png b/assets/images/docs-2@2x.png
index 1e56762c..fb263017 100644
Binary files a/assets/images/docs-2@2x.png and b/assets/images/docs-2@2x.png differ
diff --git a/assets/javascripts/news.json b/assets/javascripts/news.json
index 04d97b4c..c54e8fe7 100644
--- a/assets/javascripts/news.json
+++ b/assets/javascripts/news.json
@@ -1,7 +1,7 @@
[
[
"2017-09-03",
- "New documentation: Nim"
+ "New documentations: Nim and Vulkan"
], [
"2017-07-23",
"New documentation: Godot"
diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee
index 6a5c2b75..11be6211 100644
--- a/assets/javascripts/templates/pages/about_tmpl.coffee
+++ b/assets/javascripts/templates/pages/about_tmpl.coffee
@@ -633,6 +633,11 @@ credits = [
'2013-2017 Evan You, Vue.js contributors',
'MIT',
'https://raw.githubusercontent.com/vuejs/vue/master/LICENSE'
+ ], [
+ 'Vulkan',
+ '2014-2017 Khronos Group Inc.
Vulkan and the Vulkan logo are registered trademarks of the Khronos Group Inc.',
+ 'CC BY',
+ 'https://creativecommons.org/licenses/by/4.0/'
], [
'webpack',
'JS Foundation and other contributors',
diff --git a/assets/stylesheets/global/_icons.scss b/assets/stylesheets/global/_icons.scss
index cfd5605b..566ef90d 100644
--- a/assets/stylesheets/global/_icons.scss
+++ b/assets/stylesheets/global/_icons.scss
@@ -174,3 +174,4 @@
._icon-falcon:before { background-position: -3rem -2rem; @extend %doc-icon-2; }
._icon-godot:before { background-position: -4rem -2rem; @extend %doc-icon-2; }
._icon-nim:before { background-position: -5rem -2rem; @extend %doc-icon-2; @extend %darkIconFix !optional; }
+._icon-vulkan:before { background-position: -6rem -2rem; @extend %doc-icon-2; @extend %darkIconFix !optional; }
diff --git a/assets/stylesheets/pages/_simple.scss b/assets/stylesheets/pages/_simple.scss
index d242e759..f2b9b733 100644
--- a/assets/stylesheets/pages/_simple.scss
+++ b/assets/stylesheets/pages/_simple.scss
@@ -43,6 +43,7 @@
._requirejs,
._typescript,
._vagrant,
+._vulkan,
._yarn {
@extend %simple;
}
diff --git a/lib/docs/filters/vulkan/clean_html.rb b/lib/docs/filters/vulkan/clean_html.rb
index b2e0a8a2..6e066ab0 100644
--- a/lib/docs/filters/vulkan/clean_html.rb
+++ b/lib/docs/filters/vulkan/clean_html.rb
@@ -2,11 +2,51 @@ module Docs
class Vulkan
class CleanHtmlFilter < Filter
def call
- # Copyright is already added via attribution option
- css('#_copyright').map do |node|
- node.parent.remove
+ at_css('#_copyright').parent.remove
+
+ css('.sect1', '.sectionbody', '.sect2', '.sect3', 'div.paragraph', 'li > p:only-child', 'dd > p:only-child', 'span', '.ulist').each do |node|
+ node.before(node.children).remove
+ end
+
+ css('a[id]:empty').each do |node|
+ node.parent['id'] ||= node['id']
+ node.remove
+ end
+
+ css('.listingblock').each do |node|
+ node['data-language'] = node.at_css('[data-lang]')['data-lang']
+ node.content = node.content.strip
+ node.name = 'pre'
+ node.remove_attribute('class')
+ end
+
+ css('.sidebarblock').each do |node|
+ node.name = 'blockquote'
+ node.at_css('.title').name = 'h5'
+ node.css('div').each { |n| n.before(n.children).remove }
+ node.remove_attribute('class')
end
+ css('.admonitionblock').each do |node|
+ node.name = 'blockquote'
+ node.children = node.at_css('.content').children
+ node.at_css('.title').name = 'h5'
+ node.remove_attribute('class')
+ end
+
+ css('table').each do |node|
+ node.before %(