Allow sites to specify favicon

未关闭
#1,192 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
ruby
领域
documentation

调研方向

首先跟踪 Rake 任务、.rdoc_options、static_path 和 HTML 模板如何处理配置及生成的输出。定义如何接受和复制 favicon_path,然后验证在设置该项时模板会输出所请求的图标链接,并且现有的生成过程保持不变。

由索引模型根据 Issue 内容生成。

描述

enhancement
  • There needs to be an option (favicon_path?) to copy favicon to the output directory. static_path only copies files under the generator's folder.
  • The option should be available in at least Rake task AND .rdoc_options. Not sure if practical to be a command line option, but I'm not against it.
  • Templates should take this option into account and add a <link rel="icon" type="image/x-icon" href="/images/favicon.ico"> to the header when it's set.
  • (Maybe) RDoc can provide a default favicon too?
主要语言
Ruby
星标
928
派生
471
平均合并
2 天 4 分钟
30 天内合并 PR
13

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ruby/rdoc 的其他 Issue

查看 ruby/rdoc 的全部 Issue

相似的 Issue

更多 Ruby Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。