Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.21 KB

navigation-and-redirects.md

File metadata and controls

36 lines (25 loc) · 1.21 KB

Editing the website navigation and redirects

Navigation

Navigation in the Knative website is defined in the /config/nav.yml file.

The backend looks as follows:

Screenshot of the getting started section in the nav.yml file

The frontend looks as follows:

Screenshot of the getting started section in the website navigation menu

For more in-depth information on navigation, see: Configure Pages and Navigation in the MkDocs documentation and Setting up Navigation in the Material for MkDocs documentation.

Redirects

The Knative site uses mkdocs-redirects to redirect users from a page that may no longer exist (or has been moved) to their desired location.

Adding redirects to the Knative site is done in one centralized place, /config/redirects.yml. The format is shown here:

plugins:
  redirects:
    redirect_maps:
        ...
        path_to_old_or_moved_URL : path_to_new_URL