Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

docs: update route map config guide (#2054)

ZhengXd6838f56a342
diff --git a/frontend/public/help/README.md b/frontend/public/help/README.md
index 1fae1697ac..24724c2dea 100644
--- a/frontend/public/help/README.md
+++ b/frontend/public/help/README.md
@@ -1,25 +1,31 @@
## Help file naming rules
-Let's name our help files based on routes/domains, and all files should start with `help.` to indicate that it is a help doc. For example, `help.environment.md` is the help file that stands for the whole `/environment` page. If you want to create a more detailed help file to explain *Approval Policy* under `\environment`, you can name the file to `help.environment.approval-policy.md`.
+Let's name our help files based on routes/domains, and all files should start with `help.` to indicate that it is a help doc. For example, `help.environment.md` is the help file that stands for the whole `/environment` page. If you want to create a more detailed help file to explain _Approval Policy_ under `\environment`, you can name the file to `help.environment.approval-policy.md`.
If the objective of the explanation doesn't belong to any specific route/domain, we can name it with `help.global...`.
## Route map configuration guide
-File `routeMap.json` contains the configuration for the help system.
+File `routeMapList.json` contains the configuration for the help system.
-It maps from the route name to the help document name. If you're going to add a new mapping rule, you can add a new line in it.
+It maps from the route name to the help document name. It lists all available route names in the whole project. If you want to add a new mapping rule, you can fill in the help name next to the route name.
The format is:
```json
- "name of route": "markdown's file name without '.md'"
+[
+ ...,
+ {
+ "routeName": "write name of route here",
+ "helpName": "write markdown's file name without '.md' here"
+ },
+ ...
+]
```
-For example, `"workspace.project": "help.project"` means let's connect the `help.project.md` file with the route `/project`.
+For example, `{ "routeName": "workspace.project", "helpName": "help.project" }` means let's connect the `help.project.md` file with the route `/project`.
-Note:
+Note:
-1. Configs here only works on `/issue`, `/project`, `/db`, `/instance`, `/environment` and `/setting`. If you want to add help in other places, please ask developers for help.
-
-2. Make sure that the markdown file is available in both `/en` and `/zh` directory.
\ No newline at end of file
+1. Configs here work on all route names that are listed in `routeMapList.json`. If you want to add help in other places, please ask developers for help.
+2. Don't forget to provide markdown files in both `/en` and `/zh` directory.