From 51c5ab832a08c18f4fad4a8cab1b06e21b07a5cf Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sat, 25 Mar 2017 13:07:47 -0400 Subject: [PATCH] Update PostgreSQL documentation (9.6.2, 9.5.6, 9.4.11) --- assets/javascripts/templates/pages/about_tmpl.coffee | 4 ++-- assets/stylesheets/pages/_postgres.scss | 2 +- lib/docs/scrapers/postgresql.rb | 12 ++++++++---- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee index 39d2365e..b92d5ea8 100644 --- a/assets/javascripts/templates/pages/about_tmpl.coffee +++ b/assets/javascripts/templates/pages/about_tmpl.coffee @@ -456,9 +456,9 @@ credits = [ 'https://creativecommons.org/licenses/by/3.0/' ], [ 'PostgreSQL', - '1996-2016 The PostgreSQL Global Development Group
© 1994 The Regents of the University of California', + '1996-2017 The PostgreSQL Global Development Group
© 1994 The Regents of the University of California', 'PostgreSQL', - 'http://www.postgresql.org/about/licence/' + 'https://www.postgresql.org/about/licence/' ], [ 'Python', '2001-2017 Python Software Foundation
Python is a trademark of the Python Software Foundation.', diff --git a/assets/stylesheets/pages/_postgres.scss b/assets/stylesheets/pages/_postgres.scss index b3283b87..487f984d 100644 --- a/assets/stylesheets/pages/_postgres.scss +++ b/assets/stylesheets/pages/_postgres.scss @@ -1,7 +1,7 @@ ._postgres { padding-left: 1rem; - h1, h1 ~ p, h2 { margin-left: -1rem; } + h1, h1 ~ p, h1 ~ pre, h1 ~ blockquote, h2, .NAVFOOTER { margin-left: -1rem; } h2 { @extend %block-heading; } .VARIABLELIST dt { @extend %block-label, %label-blue; } diff --git a/lib/docs/scrapers/postgresql.rb b/lib/docs/scrapers/postgresql.rb index e8cbde83..dca1f602 100644 --- a/lib/docs/scrapers/postgresql.rb +++ b/lib/docs/scrapers/postgresql.rb @@ -6,6 +6,10 @@ module Docs self.type = 'postgres' self.root_path = 'reference.html' self.initial_paths = %w(sql.html admin.html internals.html appendixes.html tutorial.html) + self.links = { + home: 'https://www.postgresql.org/', + code: 'https://git.postgresql.org/gitweb/?p=postgresql.git' + } html_filters.insert_before 'normalize_urls', 'postgresql/extract_metadata' html_filters.push 'postgresql/clean_html', 'postgresql/entries', 'title' @@ -47,22 +51,22 @@ module Docs /\Aunsupported-features/ ] options[:attribution] = <<-HTML - © 1996–2016 The PostgreSQL Global Development Group
+ © 1996–2017 The PostgreSQL Global Development Group
Licensed under the PostgreSQL License. HTML version '9.6' do - self.release = '9.6.0' + self.release = '9.6.2' self.base_url = 'https://www.postgresql.org/docs/9.6/static/' end version '9.5' do - self.release = '9.5.4' + self.release = '9.5.6' self.base_url = 'https://www.postgresql.org/docs/9.5/static/' end version '9.4' do - self.release = '9.4.9' + self.release = '9.4.11' self.base_url = 'https://www.postgresql.org/docs/9.4/static/' end end