needs.json exports first-pass post_content for render-after-needs-collection templates

オープン
#1,119 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
documentation

調査の方向性

Start by reading _reread_post_template_pages in score_sphinx_needs_templates and the needs builder path used by needs_json and docs_check; compare when each builder renders the marked templates. The issue points to #763 for the HTML-only check and #1093 for the discovery context. Done when exported post_content matches rendered HTML, or marked templates are excluded from the export.

索引モデルが issue の本文から書いたものです。

説明

Problem

Post-templates marked score: render-after-needs-collection are re-rendered only for the html builder (_reread_post_template_pages in score_sphinx_needs_templates). The needs builder behind needs_json and docs_check therefore exports post_content from the first render. At that point backlinks and document ownership are not yet known.

For example, the post_content of doc_tool__score_docs_as_code in needs.json says "no potential malfunction is documented", because belongs_to_back is still empty during the first render. This affects every marked report template, not just the Tool Verification Report.

Expected

The post_content exported to needs.json matches the rendered HTML, or marked templates are excluded from the export.

Pointers

  • The html-only check was introduced in #763.
  • Found while reviewing #1093.
主要言語
Python
スター
11
フォーク
39
平均マージ
1日 13時間
マージ済み PR(30日)
65

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

eclipse-score/docs-as-code のほかの issue

eclipse-score/docs-as-code の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。