Skip to content

Commit 9983d28

Browse files
committed
Add in Banner
Signed-off-by: Dj Walker-Morgan <dj.walker-morgan@enterprisedb.com>
1 parent a4b65fc commit 9983d28

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

product_docs/docs/pgd/5.6/index.mdx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
---
22
title: "EDB Postgres Distributed (PGD)"
33
indexCards: simple
4-
redirects:
5-
- /pgd/5/compatibility_matrix
6-
- /pgd/latest/bdr
7-
- /edb-postgres-ai/migration-etl/pgd/
84
navigation:
95
- rel_notes
106
- known_issues
@@ -49,6 +45,7 @@ navigation:
4945
pdf: true
5046
directoryDefaults:
5147
version: "5.6.1"
48+
displayBanner: '<b>Warning</b>: You are not reading the most recent version of this documentation.<br/>Documentation improvements are made only to the latest version.<br/>As per semantic versioning, PGD minor releases remain backward compatible and may include important bug fixes and enhancements.<br/> We recommend upgrading the latest minor release as soon as possible.<br/>If you want up-to-date information, read the <a href="/pgd/latest/">latest PGD documentation</a>.'
5249
---
5350

5451

src/templates/doc.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,11 @@ const DocTemplate = ({ data, pageContext }) => {
267267
</div>
268268

269269
{navTree.displayBanner ? (
270-
<div className="alert alert-warning mt-3" role="alert">
271-
{navTree.displayBanner}
272-
</div>
270+
<div
271+
className="alert alert-warning mt-3"
272+
role="alert"
273+
dangerouslySetInnerHTML={{ __html: navTree.displayBanner }}
274+
/>
273275
) : null}
274276

275277
<ContentRow>

static/_redirects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
/docs/harp/latest/* /docs/pgd/latest/harp/:splat 302
5959
/docs/harp/2/* /docs/pgd/4/harp/:splat 301
6060
/docs/pglogical/latest/* /docs/pgd/3.7/pglogical/:splat 302
61+
/docs/pgd/5/* /docs/pgd/latest/:splat 302
6162

6263
# BART - EOL
6364
/docs/bart/latest/:notindex/* /docs/bart/latest/ 301

0 commit comments

Comments
 (0)