mirror of
https://github.com/Comfy-Org/cookiecutter-comfy-extension.git
synced 2026-11-04 23:47:39 +00:00
[PR #11] [MERGED] feat: add node help docs scaffold #11
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/cookiecutter-comfy-extension#11
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/cookiecutter-comfy-extension/pull/11
Author: @christian-byrne
Created: 3/29/2026
Status: ✅ Merged
Merged: 3/30/2026
Merged by: @jtydhr88
Base:
main← Head:feat/add-node-help-docs-scaffold📝 Commits (1)
d8078abfeat: add node help docs scaffold📊 Changes
4 files changed (+24 additions, -7 deletions)
View changed files
📝
hooks/post_gen_project.py(+4 -3)📝
{{cookiecutter.project_slug}}/custom-nodes-template/MANIFEST.in(+1 -0)📝
{{cookiecutter.project_slug}}/custom-nodes-template/__init__.py(+0 -4)➕
{{cookiecutter.project_slug}}/custom-nodes-template/web/docs/Example/en.md(+19 -0)📄 Description
Summary
Add a
web/docs/Example/en.mdscaffold so new custom nodes automatically get the node help page file convention set up out of the box.Docs: https://docs.comfy.org/custom-nodes/help_page
Changes
New file:
web/docs/Example/en.md— Example help page matching theExamplenode fromnodes.py, following the locale-subfolder convention (docs/{NodeName}/{locale}.md)__init__.py— Always exportWEB_DIRECTORY = "./web"(previously only exported whenfrontend_type == "js"). This is needed becauseweb/docs/must be served for the help system to find the markdown files, even when there are no JS extensions.MANIFEST.in— Addrecursive-include web/docs *.mdso help pages are included in packaged distributions.hooks/post_gen_project.py— Whenfrontend_type == "no", only removeweb/js/instead of the entireweb/directory. This preservesweb/docs/so help pages are available even for pure-Python custom nodes.Motivation
The ComfyUI frontend has a built-in node help system that renders per-node markdown documentation. Custom nodes provide help content by placing
.mdfiles in theirWEB_DIRECTORYatdocs/{NodeName}/{locale}.md. However, the cookiecutter template currently has no example of this convention, so most custom node authors don't know about it.By scaffolding the docs directory, new custom nodes will ship with help pages by default — improving the user experience and reducing the need for custom node packs to implement their own help popup solutions.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.