Skip to content

Commit

Permalink
DOP-4810: All Products dropdown docs-qa links (#1300)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmeigs authored Nov 4, 2024
1 parent 6fdc4c7 commit 89cc8e1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions plugins/utils/products.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
const { baseUrl } = require('../../src/utils/base-url');

const createProductNodes = async ({ db, createNode, createNodeId, createContentDigest }) => {
// Get all MongoDB products for the sidenav
const products = await db.fetchAllProducts();
products.forEach((product) => {
const url = baseUrl(product.baseUrl + product.slug);

createNode({
children: [],
id: createNodeId(`Product-${product.title}`),
Expand All @@ -15,7 +11,7 @@ const createProductNodes = async ({ db, createNode, createNodeId, createContentD
},
parent: null,
title: product.title,
url,
url: product.baseUrl + product.slug,
});
});
};
Expand Down

0 comments on commit 89cc8e1

Please sign in to comment.