typescript: clean code blocks

pull/1354/head
Simon Legner 4 years ago
parent 5ced4eab8b
commit 87f97d6cc0

@ -783,7 +783,7 @@ credits = [
'https://twig.symfony.com/license'
], [
'TypeScript',
'2012-2019 Microsoft',
'2012-2020 Microsoft',
'Apache',
'https://raw.githubusercontent.com/Microsoft/TypeScript-Handbook/master/LICENSE'
], [

@ -17,6 +17,13 @@ module Docs
node.name = 'h1'
end
css('a:contains("Try")').remove
css('pre').each do |node|
node.content = node.content
node['data-language'] = 'typescript'
node.remove_attribute('class')
end
# 'Next' title area
css('.whitespace-tight').remove

Loading…
Cancel
Save