Document emails.logo and emails.logo_width (bundle config)
还没有人认领这个 Issue。
评估
- 难度
- 1/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 90/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- yaml
调研方向
首先查看 content/4.api/ 中的 bundle 配置参考,并找到用户电子邮件设置。添加 silverback_api_components.emails.logo 和 logo_width,包括它们的默认值、Twig 路径行为、正整数约束以及 website_name 替代文本的更改。更新配置示例,并验证生成的参考是否与其他 bundle 设置一致。
由索引模型根据 Issue 内容生成。
描述
The API components bundle adds config for the logo at the top of every email it sends (user emails and the orphaned resources notification): components-web-app/api-components-bundle#576 (issue components-web-app/api-components-bundle#573).
To document in the bundle configuration reference (content/4.api/), near the user email settings:
silverback_api_components.emails.logo: a Twig path to the image (e.g.emails/logo.pngfortemplates/emails/logo.png, or a namespaced@App/...path). Not a filesystem path: it is embedded through Twig'semail.image(). Default: the bundle's CWA logo (@SilverbackApiComponents/assets/images/email_logo.png).silverback_api_components.emails.logo_width: optional width in pixels (positive integer). Set it for a 2x (retina) image so it displays at half its pixel width; null shows the image at its own width (capped by the stylesheet'smax-height: 140px).- The logo's alt text is now the site's
website_name(it wasLogo). - This replaces the workaround of overriding
templates/bundles/SilverbackApiComponentsBundle/emails/_template.html.twigand the logo image.
silverback_api_components:
emails:
logo: emails/logo.png
logo_width: 200
- 主要语言
- TypeScript
- 星标
- 0
- 派生
- 0
- 平均合并
- 1 小时 20 分钟
- 30 天内合并 PR
- 1
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
components-web-app/docs 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 40/100
components-web-app/docs#314 · 1 条评论 ·
-
documentation
难度 4/5 3-5 天 新手友好度 45/100
components-web-app/docs#290 · 2 条评论 ·
-
难度 5/5 一周以上 新手友好度 35/100
components-web-app/docs#289 · 2 条评论 ·
-
enhancement
难度 5/5 一周以上 新手友好度 15/100
components-web-app/docs#237 · 2 条评论 ·
-
难度 5/5 一周以上 新手友好度 35/100
components-web-app/docs#1 · 3 条评论 ·
查看 components-web-app/docs 的全部 Issue
相似的 Issue
-
area: cli bug flake ready-for-agent
难度 2/5 1-3 小时 新手友好度 62/100
gazetta-studio/gazetta-studio#1772 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
-
needs-triage
难度 2/5 1-3 小时 新手友好度 66/100
microsoft/playwright#43875 · 1 条评论 ·
维护者通常 1 天内回复
-
documentation good first issue
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
feature
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复