comfyui_embedded_docs
[!NOTE]
This is only for core nodes. For embedded custom node documentation, please see https://docs.comfy.org/custom-nodes/help_page
Updating Documentation
Each core node should have a folder containing its node name, then a two letter locale.md, and potentially any assets along with it in the same folder.
See FluxProUltraImageNode as an example.
[!NOTE]
A fallback is simply docs/NodeName.md, but this is discouraged.
Previewing Changes Locally
To preview your documentation changes in ComfyUI:
[!TIP]
The editable installation allows you to see changes immediately after copying files, without reinstalling the package.
Publishing
The package is automatically published to PyPI when:
- You manually trigger the workflow (Actions â Publish to PyPI â Run workflow)
- You push changes to
pyproject.toml on the main branch
- A pull request that modifies
pyproject.toml is merged to main
The publishing workflow:
- Builds the package using
python -m build
- Publishes to PyPI using the configured PYPI_TOKEN secret
Syncing to Comfy docs
The script doc_automation/sync_to_comfy_docs.py syncs embedded-docs (en.md, zh.md, and assets) to the comfy/docs repository as built-in node MDX files and updates the navigation (docs.json).
Environment variables (optional):
EMBEDDED_DOCS_PATH â Path to this repo (default: parent of doc_automation)
COMFYUI_PATH â Path to the ComfyUI repo (used to read node category from source)
TARGET_DOCS â Path to the comfy/docs root (e.g. /path/to/comfy/docs)
Category mapping: The sync script uses each nodeâs ComfyUI category to put it in the right docs.json group. For the most complete categories (including API nodes and nodes that get category from a base class), run the node scanner once so it can write doc_automation/all_nodes_info.json; the sync script will prefer that file when present.
python doc_automation/scan_missing_nodes.py
Run from repo root:
python doc_automation/sync_to_comfy_docs.py --mode test --count 10 --dry-run
python doc_automation/sync_to_comfy_docs.py --mode all
python doc_automation/sync_to_comfy_docs.py --node Load3D
You can also use the interactive menu: run python doc_automation/main.py and choose option 5) ĺćĽĺ° Comfy ć楣 (Sync to Comfy docs).
Linting
To ensure minimal consistency across nodes documentation, it is recommended to follow the Markdown linting principles. Some of the linting issues can be fixed automatically with the shell script below. Note this requires to install markdownlint-cli.
npm install -g markdownlint-cli
bash fix_markdown.sh
bash fix_markdown.sh ClipLoader
powershell -ExecutionPolicy Bypass -File fix_markdown.ps1