@@ -242,8 +242,8 @@ jobs:
242
242
243
243
DOCS_DIR="${{ github.workspace }}/docs"
244
244
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 {} +
247
247
248
248
# Copy Docusaurus build output
249
249
cp -r "${{ env.TEMP_DIR }}/llama-stack/docs/build/"* "$DOCS_DIR/"
@@ -294,9 +294,6 @@ jobs:
294
294
echo "Contents of docs directory:"
295
295
ls -la "${{ github.workspace }}/docs/" | head -10
296
296
297
- echo -e "\nLegacy versions:"
298
- ls -la "${{ github.workspace }}/docs/legacy/" 2>/dev/null | head -5 || echo "❌ Legacy directory missing"
299
-
300
297
echo -e "\nVersioning files:"
301
298
[ -f "${{ github.workspace }}/docs/versionsArchived.json" ] && echo "✅ versionsArchived.json exists" || echo "❌ versionsArchived.json missing"
302
299
[ -f "${{ github.workspace }}/docs/versions.json" ] && echo "✅ versions.json exists" || echo "❌ versions.json missing"
@@ -325,7 +322,6 @@ jobs:
325
322
- Created version snapshot in versioned_docs/version-${{ env.VERSION_TAG }}/
326
323
- Updated versions.json with new version
327
324
- Built and deployed multi-version site
328
- - Integrated with legacy versions in dropdown
329
325
330
326
🤖 Generated by Docusaurus versioning workflow"
331
327
0 commit comments