Customising Menu
This guide will walk you through the process of adding new menu items and modifying dashboard URLs in the DevCentral.
Adding New Menu Items
To add a new menu item, follow these steps:
Open the
_config.ymlfile in your dev central repository, typically sfops-dev-central in your GitHub Organisation.Locate the
menusection in the file. It should look similar to this:
menu:
- title: Dashboards
icon: fas fa-chart-line
submenu:
- name: CI/CD Performance
link: "#cicd"
iframeZoom: 1
- name: Package Evolution
link: "#evolution"
url: "packageVisualisation/index.html"
- name: Platform Overview
link: "#platformOverview"
- name: Package Metrics
link: "#packageSummary"
# ... rest of the menu items ...To add a new top-level menu item, create a new item under the
menusection with the following properties:title: The text that appears in the menu for this item.icon: The Font Awesome icon class to be displayed next to the menu item.submenu: An array of submenu items for this menu item.
To add a new submenu item, create a new item under the
submenuarray of the desired top-level menu item with the following properties:name: The text that appears in the submenu for this item.link: The unique identifier for the submenu item, prefixed with#.url(optional): The URL or path to the page or resource associated with this submenu item.iframeZoom(optional): The zoom level for the iframe displaying the page or resource.
Save the
_config.ymlfile after making the necessary changes.
Modifying Dashboard URLs
DevCentral allows you to specify the URLs for dashboard items directly in the _config.yml file. This includes the URLs for the CI/CD Performance, Platform Overview, and Package Metrics dashboards, that are iFrames from your monitoring platform such as DataDog, Splunk or NewRelic
To modify the dashboard URLs, follow these steps:
Open the
_config.ymlfile in your project.Locate the
menusection and find the submenu item corresponding to the dashboard you want to modify.Update the
urlproperty of the submenu item with the desired URL. For example, to change the CI/CD Performance dashboard URL:
menu:
- title: Dashboards
icon: fas fa-chart-line
submenu:
- name: CI/CD Performance
link: "#cicd"
url: "https://your-custom-url.com/cicd-performance"
iframeZoom: 1Save the
_config.ymlfile after making the necessary changes.
Last updated