feat: consolidate testdrive-jsui to capabilities and implement plugin self-declaration
## Major Changes - Moved all testdrive-jsui assets from root to capabilities/testdrive-jsui/ - Consolidated directory structure: js/, static/css/, static/images/, static/templates/ - Implemented plugin self-declaration (get_plugin_source_dir, get_asset_paths) - Removed hardcoded plugin discovery from rendering.py - Updated all asset paths to be relative to capability root ## Architecture Improvements - Single source of truth for all testdrive-jsui assets - Plugin declares its own location (no hardcoded paths) - Generic plugin discovery using hasattr check - Clean separation: all JS in .js files, no code mixing - Standalone capability ready for independent use ## Files Changed - markitect/plugins/testdrive_jsui.py: Added self-declaration methods - markitect/plugins/rendering.py: Removed hardcoded discovery - capabilities/testdrive-jsui/README.md: Added standalone usage documentation - Moved 17 asset files to consolidated structure - Deleted obsolete /testdrive-jsui/ root directory ## Testing - All 17 assets verified and working - Tested via CLI: markitect md-render --engine testdrive-jsui - Full document rendering successful Prepares testdrive-jsui to become a git submodule with proper dependency management. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
4
capabilities/testdrive-jsui/static/images/icons/edit.png
Normal file
4
capabilities/testdrive-jsui/static/images/icons/edit.png
Normal file
@@ -0,0 +1,4 @@
|
||||
# Placeholder for edit icon
|
||||
# In a real implementation, this would be a PNG image file
|
||||
# For testing purposes, this file exists to verify asset deployment
|
||||
EDIT_ICON_PLACEHOLDER=true
|
||||
@@ -0,0 +1,2 @@
|
||||
# Placeholder for reset icon
|
||||
RESET_ICON_PLACEHOLDER=true
|
||||
2
capabilities/testdrive-jsui/static/images/icons/save.png
Normal file
2
capabilities/testdrive-jsui/static/images/icons/save.png
Normal file
@@ -0,0 +1,2 @@
|
||||
# Placeholder for save icon
|
||||
SAVE_ICON_PLACEHOLDER=true
|
||||
Reference in New Issue
Block a user