add automation for running in vscode

This commit is contained in:
Florian du Garage Num 2023-04-29 23:48:41 +02:00
parent 0ab226a5a4
commit 54cadabe57
2 changed files with 46 additions and 0 deletions

28
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,28 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "MkDocs: Serve",
"type": "python",
"request": "launch",
"module": "mkdocs",
"args": [
"serve"
],
"console": "integratedTerminal",
"preLaunchTask": "install-dependencies"
},
{
"name": "MkDocs: Build",
"type": "python",
"request": "launch",
"module": "mkdocs",
"args": [
"build"
],
"console": "integratedTerminal",
"preLaunchTask": "install-dependencies"
}
]
}

18
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,18 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "install-dependencies",
"type": "shell",
"command": "pip install -r requirements.txt",
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "always",
"panel": "dedicated"
}
}
]
}