mirror of
https://github.com/Comfy-Org/embedded-docs.git
synced 2026-11-05 00:17:31 +00:00
[PR #188] [MERGED] fix: description extraction skips plain-paragraph disclaimers and reads overview H2s #188
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/embedded-docs#188
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/embedded-docs/pull/188
Author: @lin-bot23
Created: 10/17/2026
Status: ✅ Merged
Merged: 10/18/2026
Merged by: @comfyui-wiki
Base:
main← Head:fix/desc-disclaimer-ja📝 Commits (3)
9911c53fix: skip plain-paragraph AI disclaimers when building descriptions74add05fix: read the overview from an overview H2 when the page has no lead paragraphd5c3848fix: require AI wording in the English disclaimer matcher📊 Changes
2 files changed (+132 additions, -7 deletions)
View changed files
📝
docs-generation/scripts/sync_to_comfy_docs.py(+59 -7)📝
docs-generation/tests/test_sync_helpers.py(+73 -0)📄 Description
Summary
Two defects in the description extractor made localized node pages ship meta descriptions that describe nothing.
1. Plain-paragraph AI disclaimers became the description.
get_description_from_content()only skipped the disclaimer when the page wrote it as a blockquote (> ...). The ja and zh pages ship it as a plain opening paragraph, and the line also carries the[GitHubで編集する](...)/[在GitHub上编辑](...)link. On the docs site 27 ja pages and 1 zh page used the disclaimer as their whole description:ja/built-in-nodes/CaseConverter.mdx→このドキュメントはAIによって生成されました。ja/built-in-nodes/StringConcatenate.mdx→このドキュメントはAI生成です。After #187 grew short descriptions to the 40-char floor these got worse, because the growth pulled the "edit on GitHub" URL into the 160-char window.
2. Pages whose overview sits under an H2 fell back to the English template. 30 nodes write the overview as
## 概述/## 概要/## 개요/## Overviewinstead of a lead paragraph under the H1. The extractor broke on the first H2, produced an empty description, andbuild_frontmatter()filled in"Complete documentation for the X node in ComfyUI. Learn its inputs, outputs, parameters and usage."on zh/ja/ko pages (120 pages).Changes
docs-generation/scripts/sync_to_comfy_docs.pyDISCLAIMER_LINEmatches the disclaimer opening in every shipped language (This document was generated…,此文档由 AI…,このドキュメントは AI…,이 문서는 AI…), blockquote or plain paragraph. The old blockquote check is kept as_BLOCKQUOTE_AI_DISCLAIMERfor pages that use the quote form with other wording._is_overview_heading()/_OVERVIEW_HEADINGS: before any prose has been collected, an overview-style H2 is entered instead of ending the scan; a later## Overviewtherefore cannot hijack text that already started under the H1. Doubled-hash headings (## ## 概述, a known translation artifact) are normalised.This node applies AI-generated textures…).docs-generation/tests/test_sync_helpers.py: 8 regression tests covering the ja/zh plain-paragraph disclaimer (with the GitHub link), the English wordingThis document is AI-generated/was generated with AI, ordinary prose likeThis document was written to explain the node(kept, not skipped), a legitimate AI-generated mention, overview H2s in zh/ja/ko/en, the doubled-hash heading, and## Inputsfirst (template fallback remains correct there).Verification
python3 -m unittest tests.test_sync_helpers→ 40 tests OK.sync_to_comfy_docs.py --mode allagainst a docs worktree:AI-generated/AI生成/AI에/AIによって/github.com/ translation-preamble wording.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.