File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ def get_type
1212 'Guide'
1313 elsif slug . start_with? ( 'tutorial' )
1414 'Tutorial'
15+ elsif slug . start_with? ( 'api/platform-browser-dynamic' )
16+ 'platform-browser-dynamic'
1517 elsif node = at_css ( 'th:contains("npm Package")' )
1618 node . next_element . content . remove ( '@angular/' )
1719 elsif at_css ( '.api-type-label.module' )
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ def handle_response(response)
5959 end
6060
6161 version do
62- self . release = '11.2.6 '
62+ self . release = '12.0.0 '
6363 self . base_url = 'https://angular.io/'
6464 self . root_path = 'docs'
6565
@@ -78,6 +78,26 @@ def handle_response(response)
7878 include Docs ::Angular ::Common
7979 end
8080
81+ version '11' do
82+ self . release = '11.2.14'
83+ self . base_url = 'https://v11.angular.io/'
84+ self . root_path = 'docs'
85+
86+ html_filters . push 'angular/clean_html' , 'angular/entries'
87+
88+ options [ :follow_links ] = false
89+ options [ :only_patterns ] = [ /\A guide/ , /\A tutorial/ , /\A api/ ]
90+ options [ :fix_urls_before_parse ] = -> ( url ) do
91+ url . sub! %r{\A guide/} , '/guide/'
92+ url . sub! %r{\A tutorial/} , '/tutorial/'
93+ url . sub! %r{\A api/} , '/api/'
94+ url . sub! %r{\A generated/} , '/generated/'
95+ url
96+ end
97+
98+ include Docs ::Angular ::Common
99+ end
100+
81101 version '10' do
82102 self . release = '10.2.3'
83103 self . base_url = 'https://v10.angular.io/'
You can’t perform that action at this time.
0 commit comments