Modifying the Path of Linked Documents in Angular Documentation

Modifying the Path of Linked Documents in Angular Documentation

When navigating the Angular documentation, you may need to modify the path of linked documents. This can be achieved by making changes to specific files within the project. In this article, we will explore where to modify the path links on the left of the Angular documentation program and provide a step-by-step guide on how to make these changes.

Modifying Path Links

To modify the path links, you need to locate the navigation.json file, which is stored in the following directory:

angular-cn\aio\content\navigation.json

This file contains the configuration for the navigation links on the left of the Angular documentation program.

Referencing the SRC Source File

For a detailed understanding of the navigation.json file, you can refer to the contents of the original source file:

https://src.ossez.com/angular/angular-cn/blob/aio/aio/content/navigation.json

Modifying the Path

To modify the path of the linked document, you will need to make changes to the navigation.json file. This involves updating the configuration settings to reflect the new path.

Step-by-Step Guide

  1. Open the navigation.json file in the angular-cn\aio\content directory.
  2. Locate the specific section of the file that corresponds to the linked document you want to modify.
  3. Update the configuration settings to reflect the new path.
  4. Save the changes to the navigation.json file.

Example

Suppose you want to modify the path of a linked document from /path/to/document to /new/path/to/document. You would update the navigation.json file as follows:

{
  "sections": [
    {
      "title": "Document Title",
      "url": "/new/path/to/document"
    }
  ]
}

By following these steps, you can modify the path of linked documents in the Angular documentation program.