소스 검색

Update Angular documentation (2.0.0rc3)

Thibaut Courouble 9 년 전
부모
커밋
77ea68b3ba
2개의 변경된 파일8개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 0
      lib/docs/filters/angular/entries.rb
  2. 4 4
      lib/docs/scrapers/angular.rb

+ 4 - 0
lib/docs/filters/angular/entries.rb

@@ -20,6 +20,10 @@ module Docs
       def get_type
         if slug.start_with?('guide/')
           'Guide'
+        elsif slug.start_with?('cookbook/')
+          'Cookbook'
+        elsif slug == 'glossary'
+          'Guide'
         else
           type = at_css('.is-nav-title-selected').content.strip
           type.remove! ' Reference'

+ 4 - 4
lib/docs/scrapers/angular.rb

@@ -18,9 +18,9 @@ module Docs
       guide/style-guide.html)
 
     options[:replace_paths] = {
-      'testing/index.html' => 'guide/testing.html',
-      'glossary.html'      => 'guide/glossary.html',
-      'tutorial'           => 'tutorial/'
+      'testing/index.html'  => 'guide/testing.html',
+      'guide/glossary.html' => 'glossary.html',
+      'tutorial'            => 'tutorial/'
     }
 
     options[:fix_urls] = -> (url) do
@@ -42,7 +42,7 @@ module Docs
     end
 
     version '2.0 TypeScript' do
-      self.release = '2.0.0rc1'
+      self.release = '2.0.0rc3'
       self.base_url = "https://angular.io/docs/ts/latest/"
     end