Simplify demo workflow to use unified enhancement command
- Replace complex two-step process (auto-enhance + enhance) with single enhance command - Eliminate temporary directory management and cleanup - Direct input → output enhancement using unified Discoverer + Enhancer pipeline - Verified working on simple test site with proper: * Element discovery (h1, p elements get insertr class) * Container expansion (div with multiple children) * ID generation (deterministic data-content-id attributes) * Content type detection (text, markdown types) The justfile workflow is now much cleaner and matches our documented single-command approach.
This commit is contained in:
12
justfile
12
justfile
@@ -102,21 +102,17 @@ demo site="":
|
|||||||
just dev
|
just dev
|
||||||
elif [ "{{site}}" = "dan-eden" ]; then
|
elif [ "{{site}}" = "dan-eden" ]; then
|
||||||
if [ ! -d "./test-sites/simple/dan-eden-portfolio-demo" ]; then
|
if [ ! -d "./test-sites/simple/dan-eden-portfolio-demo" ]; then
|
||||||
echo "🔧 Dan Eden demo not ready - auto-enhancing now..."
|
echo "🔧 Dan Eden demo not ready - enhancing now..."
|
||||||
just build
|
just build
|
||||||
./insertr auto-enhance test-sites/simple/dan-eden-portfolio --output test-sites/simple/dan-eden-portfolio-temp --config test-sites/simple/dan-eden-portfolio/insertr.yaml
|
./insertr enhance test-sites/simple/dan-eden-portfolio --output test-sites/simple/dan-eden-portfolio-demo --config test-sites/simple/dan-eden-portfolio/insertr.yaml
|
||||||
./insertr enhance test-sites/simple/dan-eden-portfolio-temp --output test-sites/simple/dan-eden-portfolio-demo --config test-sites/simple/dan-eden-portfolio/insertr.yaml
|
|
||||||
rm -rf test-sites/simple/dan-eden-portfolio-temp
|
|
||||||
fi
|
fi
|
||||||
echo "🚀 Starting Dan Eden portfolio demo..."
|
echo "🚀 Starting Dan Eden portfolio demo..."
|
||||||
just demo-site "dan-eden" "./test-sites/simple/dan-eden-portfolio-demo" "3000"
|
just demo-site "dan-eden" "./test-sites/simple/dan-eden-portfolio-demo" "3000"
|
||||||
elif [ "{{site}}" = "simple" ]; then
|
elif [ "{{site}}" = "simple" ]; then
|
||||||
if [ ! -d "./test-sites/simple/test-simple-demo" ]; then
|
if [ ! -d "./test-sites/simple/test-simple-demo" ]; then
|
||||||
echo "🔧 Simple demo not ready - auto-enhancing now..."
|
echo "🔧 Simple demo not ready - enhancing now..."
|
||||||
just build
|
just build
|
||||||
./insertr auto-enhance test-sites/simple/test-simple --output test-sites/simple/test-simple-temp --config test-sites/simple/test-simple/insertr.yaml
|
./insertr enhance test-sites/simple/test-simple --output test-sites/simple/test-simple-demo --config test-sites/simple/test-simple/insertr.yaml
|
||||||
./insertr enhance test-sites/simple/test-simple-temp --output test-sites/simple/test-simple-demo --config test-sites/simple/test-simple/insertr.yaml
|
|
||||||
rm -rf test-sites/simple/test-simple-temp
|
|
||||||
fi
|
fi
|
||||||
echo "🚀 Starting simple test site demo..."
|
echo "🚀 Starting simple test site demo..."
|
||||||
just demo-site "simple" "./test-sites/simple/test-simple-demo" "3000"
|
just demo-site "simple" "./test-sites/simple/test-simple-demo" "3000"
|
||||||
|
|||||||
Reference in New Issue
Block a user