Update Angular documentation (12.0.0)

pull/1546/head
Simon Legner 4 years ago
parent 314010b205
commit b5635fa550

@ -12,6 +12,8 @@ module Docs
'Guide' 'Guide'
elsif slug.start_with?('tutorial') elsif slug.start_with?('tutorial')
'Tutorial' 'Tutorial'
elsif slug.start_with?('api/platform-browser-dynamic')
'platform-browser-dynamic'
elsif node = at_css('th:contains("npm Package")') elsif node = at_css('th:contains("npm Package")')
node.next_element.content.remove('@angular/') node.next_element.content.remove('@angular/')
elsif at_css('.api-type-label.module') elsif at_css('.api-type-label.module')

@ -59,7 +59,7 @@ module Docs
end end
version do version do
self.release = '11.2.6' self.release = '12.0.0'
self.base_url = 'https://angular.io/' self.base_url = 'https://angular.io/'
self.root_path = 'docs' self.root_path = 'docs'
@ -78,6 +78,26 @@ module Docs
include Docs::Angular::Common include Docs::Angular::Common
end end
version '11' do
self.release = '11.2.14'
self.base_url = 'https://v11.angular.io/'
self.root_path = 'docs'
html_filters.push 'angular/clean_html', 'angular/entries'
options[:follow_links] = false
options[:only_patterns] = [/\Aguide/, /\Atutorial/, /\Aapi/]
options[:fix_urls_before_parse] = ->(url) do
url.sub! %r{\Aguide/}, '/guide/'
url.sub! %r{\Atutorial/}, '/tutorial/'
url.sub! %r{\Aapi/}, '/api/'
url.sub! %r{\Agenerated/}, '/generated/'
url
end
include Docs::Angular::Common
end
version '10' do version '10' do
self.release = '10.2.3' self.release = '10.2.3'
self.base_url = 'https://v10.angular.io/' self.base_url = 'https://v10.angular.io/'

Loading…
Cancel
Save