Skip to content

Commit b8d579b

Browse files
committed
Update TypeScript documentation (6.0.3)
1 parent cf84cd8 commit b8d579b

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

lib/docs/filters/typescript/clean_html.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,12 @@ def other
3636
else # tsconfig page
3737
end
3838

39+
css('> section').each do |node|
40+
node.before(node.children).remove
41+
end
42+
3943
css('.anchor', 'a:contains("Try")', 'h2 a', 'h3 a', 'svg', '#full-option-list').remove
44+
css('#sidebar', '.page-helpful-popup', '.handbook-toc', '.bottom-section-content').remove
4045

4146
# tsconfig page
4247
css('.markdown', '.compiler-option', '.compiler-option-md', '.compiler-content').each do |node|

lib/docs/scrapers/typescript.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class Typescript < UrlScraper
3434
HTML
3535

3636
version do
37-
self.release = '6.0.2'
37+
self.release = '6.0.3'
3838
self.base_url = 'https://www.typescriptlang.org/'
3939
end
4040

0 commit comments

Comments
 (0)