From a15e590a63709970e4d9c0f90947ff1c4ef88172 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Thu, 13 Oct 2022 19:04:41 +0200 Subject: [PATCH] Update PostgreSQL documentation (15.0) --- lib/docs/filters/postgresql/clean_html.rb | 2 +- lib/docs/scrapers/postgresql.rb | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/docs/filters/postgresql/clean_html.rb b/lib/docs/filters/postgresql/clean_html.rb index b3da126c..469e39cc 100644 --- a/lib/docs/filters/postgresql/clean_html.rb +++ b/lib/docs/filters/postgresql/clean_html.rb @@ -13,7 +13,7 @@ module Docs def other @doc = at_css('#docContent') - css('.navheader', 'hr', '.navfooter a[accesskey="H"]').remove + css('.navheader', 'hr', '.navfooter a[accesskey="H"]', '.navfooter').remove unless at_css('h1') at_css('.refnamediv h2, .titlepage h2').name = 'h1' diff --git a/lib/docs/scrapers/postgresql.rb b/lib/docs/scrapers/postgresql.rb index a06ec6d7..68a431a1 100644 --- a/lib/docs/scrapers/postgresql.rb +++ b/lib/docs/scrapers/postgresql.rb @@ -55,6 +55,11 @@ module Docs Licensed under the PostgreSQL License. HTML + version '15' do + self.release = '15.0' + self.base_url = "https://www.postgresql.org/docs/#{version}/" + end + version '14' do self.release = '14.5' self.base_url = "https://www.postgresql.org/docs/#{version}/"