Skip to content

Commit e360c65

Browse files
committed
feat(translations): add cleanup task for document translations
(cherry picked from commit 273da9c)
1 parent 6459977 commit e360c65

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

.vscode/tasks.json

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,42 @@
230230
"sphinx-build",
231231
],
232232
},
233+
{
234+
"label": "cleanup-doc-translations",
235+
"command": "${command:python.interpreterPath}",
236+
"args": [
237+
"scripts/run_with_env.py",
238+
"${command:python.interpreterPath}",
239+
"-m",
240+
"guidata.utils.translations",
241+
"cleanup-doc",
242+
"--directory",
243+
".",
244+
],
245+
"options": {
246+
"cwd": "${workspaceFolder}",
247+
"statusbar": {
248+
"hide": true,
249+
},
250+
},
251+
"group": {
252+
"kind": "build",
253+
"isDefault": false,
254+
},
255+
"presentation": {
256+
"clear": true,
257+
"echo": true,
258+
"focus": false,
259+
"panel": "dedicated",
260+
"reveal": "always",
261+
"showReuseMessage": true,
262+
},
263+
"type": "shell",
264+
"dependsOrder": "sequence",
265+
"dependsOn": [
266+
"sphinx-intl update",
267+
],
268+
},
233269
{
234270
"label": "sphinx-intl build",
235271
"command": "${command:python.interpreterPath}",
@@ -296,7 +332,7 @@
296332
"type": "shell",
297333
"dependsOrder": "sequence",
298334
"dependsOn": [
299-
"sphinx-intl update",
335+
"cleanup-doc-translations",
300336
],
301337
},
302338
{

0 commit comments

Comments
 (0)