Skip to content

Commit

Permalink
capitalizing sidebar removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurens - Codit BE committed Apr 26, 2024
1 parent 3926136 commit c1f66ff
Showing 1 changed file with 4 additions and 23 deletions.
27 changes: 4 additions & 23 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,37 +70,18 @@ module.exports = {
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
routeBasePath: "/",
routeBasePath: '/',
path: 'preview',
sidebarCollapsible: false,
// Please change this to your repo.
editUrl:
'https://github.com/arcus-azure/arcus.webapi/edit/master/docs',
includeCurrentVersion:process.env.CONTEXT !== 'production',
sidebarItemsGenerator: async function ({
defaultSidebarItemsGenerator,
...args
}) {
const sidebarItems = await defaultSidebarItemsGenerator(args);
const capitalizeLabels = (items) => {
return items?.map(item => ({
...item,
label: item.label?.charAt(0).toUpperCase() + item.label?.slice(1),
items: item.items ? capitalizeLabels(item.items) : null
}));
}

return capitalizeLabels(sidebarItems)
}

editUrl: 'https://github.com/arcus-azure/arcus.webapi/edit/master/docs',
includeCurrentVersion: process.env.CONTEXT !== 'production',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
stylesheets: [
'https://fonts.googleapis.com/css2?family=Bitter:wght@700&family=Inter:wght@400;500&display=swap',
],
stylesheets: ['https://fonts.googleapis.com/css2?family=Bitter:wght@700&family=Inter:wght@400;500&display=swap'],
};

0 comments on commit c1f66ff

Please sign in to comment.