Skip to content

Commit ed7c691

Browse files
docs: 更新 README 模板示例,说明动态渲染功能
- 在模板示例中添加 endpoint、host、scheme 动态渲染字段 - 添加注释说明服务器配置会根据 --host 参数自动适配
1 parent ef229dc commit ed7c691

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,15 @@ users:
228228
使用模板:
229229

230230
```yaml
231-
# 使用 Go template 语法
231+
# 使用 Go template 语法,支持动态渲染 GitLab 服务器信息
232232
{{- range .Users }}
233233
toolchains:
234234
gitlab:
235-
endpoint: https://your-gitlab.com
235+
# 动态渲染服务器配置(根据 --host 参数自动适配)
236+
endpoint: {{ $.Endpoint }}
237+
host: {{ $.Host }}
238+
scheme: {{ $.Scheme }}
239+
# 用户信息
236240
username: {{ .Username }}
237241
email: {{ .Email }}
238242
user_id: {{ .UserID }}

0 commit comments

Comments
 (0)