angular: add version 9

pull/1175/head
Simon Legner 5 years ago
parent ff5ffafb31
commit 76b82ac270

@ -82,10 +82,15 @@ app.templates.aboutPage = -> """
"""
credits = [
[ 'Angular<br>Angular.js',
[ 'Angular.js',
'2010-2020 Google, Inc.',
'CC BY 3.0',
'https://creativecommons.org/licenses/by/3.0/'
], [
'Angular',
'2010-2020 Google, Inc.',
'CC BY',
'https://creativecommons.org/licenses/by/4.0/'
], [
'Ansible',
'2012-2018 Michael DeHaan<br>&copy; 20182019 Red Hat, Inc.',

@ -11,7 +11,7 @@ module Docs
options[:max_image_size] = 256_000
options[:attribution] = <<-HTML
&copy; 2010&ndash;2019 Google, Inc.<br>
&copy; 2010&ndash;2020 Google, Inc.<br>
Licensed under the Creative Commons Attribution License 4.0.
HTML
@ -59,8 +59,28 @@ module Docs
end
version do
self.release = '9.1.12'
self.base_url = 'https://v9.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 '8' do
self.release = '8.2.14'
self.base_url = 'https://angular.io/'
self.base_url = 'https://v8.angular.io/'
self.root_path = 'docs'
html_filters.push 'angular/clean_html', 'angular/entries'

Loading…
Cancel
Save