Update TypeScript documentation (2.4.0)

pull/631/merge
Thibaut Courouble 8 years ago
parent aee166c2d3
commit 1267d7adff

@ -2,7 +2,7 @@ module Docs
class Typescript < UrlScraper
self.name = 'TypeScript'
self.type = 'typescript'
self.release = '2.3.2'
self.release = '2.4.0'
self.base_url = 'https://www.typescriptlang.org/docs/'
self.root_path = 'tutorial.html'
self.links = {
@ -12,7 +12,8 @@ module Docs
html_filters.push 'typescript/entries', 'typescript/clean_html'
options[:container] = '#content'
options[:container] = '#doc-content'
options[:skip] = %w(home.html)
options[:skip_link] = ->(node) { node.parent.parent['class'] == 'dropdown-menu' }
options[:fix_urls] = ->(url) {
url.sub!(/(\w+)\.md/) { "#{$1.downcase}.html" }

Loading…
Cancel
Save