Skip to content

Commit 039ac0e

Browse files
authored
Merge pull request #837 from EnterpriseDB/hm_2026.3-put-genai-on-notice
2 parents 0c68796 + 38b3cca commit 039ac0e

File tree

9 files changed

+51
-14
lines changed

9 files changed

+51
-14
lines changed

gatsby-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ exports.createPages = async ({ actions, graphql, reporter }) => {
326326
!navRoot.mdxNode.frontmatter.navRootedTo
327327
)
328328
navRoot = navRoot.parent;
329-
const navTree = treeToNavigation(navRoot, node);
329+
const navTree = treeToNavigation(navRoot, curr);
330330

331331
// determine next and previous nodes
332332
const prevNext = findPrevNextNavNodes(navRoot, curr);

product_docs/docs/edb-postgres-ai/1.3/ai-factory/gen-ai/index.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
title: Gen AI Builder
33
navTitle: Gen AI Builder
44
description: "Comprehensive platform for building intelligent applications and retrieval-augmented generation systems using governed knowledge bases and private AI infrastructure within EDB Postgres AI."
5+
directoryDefaults:
6+
displayBanner: |
7+
The previous Griptape-based Gen AI Builder has been removed from EDB AI Factory releases 1.3.6 and beyond, and Innovation Release 2026.3 and beyond.
8+
New functionality built around LangFlow is now available as a replacement. <a href="https://www.enterprisedb.com/docs/edb-postgres-ai/latest/ai-factory/langflow/">More details&hellip;</a>
9+
510
prevNext: true
611
redirects:
712
- /purl/ai-factory/gen-ai/agent-studio

product_docs/docs/edb-postgres-ai/1.3/ai-factory/gen-ai/reference/index.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ title: Gen AI Builder
33
originalFilePath: >-
44
https://github.com/EnterpriseDB/pgai-ai-builder/blob/main/docs/griptape-cloud/index.md
55
editTarget: originalFilePath
6-
directoryDefaults:
7-
displayBanner: 'Adapted from the <a href="https://github.com/EnterpriseDB/pgai-ai-builder">Griptape AI Framework</a> documentation.'
86
redirects:
97
- /purl/hm/gen-ai-builder:splat
108
---

product_docs/docs/edb-postgres-ai/1.3/hybrid-manager/ai-factory/index.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
title: AI Factory in Hybrid Manager
33
navTitle: AI Factory in Hybrid Manager
44
description: Learn how to use the AI Factory workload within Hybrid Manager (Hybrid Manager AI Factory), including Gen AI, model serving, vector search, and knowledge bases. Explore learning paths, use cases, and Hybrid Manager-specific capabilities.
5+
directoryDefaults:
6+
displayBanner: |
7+
The previous Griptape-based Gen AI Builder has been removed from EDB AI Factory releases 1.3.6 and beyond, and Innovation Release 2026.3 and beyond.
8+
New functionality built around LangFlow is now available as a replacement. <a href="https://www.enterprisedb.com/docs/edb-postgres-ai/latest/ai-factory/langflow/">More details&hellip;</a>
59
redirects:
610
- /purl/hm/ai-factory
711
navigation:

product_docs/docs/edb-postgres-ai/preview/ai-factory/gen-ai/index.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ title: Gen AI Builder
33
navTitle: Gen AI Builder
44
description: "Comprehensive platform for building intelligent applications and retrieval-augmented generation systems using governed knowledge bases and private AI infrastructure within EDB Postgres AI."
55
prevNext: true
6+
directoryDefaults:
7+
displayBanner: |
8+
The previous Griptape-based Gen AI Builder has been removed from EDB AI Factory releases 1.3.6 and beyond, and Innovation Release 2026.3 and beyond.
9+
New functionality built around LangFlow is now available as a replacement. <a href="https://www.enterprisedb.com/docs/edb-postgres-ai/latest/ai-factory/langflow/">More details&hellip;</a>
610
redirects:
711
- /purl/ai-factory/gen-ai/agent-studio
812
navigation:

product_docs/docs/edb-postgres-ai/preview/ai-factory/gen-ai/reference/index.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ title: Gen AI Builder
33
originalFilePath: >-
44
https://github.com/EnterpriseDB/pgai-ai-builder/blob/main/docs/griptape-cloud/index.md
55
editTarget: originalFilePath
6-
directoryDefaults:
7-
displayBanner: 'Adapted from the <a href="https://github.com/EnterpriseDB/pgai-ai-builder">Griptape AI Framework</a> documentation.'
86
redirects:
97
- /purl/hm/gen-ai-builder:splat
108
---

