Unified · Split
| @@ -46,6 +46,13 @@ module Docs · 45 unmodified lines | ||
| 46 | 46 | parent.content = parent.content |
| 47 | 47 | parent['data-language'] = 'kotlin' |
| 48 | 48 | end |
| 49 | + | |
| 50 | + css('.tags').each do |wrapper| | |
| 51 | + platforms = wrapper.css('.platform:not(.tag-value-Common)').to_a | |
| 52 | + platforms = platforms.map { |node| "#{node.content} (#{node['data-tag-version']})" } | |
| 53 | + platforms = "<b>Platform and version requirements:</b> #{platforms.join ", "}" | |
| 54 | + wrapper.replace(platforms) | |
| 55 | + end | |
| 49 | 56 | end |
| 50 | 57 | end |
| 51 | 58 | end |
| @@ -5,7 +5,9 @@ module Docs · 4 unmodified lines | ||
| 5 | 5 | if subpath.start_with?('api') |
| 6 | 6 | breadcrumbs[1..-1].join('.') |
| 7 | 7 | else |
| 8 | − (at_css('h1') || at_css('h2')).content | |
| 8 | + node = (at_css('h1') || at_css('h2')) | |
| 9 | + return node.content unless node.nil? | |
| 10 | + subpath[/\/([a-z0-9_-]+)\./][1..-2].titleize.sub('Faq', 'FAQ') | |
| 9 | 11 | end |
| 10 | 12 | end |
| 11 | 13 | |
| @@ -22,10 +22,18 @@ module Docs · 21 unmodified lines | ||
| 22 | 22 | docs/events.html |
| 23 | 23 | docs/resources.html |
| 24 | 24 | docs/reference/grammar.html) |
| 25 | − options[:replace_paths] = { 'api/latest/jvm/stdlib/' => 'api/latest/jvm/stdlib/index.html' } | |
| 25 | + options[:replace_paths] = { | |
| 26 | + 'api/latest/jvm/stdlib/' => 'api/latest/jvm/stdlib/index.html', | |
| 27 | + 'docs/reference/coroutines.html' => 'docs/reference/coroutines-overview.html', | |
| 28 | + 'api/latest/jvm/stdlib/kotlin/fold.html' => 'api/latest/jvm/stdlib/kotlin.collections/fold.html', | |
| 29 | + 'api/latest/jvm/stdlib/kotlin/get-or-else.html' => 'api/latest/jvm/stdlib/kotlin.collections/get-or-else.html', | |
| 30 | + 'api/latest/jvm/stdlib/kotlin/map.html' => 'api/latest/jvm/stdlib/kotlin.collections/map.html', | |
| 31 | + 'docs/tutorials/native/targeting-multiple-platforms.html' => 'docs/tutorials/native/basic-kotlin-native-app.html', | |
| 32 | + 'api/latest/jvm/stdlib/kotlin/-throwable/print-stack-trace.html' => 'api/latest/jvm/stdlib/kotlin/print-stack-trace.html', | |
| 33 | + } | |
| 26 | 34 | |
| 27 | 35 | options[:attribution] = <<-HTML |
| 28 | − © 2010–2018 JetBrains s.r.o.<br> | |
| 36 | + © 2010–2019 JetBrains s.r.o.<br> | |
| 29 | 37 | Licensed under the Apache License, Version 2.0. |
| 30 | 38 | HTML |
| 31 | 39 | |