Navigation

Learn how to manage both primary and secondary navigation within your workspace. This includes organizing your pages and ensuring that users can easily find the information they need.
View as Markdown

Overview

The primary and secondary navigations are the main user pathways for your design system documentation. This guide provides instructions on how to effectively add and manage both navigation types, detailing the various features available to enhance user experience and accessibility.

Primary Navigation

The primary navigation in the workspace allows you to organize and manage your content efficiently. Here’s how you can use and customize the primary nav:

Screenshot 2024-08-05 at 12.28.19 PM.png

Adding a New Primary Nav Section

To add a new nav item to the primary nav:

  1. Click on the “Add New” button.
  2. A modal will appear where you can choose to create a Page, Pattern, or Group, or External Link.
  3. Select the appropriate option, fill in the necessary details, and click “Create” to add the new section to the primary nav.

Screenshot 2024-08-05 at 12.29.49 PM.png

Primary Nav Action Menu

The primary nav now includes an action menu that provides convenient options for managing your workspace navigation. To access the action menu, hover over a primary nav item. Click on the action menu button to open the menu.

The action menu includes the following options:

  • Add Subpage: Adds a Page, Pattern, or Group, or External Link to the Secondary Menu.
  • Rename: Allows you to change the name of the primary nav item.
  • Move to: Moves the primary nav item to a different position within the primary nav.
  • Hide Page: Hides the primary nav item from the primary navigation display.
  • Change Privacy: Adjusts the privacy settings for the primary nav item.
  • Delete: Removes the primary nav item from the primary navigation.

Screenshot 2024-08-05 at 12.31.50 PM.png

Re-ording Primary Navigation Items

To reorder the primary nav items, simply click and drag the action menu icon on the left side of each primary nav item. Dragging the icon left or right will change the position of the primary nav item accordingly.


Secondary Navigation

Items added to the secondary navigation are directly correlated to the primary navigation items.

  • For example, if “Docs” is a primary navigation item, then “Adding Documentation” would be a secondary navigation item under “Docs,” serving as a subpage.
  • This hierarchical structure ensures that secondary navigation items are contextually linked to their corresponding primary navigation items, providing a clear and organized navigation experience for users.

Adding a new Secondary item

  1. From within the left sidebar, click the “Add New” button.
  2. A modal will appear where you can choose to create a Page, Pattern, Group, or External Link.
  3. Select the appropriate option, fill in the necessary details, and click “Add Page/Pattern/Group” to add the new section to the primary nav.

Screenshot 2024-08-05 at 1.43.34 PM.png

Secondary Nav Action Menu

The secondary nav includes an action menu that provides convenient options for managing your workspace navigation. To access the action menu, hover over a secondary nav item. Click on the action menu button to open the menu.

The action menu includes the following options:

  • Add Subpage: Adds a Page, Pattern, or Group, or External Link to the Secondary Menu.
  • Rename: Allows you to change the name of the secondary nav item.
  • Convert to Pattern: Converts the secondary nav item to a reusable pattern for easy sharing and consistency.
  • Duplicate: Creates a copy of the secondary nav item.
  • Move to: Moves the secondary nav item to a different position within the primary nav.
  • Hide Page: Hides the secondary nav item from the secondary navigation display.
  • Change Privacy: Adjusts the privacy settings for the secondary nav item.
  • Delete: Removes the primary nav item from the secondary navigation.

Screenshot 2024-08-05 at 2.04.42 PM.png

Re-ording Secondary Navigation Items

To reorder the secondary nav items, simply click and drag the action menu icon on the left side of each nav item. Dragging the icon up or down will change the position of the secondary nav item accordingly.

Adding a new Subpage

  1. Hover over the desired link in your sidebar menu that you wish to expand.
  2. Click the circle icon with a plus sign (+).
  3. A dropdown menu will appear, allowing you to add a Page, Pattern, Group, or External Link under the selected link.
  4. Choose the entity type that best suits your needs.
  5. Select the appropriate option, fill in the necessary details, and click “Add Page/Pattern/Group”.

Screenshot 2024-08-05 at 1.50.30 PM.png