Skip to content

Commit

Permalink
Updated VS Code debug configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Oct 5, 2023
1 parent 6990976 commit dcf5a80
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 6 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
"group": "build",
"presentation": {
"reveal": "silent"
},
"problemMatcher": {
"background": {
"beginsPattern": "material\/templates\/redirect",
"endsPattern": "."
}
}
}
]
Expand Down

0 comments on commit dcf5a80

Please sign in to comment.