BMAD-METHOD/docs/zh-cn/how-to
LanyGuan b4d73b7daf
Fix installer custom modules http (#2344)
* fix(installer): preserve http protocol in custom module clone URLs

Previously, parseSource() hardcoded 'https://' when building cloneUrl,
forcing http:// Git URLs (e.g., internal LAN hosts) to upgrade to https.
This broke cloning for self-hosted Git servers that only serve over HTTP.

- Capture the protocol from the regex match instead of discarding it
- Update JSDoc and inline comments to document HTTP support
- Update install-custom-modules docs (EN, ZH, VN) to list HTTP URL type

Fixes the --custom-source flag for http:// addresses.

* docs(installer): update JSDoc to mention HTTP support in cloneRepo

Add HTTP to the cloneRepo method's JSDoc param description.
Also fixes minor spacing in empty arrow functions (formatting).

* docs(installer): fix JSDoc annotation for cloneRepo param

Correct @param backtick escaping in cloneRepo JSDoc.
Also documents HTTP as a supported protocol alongside HTTPS and SSH.

---------

Co-authored-by: 关惠民 <9155544@qq.com>
2026-04-27 19:58:38 -05:00
..
customize-bmad.md docs(zh-cn): refine story 2.5 and 2.6 how-to guides (#2097) 2026-03-23 19:20:03 -06:00
established-projects.md docs(zh-cn): refine established project guides (#2096) 2026-03-22 10:27:41 -06:00
get-answers-about-bmad.md docs(zh-cn): refine help and quick-fixes guides (#2095) 2026-03-22 10:06:58 -06:00
install-bmad.md refactor(installer): remove custom content installation feature (#2227) 2026-04-07 21:41:03 -05:00
install-custom-modules.md Fix installer custom modules http (#2344) 2026-04-27 19:58:38 -05:00
non-interactive-installation.md refactor(installer): remove custom content installation feature (#2227) 2026-04-07 21:41:03 -05:00
project-context.md docs(zh-cn): refine established project guides (#2096) 2026-03-22 10:27:41 -06:00
quick-fixes.md docs(zh-cn): refine help and quick-fixes guides (#2095) 2026-03-22 10:06:58 -06:00
shard-large-documents.md docs(zh-cn): refine story 2.5 and 2.6 how-to guides (#2097) 2026-03-23 19:20:03 -06:00
upgrade-to-v6.md chore: remove SM agent (Bob) and migrate to Developer agent (#2186) 2026-04-02 12:25:24 -07:00