@@ -242,8 +242,8 @@ jobs:
242242
243243        DOCS_DIR="${{ github.workspace }}/docs" 
244244
245-         # Smart deployment: clear everything except legacy,  .git, .nojekyll 
246-         find "$DOCS_DIR" -mindepth 1 -maxdepth 1 ! -name 'legacy ' ! -name '.git ' ! -name '.nojekyll ' -exec rm -rf {} + 
245+         # Smart deployment: clear everything except .git, .nojekyll, and archived versions  
246+         find "$DOCS_DIR" -mindepth 1 -maxdepth 1 ! -name '.git ' ! -name '.nojekyll ' ! -name 'v[0-9]* ' -exec rm -rf {} + 
247247
248248        # Copy Docusaurus build output 
249249        cp -r "${{ env.TEMP_DIR }}/llama-stack/docs/build/"* "$DOCS_DIR/" 
@@ -294,9 +294,6 @@ jobs:
294294        echo "Contents of docs directory:" 
295295        ls -la "${{ github.workspace }}/docs/" | head -10 
296296
297-         echo -e "\nLegacy versions:" 
298-         ls -la "${{ github.workspace }}/docs/legacy/" 2>/dev/null | head -5 || echo "❌ Legacy directory missing" 
299- 
300297        echo -e "\nVersioning files:" 
301298        [ -f "${{ github.workspace }}/docs/versionsArchived.json" ] && echo "✅ versionsArchived.json exists" || echo "❌ versionsArchived.json missing" 
302299        [ -f "${{ github.workspace }}/docs/versions.json" ] && echo "✅ versions.json exists" || echo "❌ versions.json missing" 
@@ -325,7 +322,6 @@ jobs:
325322          - Created version snapshot in versioned_docs/version-${{ env.VERSION_TAG }}/ 
326323          - Updated versions.json with new version 
327324          - Built and deployed multi-version site 
328-           - Integrated with legacy versions in dropdown 
329325
330326          🤖 Generated by Docusaurus versioning workflow" 
331327
0 commit comments