product_docs/docs/edb-postgres-ai/preview/hybrid-manager/ai-factory/index.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
title: AI Factory in Hybrid Manager
33
navTitle: AI Factory in Hybrid Manager
44
description: Learn how to use the AI Factory workload within Hybrid Manager (Hybrid Manager AI Factory), including Gen AI, model serving, vector search, and knowledge bases. Explore learning paths, use cases, and Hybrid Manager-specific capabilities.
5+
directoryDefaults:
6+
displayBanner: |
7+
The previous Griptape-based Gen AI Builder has been removed from EDB AI Factory releases 1.3.6 and beyond, and Innovation Release 2026.3 and beyond.
8+
New functionality built around LangFlow is now available as a replacement. <a href="https://www.enterprisedb.com/docs/edb-postgres-ai/latest/ai-factory/langflow/">More details&hellip;</a>
59
redirects:
610
- /purl/hm/ai-factory
711
navigation:

src/constants/gatsby-utils.js

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -334,10 +334,24 @@ const treeNodeToNavNode = (treeNode) => {
334334
// create a tree structure suitable for embedding in page context
335335
// for use by sidebar nav, card decks during rendering
336336
// treeNode: produced by mdxNodesToTree(), represents the root of navigation (product index, etc)
337-
// pageNode: an mdxNode representing the page for which navigation is desired
337+
// pageNode: produced by mdxNodesToTree(), representing the page for which navigation is desired
338338
const treeToNavigation = (treeNode, pageNode) => {
339-
const rootNode = treeNodeToNavNode(treeNode, true);
340-
const { depth, path } = pageNode.fields;
339+
const { depth, path } = pageNode;
340+
// special-case: if this node is a version-specific root under an unversioned product root which actually has a landing page,
341+
// then we want to rewrite children to be the children of the version-specific page. This allows unversioned siblings to exist and
342+
// be navigated to.
343+
let rootNode = null;
344+
let remapChildren = false;
345+
if (
346+
depth === 2 &&
347+
treeNode.depth === 1 &&
348+
pageNode.mdxNode?.fields?.version &&
349+
treeNode.path &&
350+
path.includes(treeNode.path)
351+
) {
352+
rootNode = treeNodeToNavNode(pageNode, true);
353+
remapChildren = true;
354+
} else rootNode = treeNodeToNavNode(treeNode, true);
341355

342356
// if this page is "rooted" to another page, then we want to collect the chain
343357
// of ancestors (but not their other children) for use as the breadcrumb trail
@@ -368,7 +382,17 @@ const treeToNavigation = (treeNode, pageNode) => {
368382
// ignore nodes that are marked as such
369383
if (n.mdxNode?.frontmatter?.navExclude) return null;
370384

371-
const navNode = treeToNavigation(n, pageNode);
385+
// special-case: if we're swapping in the version-specific page as the root, then we need to
386+
// swap out children that belong to the latest-version page with their version-specific counterparts, if they exist
387+
const navNode = treeToNavigation(
388+
(remapChildren &&
389+
pageNode.children.find(
390+
(child) => replacePathVersion(child.path) === n.path,
391+
)) ||
392+
n,
393+
pageNode,
394+
);
395+
372396
// mark "fake" children so that they can be made visually distinct, ignored, etc.
373397
if (n.parent !== treeNode || n.rootedTo === treeNode)
374398
navNode.rootedTo = true;

src/templates/doc.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,10 @@ const DocTemplate = ({ data, pageContext }) => {
201201
let title = frontmatter.title;
202202
let preciseVersion = frontmatter.version;
203203

204-
if (depth === 2 && !navTree.hideVersion) {
204+
if (depth === 2 && !navRoot.hideVersion) {
205205
// product version root
206206
title += ` ${FormatVersion(preciseVersion || version)}`;
207-
} else if (depth > 2 && !navTree.hideVersion) {
207+
} else if (depth > 2 && !navRoot.hideVersion) {
208208
const prettyProductName = (
209209
products[product] || { name: product.toUpperCase() }
210210
).name;
@@ -263,7 +263,7 @@ const DocTemplate = ({ data, pageContext }) => {
263263
<div className="d-flex flex-column flex-md-row justify-content-between align-items-center">
264264
<h1 className="balance-text">
265265
{frontmatter.title}{" "}
266-
{!navTree.hideVersion && (
266+
{!navRoot.hideVersion && (
267267
<span className="fw-light ms-2 text-muted bg-light px-2 rounded text-smaller position-relative lh-1 top-minus-3">
268268
{FormatVersion(preciseVersion || version)}
269269
</span>
@@ -286,12 +286,12 @@ const DocTemplate = ({ data, pageContext }) => {
286286
</div>
287287
</div>
288288

289-
{navTree.displayBanner ? (
289+
{navRoot.displayBanner ? (
290290
<div
291291
className="alert alert-warning mt-3"
292292
role="alert"
293293
dangerouslySetInnerHTML={{
294-
__html: navTree.displayBanner.replace(
294+
__html: navRoot.displayBanner.replace(
295295
/href="latest:splat"/,
296296
`href="${withPrefix(pageContext.pathVersions[0] || getProductUrlBase(pagePath))}"`,
297297
),

0 commit comments

Comments
 (0)