| 1 | { |
| 2 | "version": "2.0.0", |
| 3 | "tasks": [ |
| 4 | { |
| 5 | "label": "Setup Python Environment", |
| 6 | "type": "shell", |
| 7 | "command": "python", |
| 8 | "args": ["-m", "venv", "env"], |
| 9 | "options": { |
| 10 | "cwd": "${workspaceFolder}/docs" |
| 11 | }, |
| 12 | "group": "build", |
| 13 | "presentation": { |
| 14 | "echo": true, |
| 15 | "reveal": "always", |
| 16 | "focus": false, |
| 17 | "panel": "shared" |
| 18 | }, |
| 19 | "problemMatcher": [] |
| 20 | }, |
| 21 | { |
| 22 | "label": "Install MkDocs Requirements", |
| 23 | "type": "shell", |
| 24 | "command": ".\\env\\Scripts\\activate.ps1; python -m pip install --upgrade pip; pip install -r requirements.txt", |
| 25 | "options": { |
| 26 | "cwd": "${workspaceFolder}/docs" |
| 27 | }, |
| 28 | "group": "build", |
| 29 | "presentation": { |
| 30 | "echo": true, |
| 31 | "reveal": "always", |
| 32 | "focus": false, |
| 33 | "panel": "shared" |
| 34 | }, |
| 35 | "problemMatcher": [], |
| 36 | "dependsOn": "Setup Python Environment" |
| 37 | }, |
| 38 | { |
| 39 | "label": "Start MkDocs Server", |
| 40 | "type": "shell", |
| 41 | "command": ".\\env\\Scripts\\activate.ps1; Start-Process http://localhost:8010; mkdocs serve", |
| 42 | "options": { |
| 43 | "cwd": "${workspaceFolder}/docs" |
| 44 | }, |
| 45 | "group": { |
| 46 | "kind": "build", |
| 47 | "isDefault": true |
| 48 | }, |
| 49 | "presentation": { |
| 50 | "echo": true, |
| 51 | "reveal": "always", |
| 52 | "focus": false, |
| 53 | "panel": "shared" |
| 54 | }, |
| 55 | "problemMatcher": [], |
| 56 | "isBackground": true, |
| 57 | "dependsOn": "Install MkDocs Requirements" |
| 58 | } |
| 59 | ] |
| 60 | } |