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
- Open the
navigation.jsonfile in theangular-cn\aio\contentdirectory. - Locate the specific section of the file that corresponds to the linked document you want to modify.
- Update the configuration settings to reflect the new path.
- Save the changes to the
navigation.jsonfile.
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.