-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate-publish-json-9docs.py
More file actions
272 lines (253 loc) · 23.8 KB
/
update-publish-json-9docs.py
File metadata and controls
272 lines (253 loc) · 23.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
#!/usr/bin/env python3
"""Update all publish-{lang}.json files from 6 to 9 documents."""
import json
from pathlib import Path
DEPLOY = Path(__file__).parent / "deploy"
# New document entries per language (lang -> list of 3 new docs)
# Categories and titles are translated per language
NEW_DOCS = {
"en": {
"categories": [
{"name": "Development Tools", "count": 1, "types": {"markdown": 1}},
{"name": "Troubleshooting", "count": 1, "types": {"markdown": 1}},
{"name": "Platform", "count": 1, "types": {"markdown": 1}},
],
"documents": [
{
"id": "docs-ide-integration",
"title": "IDE Integration Guide",
"path": "docs/ide-integration.md",
"type": "markdown",
"audience": "customer",
"category": "Development Tools",
"keywords": ["ide", "antigravity", "vscode", "cursor", "zed", "windsurf", "editor", "setup"],
"summary": "Configure your IDE for optimal CODITECT development"
},
{
"id": "docs-troubleshooting",
"title": "Troubleshooting Guide",
"path": "docs/troubleshooting.md",
"type": "markdown",
"audience": "customer",
"category": "Troubleshooting",
"keywords": ["troubleshooting", "errors", "debug", "fix", "common-issues", "faq"],
"summary": "Solutions for common CODITECT issues"
},
{
"id": "docs-platform-setup",
"title": "Platform Setup — Linux, WSL2 & Docker",
"path": "docs/platform-setup.md",
"type": "markdown",
"audience": "customer",
"category": "Platform",
"keywords": ["linux", "wsl", "docker", "windows", "ubuntu", "platform"],
"summary": "Install CODITECT on Linux, Windows WSL2, and Docker"
},
]
},
"es": {"cats": ["Herramientas de Desarrollo", "Solución de Problemas", "Plataforma"],
"titles": ["Guía de Integración de IDE", "Guía de Solución de Problemas", "Configuración de Plataforma — Linux, WSL2 y Docker"],
"summaries": ["Configura tu IDE para un desarrollo óptimo con CODITECT", "Soluciones para problemas comunes de CODITECT", "Instala CODITECT en Linux, Windows WSL2 y Docker"]},
"fr": {"cats": ["Outils de Développement", "Dépannage", "Plateforme"],
"titles": ["Guide d'Intégration IDE", "Guide de Dépannage", "Configuration de Plateforme — Linux, WSL2 et Docker"],
"summaries": ["Configurez votre IDE pour un développement optimal avec CODITECT", "Solutions aux problèmes courants de CODITECT", "Installer CODITECT sur Linux, Windows WSL2 et Docker"]},
"de": {"cats": ["Entwicklungstools", "Fehlerbehebung", "Plattform"],
"titles": ["IDE-Integrationsanleitung", "Fehlerbehebungsanleitung", "Plattform-Einrichtung — Linux, WSL2 & Docker"],
"summaries": ["Konfigurieren Sie Ihre IDE für optimale CODITECT-Entwicklung", "Lösungen für häufige CODITECT-Probleme", "CODITECT auf Linux, Windows WSL2 und Docker installieren"]},
"ja": {"cats": ["開発ツール", "トラブルシューティング", "プラットフォーム"],
"titles": ["IDE統合ガイド", "トラブルシューティングガイド", "プラットフォームセットアップ — Linux、WSL2、Docker"],
"summaries": ["CODITECT開発のためのIDE設定", "CODITECTの一般的な問題の解決策", "Linux、Windows WSL2、DockerへのCODITECTインストール"]},
"ko": {"cats": ["개발 도구", "문제 해결", "플랫폼"],
"titles": ["IDE 통합 가이드", "문제 해결 가이드", "플랫폼 설정 — Linux, WSL2 & Docker"],
"summaries": ["최적의 CODITECT 개발을 위한 IDE 설정", "일반적인 CODITECT 문제 해결", "Linux, Windows WSL2, Docker에 CODITECT 설치"]},
"zh-cn": {"cats": ["开发工具", "故障排除", "平台"],
"titles": ["IDE 集成指南", "故障排除指南", "平台设置 — Linux、WSL2 和 Docker"],
"summaries": ["配置 IDE 以优化 CODITECT 开发", "CODITECT 常见问题解决方案", "在 Linux、Windows WSL2 和 Docker 上安装 CODITECT"]},
"zh-tw": {"cats": ["開發工具", "故障排除", "平台"],
"titles": ["IDE 整合指南", "故障排除指南", "平台設定 — Linux、WSL2 和 Docker"],
"summaries": ["設定 IDE 以優化 CODITECT 開發", "CODITECT 常見問題解決方案", "在 Linux、Windows WSL2 和 Docker 上安裝 CODITECT"]},
"it": {"cats": ["Strumenti di Sviluppo", "Risoluzione Problemi", "Piattaforma"],
"titles": ["Guida all'Integrazione IDE", "Guida alla Risoluzione dei Problemi", "Configurazione Piattaforma — Linux, WSL2 e Docker"],
"summaries": ["Configura il tuo IDE per uno sviluppo ottimale con CODITECT", "Soluzioni per problemi comuni di CODITECT", "Installare CODITECT su Linux, Windows WSL2 e Docker"]},
"nl": {"cats": ["Ontwikkeltools", "Probleemoplossing", "Platform"],
"titles": ["IDE Integratie Gids", "Probleemoplossing Gids", "Platform Setup — Linux, WSL2 & Docker"],
"summaries": ["Configureer je IDE voor optimale CODITECT-ontwikkeling", "Oplossingen voor veelvoorkomende CODITECT-problemen", "CODITECT installeren op Linux, Windows WSL2 en Docker"]},
"ru": {"cats": ["Инструменты разработки", "Устранение неполадок", "Платформа"],
"titles": ["Руководство по интеграции IDE", "Руководство по устранению неполадок", "Настройка платформы — Linux, WSL2 и Docker"],
"summaries": ["Настройте IDE для оптимальной разработки с CODITECT", "Решения распространённых проблем CODITECT", "Установка CODITECT на Linux, Windows WSL2 и Docker"]},
"pt": {"cats": ["Ferramentas de Desenvolvimento", "Solução de Problemas", "Plataforma"],
"titles": ["Guia de Integração de IDE", "Guia de Solução de Problemas", "Configuração de Plataforma — Linux, WSL2 e Docker"],
"summaries": ["Configure seu IDE para desenvolvimento otimizado com CODITECT", "Soluções para problemas comuns do CODITECT", "Instalar CODITECT no Linux, Windows WSL2 e Docker"]},
"ar": {"cats": ["أدوات التطوير", "استكشاف الأخطاء", "المنصة"],
"titles": ["دليل تكامل IDE", "دليل استكشاف الأخطاء", "إعداد المنصة — Linux و WSL2 و Docker"],
"summaries": ["إعداد IDE للتطوير الأمثل مع CODITECT", "حلول لمشاكل CODITECT الشائعة", "تثبيت CODITECT على Linux و WSL2 و Docker"]},
"hi": {"cats": ["डेवलपमेंट टूल्स", "समस्या निवारण", "प्लेटफ़ॉर्म"],
"titles": ["IDE इंटीग्रेशन गाइड", "समस्या निवारण गाइड", "प्लेटफ़ॉर्म सेटअप — Linux, WSL2 और Docker"],
"summaries": ["CODITECT विकास के लिए IDE कॉन्फ़िगर करें", "CODITECT की सामान्य समस्याओं का समाधान", "Linux, Windows WSL2 और Docker पर CODITECT इंस्टॉल करें"]},
"tr": {"cats": ["Geliştirme Araçları", "Sorun Giderme", "Platform"],
"titles": ["IDE Entegrasyon Rehberi", "Sorun Giderme Rehberi", "Platform Kurulumu — Linux, WSL2 ve Docker"],
"summaries": ["CODITECT geliştirme için IDE'nizi yapılandırın", "Yaygın CODITECT sorunlarının çözümleri", "Linux, Windows WSL2 ve Docker'da CODITECT kurulumu"]},
"pl": {"cats": ["Narzędzia programistyczne", "Rozwiązywanie problemów", "Platforma"],
"titles": ["Przewodnik integracji IDE", "Przewodnik rozwiązywania problemów", "Konfiguracja platformy — Linux, WSL2 i Docker"],
"summaries": ["Skonfiguruj IDE do optymalnego rozwoju z CODITECT", "Rozwiązania typowych problemów CODITECT", "Instalacja CODITECT na Linux, Windows WSL2 i Docker"]},
"sv": {"cats": ["Utvecklingsverktyg", "Felsökning", "Plattform"],
"titles": ["IDE-integrationsguide", "Felsökningsguide", "Plattformskonfiguration — Linux, WSL2 och Docker"],
"summaries": ["Konfigurera din IDE för optimal CODITECT-utveckling", "Lösningar på vanliga CODITECT-problem", "Installera CODITECT på Linux, Windows WSL2 och Docker"]},
"no": {"cats": ["Utviklingsverktøy", "Feilsøking", "Plattform"],
"titles": ["IDE-integrasjonsguide", "Feilsøkingsguide", "Plattformoppsett — Linux, WSL2 og Docker"],
"summaries": ["Konfigurer IDE-en din for optimal CODITECT-utvikling", "Løsninger på vanlige CODITECT-problemer", "Installere CODITECT på Linux, Windows WSL2 og Docker"]},
"da": {"cats": ["Udviklingsværktøjer", "Fejlfinding", "Platform"],
"titles": ["IDE-integrationsguide", "Fejlfindingsguide", "Platformopsætning — Linux, WSL2 og Docker"],
"summaries": ["Konfigurer din IDE til optimal CODITECT-udvikling", "Løsninger til almindelige CODITECT-problemer", "Installer CODITECT på Linux, Windows WSL2 og Docker"]},
"fi": {"cats": ["Kehitystyökalut", "Vianmääritys", "Alusta"],
"titles": ["IDE-integrointiopas", "Vianmääritysopas", "Alustan asennus — Linux, WSL2 ja Docker"],
"summaries": ["Määritä IDE optimaaliseen CODITECT-kehitykseen", "Ratkaisuja yleisiin CODITECT-ongelmiin", "Asenna CODITECT Linuxiin, Windows WSL2:een ja Dockeriin"]},
"cs": {"cats": ["Vývojové nástroje", "Řešení problémů", "Platforma"],
"titles": ["Průvodce integrací IDE", "Průvodce řešením problémů", "Nastavení platformy — Linux, WSL2 a Docker"],
"summaries": ["Nastavte IDE pro optimální vývoj s CODITECT", "Řešení běžných problémů CODITECT", "Instalace CODITECT na Linux, Windows WSL2 a Docker"]},
"ro": {"cats": ["Instrumente de dezvoltare", "Depanare", "Platformă"],
"titles": ["Ghid de integrare IDE", "Ghid de depanare", "Configurare platformă — Linux, WSL2 și Docker"],
"summaries": ["Configurați IDE-ul pentru dezvoltare optimă cu CODITECT", "Soluții pentru probleme comune CODITECT", "Instalare CODITECT pe Linux, Windows WSL2 și Docker"]},
"hu": {"cats": ["Fejlesztőeszközök", "Hibaelhárítás", "Platform"],
"titles": ["IDE integrációs útmutató", "Hibaelhárítási útmutató", "Platform beállítás — Linux, WSL2 és Docker"],
"summaries": ["IDE konfigurálása optimális CODITECT fejlesztéshez", "Gyakori CODITECT problémák megoldásai", "CODITECT telepítése Linux, Windows WSL2 és Docker rendszeren"]},
"el": {"cats": ["Εργαλεία ανάπτυξης", "Αντιμετώπιση προβλημάτων", "Πλατφόρμα"],
"titles": ["Οδηγός ενσωμάτωσης IDE", "Οδηγός αντιμετώπισης προβλημάτων", "Ρύθμιση πλατφόρμας — Linux, WSL2 & Docker"],
"summaries": ["Ρυθμίστε το IDE σας για βέλτιστη ανάπτυξη με CODITECT", "Λύσεις σε συνηθισμένα προβλήματα CODITECT", "Εγκατάσταση CODITECT σε Linux, Windows WSL2 και Docker"]},
"uk": {"cats": ["Інструменти розробки", "Усунення несправностей", "Платформа"],
"titles": ["Посібник з інтеграції IDE", "Посібник з усунення несправностей", "Налаштування платформи — Linux, WSL2 та Docker"],
"summaries": ["Налаштуйте IDE для оптимальної розробки з CODITECT", "Рішення поширених проблем CODITECT", "Встановлення CODITECT на Linux, Windows WSL2 та Docker"]},
"he": {"cats": ["כלי פיתוח", "פתרון בעיות", "פלטפורמה"],
"titles": ["מדריך שילוב IDE", "מדריך פתרון בעיות", "הגדרת פלטפורמה — Linux, WSL2 ו-Docker"],
"summaries": ["הגדר את ה-IDE שלך לפיתוח מיטבי עם CODITECT", "פתרונות לבעיות נפוצות ב-CODITECT", "התקנת CODITECT על Linux, Windows WSL2 ו-Docker"]},
"id": {"cats": ["Alat Pengembangan", "Pemecahan Masalah", "Platform"],
"titles": ["Panduan Integrasi IDE", "Panduan Pemecahan Masalah", "Pengaturan Platform — Linux, WSL2 & Docker"],
"summaries": ["Konfigurasikan IDE Anda untuk pengembangan optimal dengan CODITECT", "Solusi untuk masalah umum CODITECT", "Instal CODITECT di Linux, Windows WSL2, dan Docker"]},
"vi": {"cats": ["Công cụ phát triển", "Khắc phục sự cố", "Nền tảng"],
"titles": ["Hướng dẫn tích hợp IDE", "Hướng dẫn khắc phục sự cố", "Thiết lập nền tảng — Linux, WSL2 & Docker"],
"summaries": ["Cấu hình IDE để phát triển CODITECT tối ưu", "Giải pháp cho các vấn đề CODITECT phổ biến", "Cài đặt CODITECT trên Linux, Windows WSL2 và Docker"]},
"th": {"cats": ["เครื่องมือพัฒนา", "การแก้ไขปัญหา", "แพลตฟอร์ม"],
"titles": ["คู่มือการรวม IDE", "คู่มือการแก้ไขปัญหา", "การตั้งค่าแพลตฟอร์ม — Linux, WSL2 และ Docker"],
"summaries": ["กำหนดค่า IDE สำหรับการพัฒนา CODITECT", "วิธีแก้ปัญหาทั่วไปของ CODITECT", "ติดตั้ง CODITECT บน Linux, Windows WSL2 และ Docker"]},
"bn": {"cats": ["ডেভেলপমেন্ট টুলস", "সমস্যা সমাধান", "প্ল্যাটফর্ম"],
"titles": ["IDE ইন্টিগ্রেশন গাইড", "সমস্যা সমাধান গাইড", "প্ল্যাটফর্ম সেটআপ — Linux, WSL2 এবং Docker"],
"summaries": ["CODITECT ডেভেলপমেন্টের জন্য IDE কনফিগার করুন", "CODITECT-এর সাধারণ সমস্যার সমাধান", "Linux, Windows WSL2 এবং Docker-এ CODITECT ইনস্টল করুন"]},
"ta": {"cats": ["மேம்பாட்டு கருவிகள்", "சிக்கல் தீர்வு", "தளம்"],
"titles": ["IDE ஒருங்கிணைப்பு வழிகாட்டி", "சிக்கல் தீர்வு வழிகாட்டி", "தள அமைப்பு — Linux, WSL2 மற்றும் Docker"],
"summaries": ["CODITECT மேம்பாட்டிற்கு IDE-ஐ கட்டமைக்கவும்", "CODITECT-ன் பொதுவான சிக்கல்களுக்கான தீர்வுகள்", "Linux, Windows WSL2 மற்றும் Docker-ல் CODITECT நிறுவுங்கள்"]},
"ur": {"cats": ["ترقیاتی ٹولز", "مسائل حل کرنا", "پلیٹ فارم"],
"titles": ["IDE انضمام گائیڈ", "مسائل حل کرنے کی گائیڈ", "پلیٹ فارم سیٹ اپ — Linux، WSL2 اور Docker"],
"summaries": ["CODITECT ترقی کے لیے IDE ترتیب دیں", "CODITECT کے عام مسائل کے حل", "Linux، Windows WSL2 اور Docker پر CODITECT انسٹال کریں"]},
"fa": {"cats": ["ابزارهای توسعه", "عیبیابی", "پلتفرم"],
"titles": ["راهنمای یکپارچهسازی IDE", "راهنمای عیبیابی", "راهاندازی پلتفرم — Linux، WSL2 و Docker"],
"summaries": ["IDE خود را برای توسعه بهینه با CODITECT پیکربندی کنید", "راهحلهایی برای مشکلات رایج CODITECT", "نصب CODITECT روی Linux، Windows WSL2 و Docker"]},
"sw": {"cats": ["Zana za Maendeleo", "Utatuzi wa Matatizo", "Jukwaa"],
"titles": ["Mwongozo wa Kuunganisha IDE", "Mwongozo wa Utatuzi wa Matatizo", "Usanidi wa Jukwaa — Linux, WSL2 na Docker"],
"summaries": ["Sanidi IDE yako kwa maendeleo bora ya CODITECT", "Suluhisho la matatizo ya kawaida ya CODITECT", "Sakinisha CODITECT kwenye Linux, Windows WSL2 na Docker"]},
"tl": {"cats": ["Mga Tool sa Development", "Troubleshooting", "Platform"],
"titles": ["Gabay sa IDE Integration", "Gabay sa Troubleshooting", "Platform Setup — Linux, WSL2 at Docker"],
"summaries": ["I-configure ang IDE para sa optimal na CODITECT development", "Mga solusyon sa karaniwang CODITECT na problema", "I-install ang CODITECT sa Linux, Windows WSL2, at Docker"]},
"ms": {"cats": ["Alat Pembangunan", "Penyelesaian Masalah", "Platform"],
"titles": ["Panduan Integrasi IDE", "Panduan Penyelesaian Masalah", "Persediaan Platform — Linux, WSL2 & Docker"],
"summaries": ["Konfigurasikan IDE anda untuk pembangunan CODITECT yang optimum", "Penyelesaian untuk masalah biasa CODITECT", "Pasang CODITECT pada Linux, Windows WSL2, dan Docker"]},
"bg": {"cats": ["Инструменти за разработка", "Отстраняване на проблеми", "Платформа"],
"titles": ["Ръководство за интеграция на IDE", "Ръководство за отстраняване на проблеми", "Настройка на платформа — Linux, WSL2 и Docker"],
"summaries": ["Конфигурирайте IDE за оптимална разработка с CODITECT", "Решения на често срещани проблеми с CODITECT", "Инсталиране на CODITECT на Linux, Windows WSL2 и Docker"]},
"hr": {"cats": ["Razvojni alati", "Rješavanje problema", "Platforma"],
"titles": ["Vodič za integraciju IDE-a", "Vodič za rješavanje problema", "Postavke platforme — Linux, WSL2 i Docker"],
"summaries": ["Konfigurirajte IDE za optimalan razvoj s CODITECT", "Rješenja za uobičajene probleme s CODITECT", "Instalacija CODITECT na Linux, Windows WSL2 i Docker"]},
"sk": {"cats": ["Vývojové nástroje", "Riešenie problémov", "Platforma"],
"titles": ["Sprievodca integráciou IDE", "Sprievodca riešením problémov", "Nastavenie platformy — Linux, WSL2 a Docker"],
"summaries": ["Nastavte IDE pre optimálny vývoj s CODITECT", "Riešenia bežných problémov CODITECT", "Inštalácia CODITECT na Linux, Windows WSL2 a Docker"]},
"lt": {"cats": ["Kūrimo įrankiai", "Trikčių šalinimas", "Platforma"],
"titles": ["IDE integracijos vadovas", "Trikčių šalinimo vadovas", "Platformos sąranka — Linux, WSL2 ir Docker"],
"summaries": ["Sukonfigūruokite IDE optimaliam CODITECT kūrimui", "Dažnų CODITECT problemų sprendimai", "CODITECT diegimas Linux, Windows WSL2 ir Docker"]},
"lv": {"cats": ["Izstrādes rīki", "Problēmu novēršana", "Platforma"],
"titles": ["IDE integrācijas ceļvedis", "Problēmu novēršanas ceļvedis", "Platformas iestatīšana — Linux, WSL2 un Docker"],
"summaries": ["Konfigurējiet IDE optimālai CODITECT izstrādei", "Biežāko CODITECT problēmu risinājumi", "CODITECT instalēšana Linux, Windows WSL2 un Docker"]},
"et": {"cats": ["Arendustööriistad", "Tõrkeotsing", "Platvorm"],
"titles": ["IDE integreerimise juhend", "Tõrkeotsingu juhend", "Platvormi seadistamine — Linux, WSL2 ja Docker"],
"summaries": ["Seadistage IDE optimaalseks CODITECT arenduseks", "Levinumate CODITECT probleemide lahendused", "CODITECT paigaldamine Linuxile, Windows WSL2-le ja Dockerile"]},
"sl": {"cats": ["Razvojna orodja", "Odpravljanje težav", "Platforma"],
"titles": ["Vodnik za integracijo IDE", "Vodnik za odpravljanje težav", "Nastavitev platforme — Linux, WSL2 in Docker"],
"summaries": ["Konfigurirajte IDE za optimalen razvoj z CODITECT", "Rešitve za pogoste težave z CODITECT", "Namestitev CODITECT na Linux, Windows WSL2 in Docker"]},
"ca": {"cats": ["Eines de Desenvolupament", "Resolució de Problemes", "Plataforma"],
"titles": ["Guia d'Integració de l'IDE", "Guia de Resolució de Problemes", "Configuració de Plataforma — Linux, WSL2 i Docker"],
"summaries": ["Configureu el vostre IDE per al desenvolupament òptim amb CODITECT", "Solucions per a problemes comuns de CODITECT", "Instal·leu CODITECT a Linux, Windows WSL2 i Docker"]},
}
def update_publish_json(lang: str):
"""Update a single publish-{lang}.json to add 3 new documents."""
path = DEPLOY / f"publish-{lang}.json"
if not path.exists():
print(f" SKIP {lang}: no publish-{lang}.json")
return False
data = json.loads(path.read_text())
# Already updated?
if data.get("total_documents", 0) >= 9:
print(f" SKIP {lang}: already has {data['total_documents']} docs")
return False
meta = NEW_DOCS.get(lang)
if not meta:
print(f" WARN {lang}: no translation metadata, using English")
meta = {"cats": ["Development Tools", "Troubleshooting", "Platform"],
"titles": ["IDE Integration Guide", "Troubleshooting Guide", "Platform Setup — Linux, WSL2 & Docker"],
"summaries": ["Configure your IDE for optimal CODITECT development", "Solutions for common CODITECT issues", "Install CODITECT on Linux, Windows WSL2 and Docker"]}
# Add 3 new categories
for cat_name in meta["cats"]:
data["categories"].append({"name": cat_name, "count": 1, "types": {"markdown": 1}})
# Add 3 new documents
docs_prefix = f"docs-{lang}" if lang != "en" else "docs"
new_docs = [
{
"id": "docs-ide-integration",
"title": meta["titles"][0],
"path": f"{docs_prefix}/ide-integration.md",
"type": "markdown",
"audience": "customer",
"category": meta["cats"][0],
"keywords": ["ide", "antigravity", "vscode", "cursor", "zed", "windsurf"],
"summary": meta["summaries"][0]
},
{
"id": "docs-troubleshooting",
"title": meta["titles"][1],
"path": f"{docs_prefix}/troubleshooting.md",
"type": "markdown",
"audience": "customer",
"category": meta["cats"][1],
"keywords": ["troubleshooting", "errors", "debug", "fix"],
"summary": meta["summaries"][1]
},
{
"id": "docs-platform-setup",
"title": meta["titles"][2],
"path": f"{docs_prefix}/platform-setup.md",
"type": "markdown",
"audience": "customer",
"category": meta["cats"][2],
"keywords": ["linux", "wsl", "docker", "windows", "platform"],
"summary": meta["summaries"][2]
},
]
data["documents"].extend(new_docs)
data["total_documents"] = len(data["documents"])
path.write_text(json.dumps(data, indent=2, ensure_ascii=False) + "\n")
print(f" OK {lang}: {data['total_documents']} docs")
return True
def main():
updated = 0
skipped = 0
# Get all publish-*.json files
langs = sorted(set(
p.stem.replace("publish-", "")
for p in DEPLOY.glob("publish-*.json")
))
print(f"Updating {len(langs)} publish files...\n")
for lang in langs:
if update_publish_json(lang):
updated += 1
else:
skipped += 1
print(f"\nDone: {updated} updated, {skipped} skipped")
if __name__ == "__main__":
main()