Unified · Split
| @@ -720,9 +720,9 @@ credits = [ · 719 unmodified lines | ||
| 720 | 720 | 'https://raw.githubusercontent.com/mitchellh/vagrant/master/website/LICENSE.md' |
| 721 | 721 | ], [ |
| 722 | 722 | 'Vue.js', |
| 723 | − '2013-2019 Evan You, Vue.js contributors', | |
| 723 | + '2013-present Yuxi Evan You', | |
| 724 | 724 | 'MIT', |
| 725 | − 'https://raw.githubusercontent.com/vuejs/vue/master/LICENSE' | |
| 725 | + 'https://raw.githubusercontent.com/vuejs/vuejs.org/master/LICENSE' | |
| 726 | 726 | ], [ |
| 727 | 727 | 'Vulkan', |
| 728 | 728 | '2014-2017 Khronos Group Inc.<br>Vulkan and the Vulkan logo are registered trademarks of the Khronos Group Inc.', |
| @@ -16,10 +16,19 @@ module Docs · 15 unmodified lines | ||
| 16 | 16 | node['data-language'] = node['class'][/highlight (\w+)/, 1] |
| 17 | 17 | end |
| 18 | 18 | |
| 19 | + css('pre').each do |node| | |
| 20 | + node.content = node.content.strip | |
| 21 | + node['data-language'] = 'javascript' | |
| 22 | + end | |
| 23 | + | |
| 19 | 24 | css('iframe').each do |node| |
| 20 | 25 | node['sandbox'] = 'allow-forms allow-scripts allow-same-origin' |
| 21 | 26 | end |
| 22 | 27 | |
| 28 | + css('details').each do |node| | |
| 29 | + node.name = 'div' | |
| 30 | + end | |
| 31 | + | |
| 23 | 32 | doc |
| 24 | 33 | end |
| 25 | 34 | end |
| @@ -4,6 +4,8 @@ module Docs · 3 unmodified lines | ||
| 4 | 4 | def get_name |
| 5 | 5 | if slug == 'api/' |
| 6 | 6 | 'API' |
| 7 | + elsif slug == 'style-guide/' | |
| 8 | + 'Style Guide' | |
| 7 | 9 | else |
| 8 | 10 | name = at_css('.content h1').content |
| 9 | 11 | node = at_css(".sidebar .menu-root a[href='#{File.basename(slug)}']") |
| @@ -16,6 +18,8 @@ module Docs · 6 unmodified lines | ||
| 16 | 18 | def get_type |
| 17 | 19 | if slug.start_with?('guide') |
| 18 | 20 | 'Guide' |
| 21 | + elsif slug == 'style-guide/' | |
| 22 | + 'Style Guide' | |
| 19 | 23 | else |
| 20 | 24 | 'API' |
| 21 | 25 | end |
| @@ -31,7 +35,15 @@ module Docs · 9 unmodified lines | ||
| 31 | 35 | else |
| 32 | 36 | name = node.content.strip |
| 33 | 37 | name.sub! %r{\(.*\)}, '()' |
| 34 | − entries << [name, node['id'], "API: #{type}"] | |
| 38 | + name.sub! /(essential|strongly recommended|recommended|use with caution)\Z/, '' | |
| 39 | + | |
| 40 | + current_type = "API: #{type}" | |
| 41 | + if slug == 'style-guide/' | |
| 42 | + current_type = "Style Guide: " | |
| 43 | + current_type += type.sub(/( Rules: )/, ': ').split('(')[0] | |
| 44 | + end | |
| 45 | + | |
| 46 | + entries << [name, node['id'], current_type] | |
| 35 | 47 | end |
| 36 | 48 | end |
| 37 | 49 | end |
| @@ -15,7 +15,7 @@ module Docs · 14 unmodified lines | ||
| 15 | 15 | options[:replace_paths] = { 'guide/' => 'guide/index.html' } |
| 16 | 16 | |
| 17 | 17 | options[:attribution] = <<-HTML |
| 18 | − © 2013–2019 Evan You, Vue.js contributors<br> | |
| 18 | + © 2013–present Yuxi Evan You<br> | |
| 19 | 19 | Licensed under the MIT License. |
| 20 | 20 | HTML |
| 21 | 21 | |