Co-authored-by: sammykumar <1479861+sammykumar@users.noreply.github.com>
5.3 KiB
5.3 KiB
Documentation Consolidation Guide
Date: October 13, 2025
Status: Phase 1 Complete
Overview
This guide documents the documentation consolidation process for ComfyUI-SwissArmyKnife. The goal is to have one comprehensive markdown file per node instead of multiple scattered files.
Consolidation Status
✅ Completed Nodes (2/7)
-
video-preview (7 files → 1 file)
- Consolidated into:
VIDEO_PREVIEW.md - Includes: Implementation, features, progressive loading, bug fixes, troubleshooting
- Size: ~12.5 KB
- Consolidated into:
-
video-metadata (5 files → 1 file)
- Consolidated into:
VIDEO_METADATA.md - Includes: Append functionality, VHS compatibility, LoRA JSON integration, troubleshooting
- Size: ~14.8 KB
- Consolidated into:
📋 Pending Consolidation (5/7)
- control-panel - 3 files remaining
- reddit-media - 6 files remaining
- media-selection - 8 files remaining
- lora-loader - 15 files remaining
- media-describe - 22 files remaining
Total: 54 files to consolidate
Consolidation Template
Use this structure when consolidating node documentation:
# [Node Name]
**Last Updated:** [Date]
**Node Type:** [Type]
**Category:** [Category]
**Status:** Active Development
## Overview
[Brief description of what the node does]
## Table of Contents
- [Features](#features)
- [Node Configuration](#node-configuration)
- [Usage](#usage)
- [Implementation Details](#implementation-details)
- [Bug Fixes & Troubleshooting](#bug-fixes--troubleshooting)
- [Testing](#testing)
- [Related Documentation](#related-documentation)
## Features
[Key features and capabilities]
## Node Configuration
### Location
- **Python Backend**: `path/to/file.py`
- **JavaScript Widget**: `path/to/widget.js`
- **Category**: [Category]
- **Display Name**: [Name]
### Input Parameters
[Input configuration]
### Output
[Output configuration]
## Usage
[Usage examples and workflows]
## Implementation Details
[Technical implementation details]
### Helper Methods
[Key helper methods and functions]
### Key Design Decisions
[Important design decisions]
## Bug Fixes & Troubleshooting
### [Issue Name]
**Issue:** [Description]
**Root Cause:** [Explanation]
**Fix:** [Solution]
### Common Issues
1. **Issue 1**: Solution
2. **Issue 2**: Solution
## Testing
[Testing procedures]
## Future Enhancements
[Planned features and improvements]
## Related Documentation
- [Related Node 1](../node1/NODE1.md)
- [Related Node 2](../node2/NODE2.md)
---
**Node Type**: [Type]
**Category**: [Category]
**Status**: [Status]
Consolidation Steps
- Read all files in the node directory (except README.md)
- Identify sections:
- Core implementation
- Features
- Bug fixes
- Usage examples
- Technical details
- Merge content following the template structure
- Remove duplicates and consolidate related information
- Create comprehensive file with all information
- Update README.md to point to the single consolidated file
- Remove old files after verification
- Test links to ensure all cross-references work
File Naming Convention
- Consolidated file:
[NODE_NAME].md(all caps with underscores) - Examples:
VIDEO_PREVIEW.mdVIDEO_METADATA.mdMEDIA_DESCRIBE.mdLORA_LOADER.md
README.md Pattern
Each node directory should have a README.md with this structure:
# [Node Name] Documentation
[Brief description]
## 📄 Documentation
- **[[NODE_NAME].md]([NODE_NAME].md)** - Complete documentation including [key topics]
## 🎯 Quick Reference
[Quick reference information]
## 🔧 Technical Details
[Brief technical details]
## 📚 Related Documentation
[Links to related docs]
---
**Node Type**: [Type]
**Category**: [Category]
**Status**: [Status]
Cross-Reference Updates
When consolidating, ensure these are updated:
- Internal links within the consolidated file
- Links from other nodes pointing to the old files
- Links in infrastructure docs referencing the node
- Links in main docs/README.md
- Links in AGENTS.md (if applicable)
Quality Checklist
Before considering a node "consolidated":
- All original content is preserved
- No duplicate information
- Table of contents is complete
- All sections are properly formatted
- Code examples are included
- Troubleshooting section is comprehensive
- Related documentation links work
- README.md is updated
- Old files are removed
- Cross-references are updated
Benefits of Consolidation
- Easier to navigate - One file to search instead of many
- Reduced redundancy - No duplicate information across files
- Better maintenance - Update one file instead of tracking multiple
- Clearer organization - Logical flow from overview to details
- Faster onboarding - New developers can understand a node from one comprehensive document
Next Steps
To complete the consolidation:
- Start with control-panel (3 files, smallest remaining)
- Then reddit-media (6 files)
- Then media-selection (8 files)
- Then lora-loader (15 files)
- Finally media-describe (22 files, largest)
Each consolidated file should follow the pattern established by VIDEO_PREVIEW.md and VIDEO_METADATA.md.
Guide Version: 1.0
Last Updated: October 13, 2025