- Archive: 85 agent .txt files → docs/archive/agents/legacy_txt/ - Scripts: Move 110 shell scripts → scripts/ (keep deploy.sh in root) - Models: Move 18 .safetensors → ml/models/checkpoints/training_artifacts/ - Delete: 34 directories (~33GB freed) - target/, coverage_*, test artifacts - Build: Clean 14 build artifacts (.rlib, .o, .pid, binaries) - Tests: Move 14 .rs files → tests/standalone/ - SQL: Move 5 files → sql/ (keep init-db*.sql for Docker) - Wave 153: Archive to docs/archive/historical/wave153/ - Docs: Archive 9 markdown files to wave_d/reports/ and historical/ Total impact: ~34GB freed (both waves), root directory cleaned from 583 to ~40 essential files Directory count reduced from 65 to 31 (52% reduction) All historical data preserved in organized archive structure
63 lines
1.9 KiB
Bash
Executable File
63 lines
1.9 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "=== DOCUMENTATION STRUCTURE VERIFICATION ==="
|
|
echo ""
|
|
|
|
echo "1. Master Index"
|
|
if [ -f "docs/ML_INFRASTRUCTURE_GUIDE.md" ]; then
|
|
echo " ✅ ML_INFRASTRUCTURE_GUIDE.md exists ($(wc -l < docs/ML_INFRASTRUCTURE_GUIDE.md) lines)"
|
|
else
|
|
echo " ❌ ML_INFRASTRUCTURE_GUIDE.md missing"
|
|
fi
|
|
|
|
echo ""
|
|
echo "2. Quick Start Guides"
|
|
if [ -f "docs/guides/QUICK_START_TRAINING.md" ]; then
|
|
echo " ✅ QUICK_START_TRAINING.md exists ($(wc -l < docs/guides/QUICK_START_TRAINING.md) lines)"
|
|
else
|
|
echo " ❌ QUICK_START_TRAINING.md missing"
|
|
fi
|
|
|
|
if [ -f "docs/guides/QUICK_START_TUNING.md" ]; then
|
|
echo " ✅ QUICK_START_TUNING.md exists ($(wc -l < docs/guides/QUICK_START_TUNING.md) lines)"
|
|
else
|
|
echo " ❌ QUICK_START_TUNING.md missing"
|
|
fi
|
|
|
|
echo ""
|
|
echo "3. Category Directories"
|
|
for dir in training deployment analysis api guides troubleshooting archive; do
|
|
if [ -d "docs/$dir" ]; then
|
|
echo " ✅ docs/$dir/ exists"
|
|
else
|
|
echo " ❌ docs/$dir/ missing"
|
|
fi
|
|
done
|
|
|
|
echo ""
|
|
echo "4. Consolidation Report"
|
|
if [ -f "DOCUMENTATION_CONSOLIDATION_REPORT.md" ]; then
|
|
echo " ✅ DOCUMENTATION_CONSOLIDATION_REPORT.md exists ($(wc -l < DOCUMENTATION_CONSOLIDATION_REPORT.md) lines)"
|
|
else
|
|
echo " ❌ DOCUMENTATION_CONSOLIDATION_REPORT.md missing"
|
|
fi
|
|
|
|
echo ""
|
|
echo "5. Docs Index"
|
|
if [ -f "docs/README.md" ]; then
|
|
echo " ✅ docs/README.md exists ($(wc -l < docs/README.md) lines)"
|
|
else
|
|
echo " ❌ docs/README.md missing"
|
|
fi
|
|
|
|
echo ""
|
|
echo "6. Documentation Statistics"
|
|
echo " Total markdown files: $(find . -name "*.md" -type f | grep -v ".git" | grep -v "target" | wc -l)"
|
|
echo " Root directory: $(ls *.md 2>/dev/null | wc -l) files"
|
|
echo " Docs directory: $(find docs -name "*.md" -type f | wc -l) files"
|
|
echo " Total size: $(find . -name "*.md" -type f | grep -v ".git" | grep -v "target" | xargs wc -l | tail -1 | awk '{print $1}') lines"
|
|
|
|
echo ""
|
|
echo "=== VERIFICATION COMPLETE ==="
|
|
|