mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Update docusaurus.config.js
This commit is contained in:
parent
691fb23d84
commit
f8e157e3c3
@ -59,6 +59,20 @@ const siteConfig = {
|
||||
],
|
||||
},
|
||||
exclude: ["**/**/_*.md"],
|
||||
// Adding the sidebarItemsGenerator with reverse logic
|
||||
async sidebarItemsGenerator({defaultSidebarItemsGenerator, ...args}) {
|
||||
const sidebarItems = await defaultSidebarItemsGenerator(args);
|
||||
|
||||
// Reverse items only for the 'Changelog' category
|
||||
const modifiedSidebarItems = sidebarItems.map((item) => {
|
||||
if (item.type === 'category' && item.label === 'Changelog') {
|
||||
return { ...item, items: item.items.reverse() };
|
||||
}
|
||||
return item;
|
||||
});
|
||||
|
||||
return modifiedSidebarItems;
|
||||
},
|
||||
},
|
||||
blog: false,
|
||||
theme: {
|
||||
@ -128,7 +142,7 @@ const siteConfig = {
|
||||
{
|
||||
blogTitle: "Blog",
|
||||
blogDescription:
|
||||
"A resource for Refine, front-end ecosystem, and web development",
|
||||
"A resource for OpenPanel, front-end ecosystem, and web development",
|
||||
routeBasePath: "/blog",
|
||||
postsPerPage: 12,
|
||||
blogSidebarTitle: "All posts",
|
||||
|
Loading…
Reference in New Issue
Block a user