postgresql-jdbc.git / summary / log / commit / refs
commit d6fe07d7bb613d7b8fb06ace64b9b37d3f23bbfe
Author: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
Date: Tue Jul 11 15:49:43 2017 +0000
docs: build index, changelog pages from _posts/... to reduce release overhead
docs/_config.yml | 5 +++
docs/_includes/changelog/42.0.0-notes.md | 8 ----
docs/_includes/changelog/42.1.0-notes.md | 5 ---
docs/_includes/changelog/42.1.1-notes.md | 1 -
.../2017-02-20-42.0.0-release.md} | 29 +++++++++----
.../2017-05-04-42.1.0-release.md} | 47 +++++++++++++---------
.../2017-05-05-42.1.1-release.md} | 17 +++++---
docs/documentation/changelog.md | 21 +++++-----
docs/download.md | 41 ++++++++-----------
docs/index.html | 26 ++++--------
release_notes.sh | 17 +++++---
11 files changed, 111 insertions(+), 106 deletions(-)
diff --git a/docs/_config.yml b/docs/_config.yml
index bdd29fb9..fdb49ed6 100644
--- a/docs/_config.yml
+++ b/docs/_config.yml
@@ -1,3 +1,8 @@
name: PostgreSQL JDBC Driver website
markdown: redcarpet
highlighter: pygments
+excerpt_separator: <!--more-->
+exclude:
+ - Gemfile
+ - Gemfile.lock
+ - README.md
diff --git a/docs/_includes/changelog/42.0.0-notes.md b/docs/_includes/changelog/42.0.0-notes.md
deleted file mode 100644
index 6536ac61..00000000
--- a/docs/_includes/changelog/42.0.0-notes.md
+++ /dev/null
@@ -1,8 +0,0 @@
-* BUG: setCharacterStream truncates data. The bug is fixed in 42.1.0
-* BUG: no suitable driver found for jdbc:postgresql when using a DataSource implementation. The bug is fixed in 42.1.0
-* Support for PostgreSQL versions below 8.2 was dropped
-* java.util.logging is now used for logging: [logging documentation](https://jdbc.postgresql.org/documentation/head/logging.html)
-* Ensure executeBatch() can be used with pgbouncer. Previously pgjdbc could use server-prepared statements for batch execution even with prepareThreshold=0 (see [issue 742](https://github.com/pgjdbc/pgjdbc/issues/742))
-* Replication protocol API was added: [replication API documentation](https://jdbc.postgresql.org/documentation/head/replication.html), [GitHub PR 550](https://github.com/pgjdbc/pgjdbc/pull/550)
-* Version bumped to 42.0.0 to avoid version clash with PostgreSQL version
-* Error position is displayed when SQL has unterminated literals, comments, etc (see [issue 688](https://github.com/pgjdbc/pgjdbc/issues/688))
diff --git a/docs/_includes/changelog/42.1.0-notes.md b/docs/_includes/changelog/42.1.0-notes.md
deleted file mode 100644
index bc47c904..00000000
--- a/docs/_includes/changelog/42.1.0-notes.md
+++ /dev/null
@@ -1,5 +0,0 @@
-* fix: data being trucated in setCharacterStream (the bug introduced in 42.0.0) [PR#802](https://github.com/pgjdbc/pgjdbc/pull/802)
-* fix: calculation of lastReceiveLSN for logical replication [PR#801](https://github.com/pgjdbc/pgjdbc/pull/801)
-* fix: make sure org.postgresql.Driver is loaded when accessing though DataSource interface [#768](https://github.com/pgjdbc/pgjdbc/issues/768)
-* feat: support fetching a REF_CURSOR using getObject [PR#809](https://github.com/pgjdbc/pgjdbc/pull/809)
-* note: there's no 42.1.0.jre6 due to infinity handling bug. Fixed in 42.1.1.jre6
diff --git a/docs/_includes/changelog/42.1.1-notes.md b/docs/_includes/changelog/42.1.1-notes.md
deleted file mode 100644
index 5fa1a7ac..00000000
--- a/docs/_includes/changelog/42.1.1-notes.md
+++ /dev/null
@@ -1 +0,0 @@
-* fix: infinite dates might be corrupted when transferred in binary for certain JREs. For instance, 5881610-07-11 instead of infinity.
diff --git a/docs/_includes/changelog/42.0.0-release.md b/docs/_posts/2017-02-20-42.0.0-release.md
similarity index 89%
rename from docs/_includes/changelog/42.0.0-release.md
rename to docs/_posts/2017-02-20-42.0.0-release.md
index 56e5dfb9..555e78df 100644
--- a/docs/_includes/changelog/42.0.0-release.md
+++ b/docs/_posts/2017-02-20-42.0.0-release.md
@@ -1,9 +1,24 @@
-<a name="version_42.0.0"></a>
-## Version 42.0.0 (2017-02-20)
-
-Notable changes:
-
-{% include changelog/42.0.0-notes.md %}
+---
+title: "PostgreSQL JDBC Driver 42.0.0 Released"
+date: 2017-02-20 00:00:00 +0300
+categories:
+ - new_release
+version: 42.0.0
+---
+**Notable changes**
+
+* BUG: setCharacterStream truncates data. The bug is fixed in 42.1.0
+* BUG: no suitable driver found for jdbc:postgresql when using a DataSource implementation. The bug is fixed in 42.1.0
+* Support for PostgreSQL versions below 8.2 was dropped
+* java.util.logging is now used for logging: [logging documentation](https://jdbc.postgresql.org/documentation/head/logging.html)
+* Ensure executeBatch() can be used with pgbouncer. Previously pgjdbc could use server-prepared statements for batch execution even with prepareThreshold=0 (see [issue 742](https://github.com/pgjdbc/pgjdbc/issues/742))
+* Replication protocol API was added: [replication API documentation](https://jdbc.postgresql.org/documentation/head/replication.html), [GitHub PR 550](https://github.com/pgjdbc/pgjdbc/pull/550)
+* Version bumped to 42.0.0 to avoid version clash with PostgreSQL version
+* Error position is displayed when SQL has unterminated literals, comments, etc (see [issue 688](https://github.com/pgjdbc/pgjdbc/issues/688))
+
+<br>
+You may have noticed the change in the versioning of the driver, you can [read the FAQ](documentation/faq.html#versioning) for more information.
+<!--more-->
AlexElin (6):
@@ -98,7 +113,7 @@ bd-infor (1):
* docs: clarify handling of loglevel [PR#711](https://github.com/pgjdbc/pgjdbc/pull/711) [6334bac0](https://github.com/pgjdbc/pgjdbc/commit/6334bac036efaa4a9f2a445f1cbdcc310f4c6263)
-<a name="contributors_42.0.0"></a>
+<a name="contributors_{{ version }}"></a>
### Contributors to this release
We thank the following people for their contributions to this release.
diff --git a/docs/_includes/changelog/42.1.0-release.md b/docs/_posts/2017-05-04-42.1.0-release.md
similarity index 75%
rename from docs/_includes/changelog/42.1.0-release.md
rename to docs/_posts/2017-05-04-42.1.0-release.md
index 65ecfa45..a0bb5c1b 100644
--- a/docs/_includes/changelog/42.1.0-release.md
+++ b/docs/_posts/2017-05-04-42.1.0-release.md
@@ -1,9 +1,18 @@
-<a name="version_42.1.0"></a>
-## Version 42.1.0 (2017-05-04)
-
-Notable changes:
-
-{% include changelog/42.1.0-notes.md %}
+---
+title: "PostgreSQL JDBC Driver 42.1.0 Released"
+date: 2017-05-04 00:00:00 +0300
+categories:
+ - new_release
+version: 42.1.0
+---
+**Notable changes**
+
+* fix: data being truncated in setCharacterStream (the bug introduced in 42.0.0) [PR#802](https://github.com/pgjdbc/pgjdbc/pull/802)
+* fix: calculation of lastReceiveLSN for logical replication [PR#801](https://github.com/pgjdbc/pgjdbc/pull/801)
+* fix: make sure org.postgresql.Driver is loaded when accessing though DataSource interface [#768](https://github.com/pgjdbc/pgjdbc/issues/768)
+* feat: support fetching a REF_CURSOR using getObject [PR#809](https://github.com/pgjdbc/pgjdbc/pull/809)
+* note: there's no 42.1.0.jre6 due to infinity handling bug. Fixed in 42.1.1.jre6
+<!--more-->
Alexander Kjäll (1):
@@ -61,20 +70,20 @@ slmsbrhgn (1):
* bug: fix data being trucated in setCharacterStream (the bug introduced in 42.0.0) [PR#802](https://github.com/pgjdbc/pgjdbc/pull/802) [28c98418](https://github.com/pgjdbc/pgjdbc/commit/28c98418b576394b7a0a4a6415ae86ba47be40ae)
-<a name="contributors_42.1.0"></a>
+<a name="contributors_{{ version }}"></a>
### Contributors to this release
We thank the following people for their contributions to this release.
-[Alexander Kjäll](https://github.com/alexanderkjall)
-[Daniel Migowski](https://github.com/dmigowski)
-[Dave Cramer](davec@postgresintl.com)
-[Jacques Fuentes](https://github.com/jpfuentes2)
-[James](https://github.com/jamesthomp)
-[Joe Kutner](https://github.com/jkutner)
-[Jorge Solorzano](https://github.com/jorsol)
-[Philippe Marschall](https://github.com/marschall)
-[Robert Zenz](https://github.com/RobertZenz)
-[Vladimir Gordiychuk](https://github.com/Gordiychuk)
-[Vladimir Sitnikov](https://github.com/vlsi)
-[slmsbrhgn](https://github.com/slmsbrhgn)
+[Alexander Kjäll](https://github.com/alexanderkjall)
+[Daniel Migowski](https://github.com/dmigowski)
+[Dave Cramer](davec@postgresintl.com)
+[Jacques Fuentes](https://github.com/jpfuentes2)
+[James](https://github.com/jamesthomp)
+[Joe Kutner](https://github.com/jkutner)
+[Jorge Solorzano](https://github.com/jorsol)
+[Philippe Marschall](https://github.com/marschall)
+[Robert Zenz](https://github.com/RobertZenz)
+[Vladimir Gordiychuk](https://github.com/Gordiychuk)
+[Vladimir Sitnikov](https://github.com/vlsi)
+[slmsbrhgn](https://github.com/slmsbrhgn)
diff --git a/docs/_includes/changelog/42.1.1-release.md b/docs/_posts/2017-05-05-42.1.1-release.md
similarity index 60%
rename from docs/_includes/changelog/42.1.1-release.md
rename to docs/_posts/2017-05-05-42.1.1-release.md
index 13e70a16..7487ffa2 100644
--- a/docs/_includes/changelog/42.1.1-release.md
+++ b/docs/_posts/2017-05-05-42.1.1-release.md
@@ -1,16 +1,21 @@
-<a name="version_42.1.1"></a>
-## Version 42.1.1 (2017-05-05)
+---
+title: "PostgreSQL JDBC Driver 42.1.1 Released"
+date: 2017-05-05 00:00:00 +0300
+categories:
+ - new_release
+version: 42.1.1
+---
+**Notable changes**
-Notable changes:
-
-{% include changelog/42.1.1-notes.md %}
+* fix: infinite dates might be corrupted when transferred in binary for certain JREs. For instance, 5881610-07-11 instead of infinity.
+<!--more-->
Vladimir Sitnikov (2):
* fix: infinite dates might be corrupted when transferred in binary for certain JREs [1e5bf563](https://github.com/pgjdbc/pgjdbc/commit/1e5bf563f41203417281117ed20b183cd295b4e0)
* chore: print "include notable changes" to the generated changelog [6bc4fe07](https://github.com/pgjdbc/pgjdbc/commit/6bc4fe0758510243d1f3cb56b0b1ae374117f7e4)
-<a name="contributors_42.1.1"></a>
+<a name="contributors_{{ version }}"></a>
### Contributors to this release
We thank the following people for their contributions to this release.
diff --git a/docs/documentation/changelog.md b/docs/documentation/changelog.md
index 22f07173..07671561 100644
--- a/docs/documentation/changelog.md
+++ b/docs/documentation/changelog.md
@@ -6,14 +6,11 @@ nav: ../
---
# History of Changes
+{% comment %}There are no new lines after "for" and after "endfor" below in order to keep formatting of the output list sane.{% endcomment %}
* [Introduction and explanation of symbols](#introduction)
-* [Version 42.1.1 (2017-05-05)](#version_42.1.1)
- * [Contributors to this release](#contributors_42.1.1)
-* [Version 42.1.0 (2017-05-04)](#version_42.1.0)
- * [Contributors to this release](#contributors_42.1.0)
-* [Version 42.0.0 (2017-02-18)](#version_42.0.0)
- * [Contributors to this release](#contributors_42.0.0)
-* [Version 9.4.1212 (2016-11-01)](#version_9.4.1212)
+{% for post in site.categories.new_release %}* [Version {{ post.version }} ({{ post.date | date: "%Y-%d-%m"}})](#version_{{ post.version }})
+ * [Contributors to this release](#contributors_{{ post.version }})
+{% endfor %}* [Version 9.4.1212 (2016-11-01)](#version_9.4.1212)
* [Contributors to this release](#contributors_9.4.1212)
* [Version 9.4.1211 (2016-09-18)](#version_9.4.1211)
* [Contributors to this release](#contributors_9.4.1211)
@@ -78,11 +75,11 @@ denote the various action types:=add,
<img alt="update" src="../media/img/update.jpg" />=update
***
-{% include changelog/42.1.1-release.md %}
-
-{% include changelog/42.1.0-release.md %}
-
-{% include changelog/42.0.0-release.md %}
+{% for post in site.categories.new_release %}
+<a name="version_{{ post.version }}"></a>
+## Version {{ post.version }} ({{ post.date | date: "%Y-%d-%m"}})
+{{ post.content }}
+{% endfor %}
<a name="version_9.4.1212"></a>
## Version 9.4.1212 (2016-11-02)
diff --git a/docs/download.md b/docs/download.md
index e9ae9743..7c26bb7e 100644
--- a/docs/download.md
+++ b/docs/download.md
@@ -24,9 +24,13 @@ downloading the appropriate JAR file and dropping it into your
classpath. Source versions are also available here for recent
driver versions.
+{% for post in site.categories.new_release limit:1 %}
+{% capture current_version %}{{ post.version }}{% endcapture %}
+{% endfor %}
+
***
<a name="current"></a>
-## Current Version *42.1.1*
+## Current Version *{{ current_version }}*
This is the current version of the driver. Unless you have unusual
requirements (running old applications or JVMs), this is the driver
@@ -41,12 +45,11 @@ javax.sql package.
you will need to use a JDBC3 version of the driver, which will by
necessity not be current, found in [Other Versions](#others).
+[PostgreSQL JDBC 4.2 Driver, {{ current_version }}](download/postgresql-{{ current_version }}.jar)
-[PostgreSQL JDBC 4.0 Driver, 42.1.1](download/postgresql-42.1.1.jre6.jar)
-
-[PostgreSQL JDBC 4.1 Driver, 42.1.1](download/postgresql-42.1.1.jre7.jar)
+[PostgreSQL JDBC 4.1 Driver, {{ current_version }}.jre7](download/postgresql-{{ current_version }}.jre7.jar)
-[PostgreSQL JDBC 4.2 Driver, 42.1.1](download/postgresql-42.1.1.jar)
+[PostgreSQL JDBC 4.0 Driver, {{ current_version }}.jre6](download/postgresql-{{ current_version }}.jre6.jar)
***
@@ -86,29 +89,17 @@ versions of the JVM with the JDBC specification implemented.
<th>JDBC 4.2</th>
<th>Source</th>
</tr>
-<tr>
- <td>42.1.1</td>
- <td><a href="download/postgresql-42.1.1.jre6.jar">42.1.1 JDBC 4</a></td>
- <td><a href="download/postgresql-42.1.1.jre7.jar">42.1.1 JDBC 41</a></td>
- <td><a href="download/postgresql-42.1.1.jar">42.1.1 JDBC 42</a></td>
- <td><a href="download/postgresql-jdbc-42.1.1.src.tar.gz">42.1.1 JDBC Source</a></td>
-</tr>
-
-<tr>
- <td>42.1.0</td>
- <td>n/a</td>
- <td><a href="download/postgresql-42.1.0.jre7.jar">42.1.0 JDBC 41</a></td>
- <td><a href="download/postgresql-42.1.0.jar">42.1.0 JDBC 42</a></td>
- <td><a href="download/postgresql-jdbc-42.1.0.src.tar.gz">42.1.0 JDBC Source</a></td>
-</tr>
+{% for post in site.categories.new_release %}
+{% capture ver %}{{ post.version }}{% endcapture %}
<tr>
- <td>42.0.0</td>
- <td><a href="download/postgresql-42.0.0.jre6.jar">42.0.0 JDBC 4</a></td>
- <td><a href="download/postgresql-42.0.0.jre7.jar">42.0.0 JDBC 41</a></td>
- <td><a href="download/postgresql-42.0.0.jar">42.0.0 JDBC 42</a></td>
- <td><a href="download/postgresql-jdbc-42.0.0.src.tar.gz">42.0.0 JDBC Source</a></td>
+ <td>{{ ver }}</td>
+ <td><a href="download/postgresql-{{ ver }}.jre6.jar">{{ ver }} JDBC 4</a></td>
+ <td><a href="download/postgresql-{{ ver }}.jre7.jar">{{ ver }} JDBC 41</a></td>
+ <td><a href="download/postgresql-{{ ver }}.jar">{{ ver }} JDBC 42</a></td>
+ <td><a href="download/postgresql-jdbc-{{ ver }}.src.tar.gz">{{ ver }} JDBC Source</a></td>
</tr>
+{% endfor %}
<tr>
<td>9.4.1212</td>
diff --git a/docs/index.html b/docs/index.html
index fce92ba5..8405ae2e 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -10,24 +10,14 @@ nav:
<!-- <div id="pgFrontMain"> -->
<div id="pgFrontFeature">
<div id="pgFrontFeatureContent">
- <p class="txtDate"><strong>May 05 2017</strong></p>
- <h1 id="txtFrontFeatureHeading">PostgreSQL JDBC Driver 42.1.1 Released!</h1>
- <p>
- <strong>Notable changes</strong><br/>
- {% capture notes%}{% include changelog/42.1.1-notes.md %}{% endcapture %}
- {{ notes | markdownify }}
- </p>
- <p class="txtDate"><strong>May 04 2017</strong></p>
- <h1 id="txtFrontFeatureHeading">PostgreSQL JDBC Driver 42.1.0 Released!</h1>
- <p>
- <strong>Notable changes</strong><br/>
- {% capture notes%}{% include changelog/42.1.0-notes.md %}{% endcapture %}
- {{ notes | markdownify }}
- </p>
- <p>
- You may have noticed the change in the versioning of the driver, you can
- <a href="documentation/faq.html#versioning">read the FAQ</a> for more information.
- </p>
+ {% for post in site.posts %}
+ <p class="txtDate"><strong>{{ post.date | date_to_long_string }}</strong></p>
+ <h1 id="txtFrontFeatureHeading">{{ post.title }}</h1>
+ <div>
+ {{ post.excerpt | prepend: "<!--start-->" | split: "<!--start-->" | last }}
+ </div>
+ <p>See full <a href="/documentation/changelog.html#version_{{ post.version}}">changelog for {{ post.version}}</a>
+ {% endfor %}
<div id="txtFrontFeatureLink">
<br/>
<img src="media/img/layout/blt_blu_arrow.png" width="6" height="6" alt="" />
diff --git a/release_notes.sh b/release_notes.sh
index 8e57c771..2cd73099 100755
--- a/release_notes.sh
+++ b/release_notes.sh
@@ -6,12 +6,19 @@ VERS=${CURRENT_VERSION/-SNAPSHOT}
PREV_VERSION=`git describe --match 'REL*' --abbrev=0`
-echo "<a name=\"version_${VERS}\"></a>"
-echo "## Version ${VERS} ($(date +%Y-%m-%d))"
-echo
-echo Notable changes:
+echo ---
+echo title: "PostgreSQL JDBC Driver ${VERS} Released"
+echo date: $(date '+%Y-%m-%d %H:%M:%S %z')
+echo categories:
+echo ' - new_release'
+echo version: ${VERS}
+echo ---
+
+
+echo **Notable changes**
echo
-echo {% include changelog/$VERS-notes.md %}
+echo '*'
+echo '<!--more-->'
echo
git shortlog --format="%s@@@%H@@@%h@@@" --grep="maven-release-plugin|update versions in readme.md" --extended-regexp --invert-grep --no-merges $PREV_VERSION..HEAD | perl release_notes_filter.pl ${VERS}
[parent: 201daf1dc916]