File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ def url_for(path)
6969 end
7070
7171 version do
72- self . release = '13.3.8 '
72+ self . release = '14.0.0 '
7373 self . base_url = 'https://angular.io/'
7474 self . root_path = 'docs'
7575
@@ -88,6 +88,26 @@ def url_for(path)
8888 include Docs ::Angular ::Since12
8989 end
9090
91+ version '13' do
92+ self . release = '13.3.8'
93+ self . base_url = 'https://v13.angular.io/'
94+ self . root_path = 'docs'
95+
96+ html_filters . push 'angular/clean_html' , 'angular/entries'
97+
98+ options [ :follow_links ] = false
99+ options [ :only_patterns ] = [ /\A guide/ , /\A tutorial/ , /\A api/ ]
100+ options [ :fix_urls_before_parse ] = -> ( url ) do
101+ url . sub! %r{\A guide/} , '/guide/'
102+ url . sub! %r{\A tutorial/} , '/tutorial/'
103+ url . sub! %r{\A api/} , '/api/'
104+ url . sub! %r{\A generated/} , '/generated/'
105+ url
106+ end
107+
108+ include Docs ::Angular ::Since12
109+ end
110+
91111 version '12' do
92112 self . release = '12.2.13'
93113 self . base_url = 'https://v12.angular.io/'
You can’t perform that action at this time.
0 commit comments