Browse Source

Update Angular documentation (4.4.1)

Thibaut Courouble 8 years ago
parent
commit
804fe36f18
2 changed files with 3 additions and 1 deletions
  1. 2 0
      lib/docs/filters/angular/clean_html.rb
  2. 1 1
      lib/docs/scrapers/angular.rb

+ 2 - 0
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?('@')
 

+ 1 - 1
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'