History

typescript: clean code blocks

Simon Legner committed 5 years ago

Commit 87f97d61 parent 5ced4ea2 files · +8 −1Browse files

Unified · Split

2 files
  1. assets/javascripts/templates/pages/about_tmpl.coffee +1 −1
  2. lib/docs/filters/typescript/clean_html.rb +7 −0
assets/javascripts/templates/pages/about_tmpl.coffee+1−1
@@ -783,7 +783,7 @@ credits = [ · 782 unmodified lines
783 'https://twig.symfony.com/license'783 'https://twig.symfony.com/license'
784 ], [784 ], [
785 'TypeScript',785 'TypeScript',
786 '2012-2019 Microsoft',786 '2012-2020 Microsoft',
787 'Apache',787 'Apache',
788 'https://raw.githubusercontent.com/Microsoft/TypeScript-Handbook/master/LICENSE'788 'https://raw.githubusercontent.com/Microsoft/TypeScript-Handbook/master/LICENSE'
789 ], [789 ], [
lib/docs/filters/typescript/clean_html.rb+7−0
@@ -17,6 +17,13 @@ module Docs · 16 unmodified lines
17 node.name = 'h1'17 node.name = 'h1'
18 end18 end
19 19
20 css('a:contains("Try")').remove
21 css('pre').each do |node|
22 node.content = node.content
23 node['data-language'] = 'typescript'
24 node.remove_attribute('class')
25 end
26
20 # 'Next' title area27 # 'Next' title area
21 css('.whitespace-tight').remove28 css('.whitespace-tight').remove
22 29