File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ def get_type
12
12
'Guide'
13
13
elsif slug . start_with? ( 'tutorial' )
14
14
'Tutorial'
15
+ elsif slug . start_with? ( 'api/platform-browser-dynamic' )
16
+ 'platform-browser-dynamic'
15
17
elsif node = at_css ( 'th:contains("npm Package")' )
16
18
node . next_element . content . remove ( '@angular/' )
17
19
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)
59
59
end
60
60
61
61
version do
62
- self . release = '11.2.6 '
62
+ self . release = '12.0.0 '
63
63
self . base_url = 'https://angular.io/'
64
64
self . root_path = 'docs'
65
65
@@ -78,6 +78,26 @@ def handle_response(response)
78
78
include Docs ::Angular ::Common
79
79
end
80
80
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
+
81
101
version '10' do
82
102
self . release = '10.2.3'
83
103
self . base_url = 'https://v10.angular.io/'
You can’t perform that action at this time.
0 commit comments