diff --git a/lib/docs/filters/angular/clean_html.rb b/lib/docs/filters/angular/clean_html.rb index 0ac3a278..59957865 100644 --- a/lib/docs/filters/angular/clean_html.rb +++ b/lib/docs/filters/angular/clean_html.rb @@ -56,6 +56,8 @@ module Docs 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'] = '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'] ||= 'typescript' if node.content.start_with?('@') diff --git a/lib/docs/scrapers/angular.rb b/lib/docs/scrapers/angular.rb index cafbfbe5..78ed5123 100644 --- a/lib/docs/scrapers/angular.rb +++ b/lib/docs/scrapers/angular.rb @@ -16,7 +16,7 @@ module Docs HTML version do - self.release = '4.3.2' + self.release = '4.4.1' self.base_url = 'https://angular.io/' self.root_path = 'docs'