## 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>
57 lines
1.4 KiB
Markdown
57 lines
1.4 KiB
Markdown
# TestDrive JSUI Sample Document
|
|
|
|
This is a sample markdown document for testing the TestDrive JavaScript UI plugin.
|
|
|
|
## Features to Test
|
|
|
|
### Basic Editing
|
|
- Click any section to edit it
|
|
- Use the save button to download your changes
|
|
- Reset button restores original content
|
|
|
|
### Control Panels
|
|
- **Contents Control** (Northwest): Document outline and navigation
|
|
- **Status Control** (East): Current document statistics
|
|
- **Debug Control** (Southeast): Development information and logs
|
|
- **Edit Control** (Northeast): Main editing actions
|
|
|
|
### Markdown Support
|
|
Test various markdown elements:
|
|
|
|
**Bold text** and *italic text*
|
|
|
|
> This is a blockquote
|
|
> with multiple lines
|
|
|
|
```javascript
|
|
// Code blocks with syntax highlighting
|
|
function testFunction() {
|
|
console.log("Hello from TestDrive JSUI!");
|
|
return true;
|
|
}
|
|
```
|
|
|
|
### Lists
|
|
1. Numbered list item one
|
|
2. Numbered list item two
|
|
3. Numbered list item three
|
|
|
|
- Bullet list item
|
|
- Another bullet item
|
|
- Nested bullet item
|
|
- Another nested item
|
|
|
|
### Tables
|
|
|
|
| Feature | Status | Notes |
|
|
|---------|--------|--------|
|
|
| Section editing | ✅ Working | Click to edit |
|
|
| Asset loading | ✅ Working | External scripts |
|
|
| Configuration | ✅ Working | JSON interface |
|
|
| Controls | 🚧 Testing | Compass positioning |
|
|
|
|
### Links and Images
|
|
Visit the [Markitect repository](https://github.com/markitect/markitect) for more information.
|
|
|
|
---
|
|
*Test document for TestDrive JSUI plugin development* |