Skip to content

Commit b6ddb21

Browse files
committed
Update Werkzeug documentation (2.0.x)
1 parent d0b63b6 commit b6ddb21

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

assets/javascripts/templates/pages/about_tmpl.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ credits = [
858858
'https://creativecommons.org/licenses/by/4.0/'
859859
], [
860860
'Werkzeug',
861-
'2007-2020 Pallets',
861+
'2007-2021 Pallets',
862862
'BSD',
863863
'https://github.com/pallets/werkzeug/blob/master/LICENSE.rst'
864864
], [

lib/docs/scrapers/werkzeug.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,19 @@ class Werkzeug < UrlScraper
99

1010
html_filters.push 'werkzeug/entries', 'sphinx/clean_html'
1111

12-
options[:container] = '.body > .section'
12+
options[:container] = '.body > section'
1313
options[:skip] = %w(changes/)
1414

1515
options[:attribution] = <<-HTML
16-
&copy; 2007&ndash;2020 Pallets<br>
16+
&copy; 2007&ndash;2021 Pallets<br>
1717
Licensed under the BSD 3-clause License.
1818
HTML
1919

20+
version '2.0' do
21+
self.release = '2.0.x'
22+
self.base_url = "https://werkzeug.palletsprojects.com/en/#{self.release}/"
23+
end
24+
2025
version '1.0' do
2126
self.release = '1.0.x'
2227
self.base_url = "https://werkzeug.palletsprojects.com/en/#{self.release}/"

0 commit comments

Comments
 (0)