Display README.lhs if there is no README.md

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

还没有人认领这个 Issue。

评估

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

调研方向

首先跟踪 hackage-server 中针对 README.md 的包选择和渲染行为,然后将其与此处描述的 README.lhs 和 Cabal 打包细节进行比较。当 README.md 不存在时,已打包的 README.lhs 能够被渲染为 Markdown,且无需额外的 extra-files 条目,即表示完成;使用相关的现有测试套件验证该行为。

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

描述

markdown-unlit treats Markdown files as Literate Haskell, and it recommends using a README.lhs file symlinked from README.md. The README.lhs will already be included in the package due to it being used in a test suite, while the README.md would need to additionally be added via an extra-files entry in the Cabal file.

It would be nice if Hackage rendered the README.lhs as Markdown if no README.md file is included in the package.

The one issue with this is if the README.lhs is in LaTeX or some other format. However, GitHub doesn’t support LaTeX as a README format (and I think the same is true of other software forges), so I think this pattern is unlikely.

This is different from other README requests like #574 and #890 in that it doesn’t require any new rendering, just falling back to a different file name.

Unfortunately, Hackage doesn’t track test-suite dependencies, so it’s hard to tell how widespread this pattern is, but I know at least one package that has a README.lhs without a README.md in the Cabal package that would benefit from this (and I would like to do the same with my own packages).

主要语言
Haskell
星标
471
派生
228
平均合并
5 天 6 小时
30 天内合并 PR
3

环境准备

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

从这里开始

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

haskell/hackage-server 的其他 Issue

查看 haskell/hackage-server 的全部 Issue

相似的 Issue

更多 Haskell Issue

把新 issue 发到你的邮箱

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