Update Angular documentation (4.4.1)

pull/667/merge
Thibaut Courouble 7 years ago
parent 7bd9af29b7
commit 804fe36f18

@ -56,6 +56,8 @@ module Docs
node['data-language'] = 'typescript' if node['path'].try(:ends_with?, '.ts') node['data-language'] = 'typescript' if node['path'].try(:ends_with?, '.ts')
node['data-language'] = 'html' if node['path'].try(:ends_with?, '.html') node['data-language'] = 'html' if node['path'].try(:ends_with?, '.html')
node['data-language'] = 'css' if node['path'].try(:ends_with?, '.css') node['data-language'] = 'css' if node['path'].try(:ends_with?, '.css')
node['data-language'] = 'js' if node['path'].try(:ends_with?, '.js')
node['data-language'] = 'json' if node['path'].try(:ends_with?, '.json')
node['data-language'] = node['language'].sub(/\Ats/, 'typescript').strip if node['language'] node['data-language'] = node['language'].sub(/\Ats/, 'typescript').strip if node['language']
node['data-language'] ||= 'typescript' if node.content.start_with?('@') node['data-language'] ||= 'typescript' if node.content.start_with?('@')

@ -16,7 +16,7 @@ module Docs
HTML HTML
version do version do
self.release = '4.3.2' self.release = '4.4.1'
self.base_url = 'https://angular.io/' self.base_url = 'https://angular.io/'
self.root_path = 'docs' self.root_path = 'docs'

Loading…
Cancel
Save