Decouple build artifact naming from RFC "seriesInfo" metadata

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

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
48/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
markdown, python, shell

调研方向

Start with openid/fapi/build-all.py and the markdown2rfc container's make.sh entrypoint, which both derive output names from seriesInfo.value. Trace how build metadata and output names flow into HTML and XML generation, then check the openid/publication checks. Done means documents without a seriesInfo block build with OIDF naming, existing identifiers and artifacts remain intact, and rendered output has no unintended IETF metadata.

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

描述

Problem

The FAPI build pipeline currently depends on the "seriesInfo.value" field to determine output filenames.

This dependency exists in two places:

  • "openid/fapi/build-all.py" extracts the output basename from a "value = "..."" line.
  • The "danielfett/markdown2rfc" container's "make.sh" entrypoint uses "grep -m1 value" for the same purpose.

This forces OpenID Foundation documents to include RFC-specific "seriesInfo" metadata solely to make the build succeed.

For example, FAPI 2.0 Implementation Advice currently declares "name = "Internet-Draft"", although it is not an IETF Internet-Draft.

Proposed changes

  1. Decouple output filename generation from "seriesInfo". Derive the document basename from the source filename and the draft revision from the document title or explicitly configured build metadata.
  2. Pass the output basename explicitly to the Markdown-to-HTML conversion pipeline, bypassing or updating the container entrypoint's reliance on "grep".
  3. Maintain backward compatibility for existing FAPI documents that currently use "seriesInfo.value".
  4. Ensure the generated HTML and XML do not incorrectly identify OIDF documents as IETF Internet-Drafts or Standards Track documents.
  5. Preserve the existing manifest, HTML filename normalization, and XML artifact generation.

Acceptance criteria

  • Existing FAPI documents continue to build without changing their published document identifiers.
  • A document without a "[seriesInfo]" block builds successfully.
  • The output filename follows the OIDF specification naming conventions.
  • The rendered HTML contains no unintended IETF Internet-Draft metadata or boilerplate.
  • The generated artifacts pass the "openid/publication" checks.

References

主要语言
HTML
星标
5
派生
3
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

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

openid/fapi 的其他 Issue

查看 openid/fapi 的全部 Issue

相似的 Issue

更多 Build System Issue

把新 issue 发到你的邮箱

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