Skip to content

Commit aed711d

Browse files
committed
Define canonical URL in faq and release notes
1 parent deb5a2d commit aed711d

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,8 @@ processResources {
138138
asciidoctorj {
139139
// NOTE: Don't upgrade to v 3.0.0, as it requires Java 11
140140
version = '2.5.13'
141+
142+
docExtensions file('doc-extension.groovy')
141143
}
142144

143145
tasks.named('asciidoctor', AsciidoctorTask).configure {

doc-extension.groovy

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
docinfo_processor {
2+
document -> {
3+
if (!document.basebackend('html') || !document.hasAttribute('fb-canonical-html')) {
4+
return
5+
}
6+
return "<link rel=\"canonical\" href=\"${document.getAttribute('fb-canonical-html')}\"/>"
7+
}
8+
}

src/docs/asciidoc/faq.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
:jaybird4-example-version: {jaybird4-full-version}.java11
1616
:jaybird3-full-version: 3.0.12
1717
:sectnums:
18+
:fb-canonical-html: https://firebirdsql.org/docs/drivers/java/faq.html
1819

1920
[#jaybird]
2021
= Jaybird

src/docs/asciidoc/release_notes.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
:sectnums:
1111
:jaybird-fbclient-version: 4.0.4.0
1212
:jna-version: 5.15.0
13+
:fb-canonical-html: https://firebirdsql.org/docs/drivers/java/5.0.x/release_notes.html
1314

1415
ifeval::["{version_tag}" != ""]
1516
[WARNING]

0 commit comments

Comments
 (0)