1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-28 01:10:58 +01:00

Updated VS Code debug configurations

This commit is contained in:
squidfunk 2023-10-05 14:15:25 +02:00
parent 6990976793
commit dcf5a80ef7
No known key found for this signature in database
GPG Key ID: 5ED40BC4F9C436DF
2 changed files with 39 additions and 0 deletions

33
.vscode/launch.json vendored
View File

@ -12,6 +12,39 @@
"url": "http://localhost:8000/mkdocs-material/",
"webRoot": "${workspaceFolder}",
"smartStep": true
},
{
"name": "MkDocs",
"type": "python",
"request": "launch",
"preLaunchTask": "Start and watch for changes",
"program": "venv/bin/mkdocs",
"args": ["build"],
"env": {
"PYTHONPATH": "."
}
},
{
"name": "MkDocs server",
"type": "python",
"request": "launch",
"preLaunchTask": "Start and watch for changes",
"program": "venv/bin/mkdocs",
"args": ["serve", "--watch-theme"],
"env": {
"PYTHONPATH": "."
}
},
{
"name": "MkDocs server (dirty)",
"type": "python",
"request": "launch",
"preLaunchTask": "Start and watch for changes",
"program": "venv/bin/mkdocs",
"args": ["serve", "--watch-theme", "--dirtyreload"],
"env": {
"PYTHONPATH": "."
}
}
]
}

6
.vscode/tasks.json vendored
View File

@ -21,6 +21,12 @@
"group": "build",
"presentation": {
"reveal": "silent"
},
"problemMatcher": {
"background": {
"beginsPattern": "material\/templates\/redirect",
"endsPattern": "."
}
}
}
]