fix: replace real module names with generic examples in skill docs

This commit is contained in:
cheliangzhao
2026-02-11 11:40:58 +08:00
parent a10227e589
commit bba88755f6
2 changed files with 10 additions and 10 deletions

View File

@@ -118,7 +118,7 @@ Build only a specific module for faster iteration:
hvigorw assembleHap -p module=entry@default --mode module -p buildMode=release --no-daemon hvigorw assembleHap -p module=entry@default --mode module -p buildMode=release --no-daemon
# Build single HSP module # Build single HSP module
hvigorw assembleHsp -p module=feature_module@default --mode module -p buildMode=release --no-daemon hvigorw assembleHsp -p module=my_feature@default --mode module -p buildMode=release --no-daemon
# Build single HAR module # Build single HAR module
hvigorw assembleHar -p module=library@default --mode module -p buildMode=release --no-daemon hvigorw assembleHar -p module=library@default --mode module -p buildMode=release --no-daemon
@@ -128,7 +128,7 @@ hvigorw assembleHsp -p module=module1@default,module2@default --mode module -p b
``` ```
**Module name format:** `{moduleName}@{targetName}` **Module name format:** `{moduleName}@{targetName}`
- `moduleName`: Directory name of the module (e.g., `entry`, `feature_home`) - `moduleName`: Directory name of the module (e.g., `entry`, `my_feature`)
- `targetName`: Target defined in module's `build-profile.json5` (usually `default`) - `targetName`: Target defined in module's `build-profile.json5` (usually `default`)
**When to use single module build:** **When to use single module build:**

View File

@@ -22,8 +22,8 @@ All modules are defined in `build-profile.json5` at the project root, in the `mo
] ]
}, },
{ {
"name": "support_http", "name": "my_library",
"srcPath": "./support/support_http", "srcPath": "./library/my_library",
"targets": [...] "targets": [...]
} }
] ]
@@ -89,15 +89,15 @@ Module build outputs are located at:
### Example ### Example
For module `support_http` with `srcPath: "./support/support_http"`: For module `my_library` with `srcPath: "./library/my_library"`:
``` ```
support/support_http/build/default/outputs/default/ library/my_library/build/default/outputs/default/
├── support_http-default-signed.hsp ← Signed, ready to install ├── my_library-default-signed.hsp ← Signed, ready to install
├── support_http-default-unsigned.hsp ├── my_library-default-unsigned.hsp
├── support_http.har ├── my_library.har
├── app/ ├── app/
│ └── support_http-default.hsp │ └── my_library-default.hsp
├── mapping/ ├── mapping/
│ └── sourceMaps.map │ └── sourceMaps.map
└── pack.info └── pack.info