mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
Update TypeScript documentation (2.5.0)
This commit is contained in:
parent
79e8d7de5e
commit
eea7596dad
2 changed files with 5 additions and 1 deletions
|
@ -4,6 +4,10 @@ module Docs
|
||||||
def call
|
def call
|
||||||
@doc = at_css('.doc-content-container')
|
@doc = at_css('.doc-content-container')
|
||||||
|
|
||||||
|
if root_page?
|
||||||
|
at_css('h1').content = 'TypeScript Documentation'
|
||||||
|
end
|
||||||
|
|
||||||
css('.xs-toc-container').remove
|
css('.xs-toc-container').remove
|
||||||
|
|
||||||
css('article h1').each do |node|
|
css('article h1').each do |node|
|
||||||
|
|
|
@ -2,7 +2,7 @@ module Docs
|
||||||
class Typescript < UrlScraper
|
class Typescript < UrlScraper
|
||||||
self.name = 'TypeScript'
|
self.name = 'TypeScript'
|
||||||
self.type = 'typescript'
|
self.type = 'typescript'
|
||||||
self.release = '2.4.0'
|
self.release = '2.5.0'
|
||||||
self.base_url = 'https://www.typescriptlang.org/docs/'
|
self.base_url = 'https://www.typescriptlang.org/docs/'
|
||||||
self.root_path = 'tutorial.html'
|
self.root_path = 'tutorial.html'
|
||||||
self.links = {
|
self.links = {
|
||||||
|
|
Loading…
Reference in a new issue