sync docs to 0.4

This commit is contained in:
Nicolò Boschi 2026-01-30 11:39:40 +01:00
parent fe15b5ec87
commit 1ba70f81c8
2 changed files with 19 additions and 0 deletions

View file

@ -185,6 +185,11 @@
"id": "sdks/integrations/litellm",
"label": "LiteLLM"
},
{
"type": "doc",
"id": "sdks/integrations/openclawd",
"label": "OpenClawd"
},
{
"type": "doc",
"id": "sdks/integrations/skills",

View file

@ -73,8 +73,22 @@ if [ "$PATCH_VERSION" != "0" ]; then
--exclude='.DS_Store' \
"$SOURCE_DIR/" "$TARGET_DIR/"
# Sync sidebar configuration
print_info "Syncing sidebars.ts → versioned_sidebars/version-${MAJOR_MINOR}-sidebars.json"
cd "$DOCS_DIR"
# Use Node.js to convert sidebars.ts to JSON and update versioned sidebar
node -e "
const sidebars = require('./sidebars.ts').default;
const fs = require('fs');
const targetFile = './versioned_sidebars/version-${MAJOR_MINOR}-sidebars.json';
fs.writeFileSync(targetFile, JSON.stringify(sidebars, null, 2) + '\n');
console.log('Updated: ' + targetFile);
"
echo ""
print_info "✓ Synced docs/ to version-${MAJOR_MINOR}"
print_info "✓ Synced sidebars to version-${MAJOR_MINOR}-sidebars.json"
print_info "✓ Files updated in: $TARGET_DIR"
else