History

Update Angular documentation (2.0.0rc3)

Thibaut Courouble committed 10 years ago

Commit 77ea68b1 parent d6a5e422 files · +8 −4Browse files

Unified · Split

2 files
  1. lib/docs/filters/angular/entries.rb +4 −0
  2. lib/docs/scrapers/angular.rb +4 −4
lib/docs/filters/angular/entries.rb+4−0
@@ -20,6 +20,10 @@ module Docs · 19 unmodified lines
20 def get_type20 def get_type
21 if slug.start_with?('guide/')21 if slug.start_with?('guide/')
22 'Guide'22 'Guide'
23 elsif slug.start_with?('cookbook/')
24 'Cookbook'
25 elsif slug == 'glossary'
26 'Guide'
23 else27 else
24 type = at_css('.is-nav-title-selected').content.strip28 type = at_css('.is-nav-title-selected').content.strip
25 type.remove! ' Reference'29 type.remove! ' Reference'
lib/docs/scrapers/angular.rb+4−4
@@ -18,9 +18,9 @@ module Docs · 17 unmodified lines
18 guide/style-guide.html)18 guide/style-guide.html)
19 19
20 options[:replace_paths] = {20 options[:replace_paths] = {
21 'testing/index.html' => 'guide/testing.html',21 'testing/index.html' => 'guide/testing.html',
22 'glossary.html' => 'guide/glossary.html',22 'guide/glossary.html' => 'glossary.html',
23 'tutorial' => 'tutorial/'23 'tutorial' => 'tutorial/'
24 }24 }
25 25
26 options[:fix_urls] = -> (url) do26 options[:fix_urls] = -> (url) do
@@ -42,7 +42,7 @@ module Docs · 15 unmodified lines
42 end42 end
43 43
44 version '2.0 TypeScript' do44 version '2.0 TypeScript' do
45 self.release = '2.0.0rc1'45 self.release = '2.0.0rc3'
46 self.base_url = "https://angular.io/docs/ts/latest/"46 self.base_url = "https://angular.io/docs/ts/latest/"
47 end47 end
48 48