| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- module Docs
- class Typescript < UrlScraper
- self.name = 'TypeScript'
- self.type = 'typescript'
- self.root_path = 'docs/'
- self.links = {
- home: 'https://www.typescriptlang.org',
- code: 'https://github.com/Microsoft/TypeScript'
- }
- html_filters.push 'typescript/entries', 'typescript/clean_html', 'title'
- options[:only_patterns] = [
- /\Adocs\Z/,
- /\Adocs\/handbook/,
- /\Atsconfig/,
- ]
- options[:skip_patterns] = [
- /\Abranding/,
- /\Acommunity/,
- /\Adocs\Z/,
- /\Atools/,
- /react.*webpack/,
- /release-notes/,
- /dt\/search/,
- /play/
- ]
- options[:attribution] = <<-HTML
- © 2012-2025 Microsoft<br>
- Licensed under the Apache License, Version 2.0.
- HTML
- version do
- self.release = '5.8.2'
- self.base_url = 'https://www.typescriptlang.org/'
- end
- version '5.1' do
- self.release = '5.1.3'
- end
- def get_latest_version(opts)
- get_latest_github_release('Microsoft', 'TypeScript', opts)
- end
- end
- end
|