Skip to content

Commit

Permalink
Add VSCode problem matcher for Sphinx docs build
Browse files Browse the repository at this point in the history
Also include clean build of docs in linkcheck task.
  • Loading branch information
douglatornell committed Sep 20, 2022
1 parent 04eb366 commit 90b7be9
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,21 @@
"label": "sphinx clean build",
"type": "shell",
"command": "source activate moad-docs && make clean html",
"problemMatcher": [],
"problemMatcher":[
{
"owner": "sphinx-problem-matcher",
"fileLocation": ["autoDetect", "${workspaceFolder}"],
"pattern": [
{
"regexp": "^(.*):(\\d+):\\s+(\\w*):\\s+(.*)$",
"file": 1,
"line": 2,
"severity": 3,
"message": 4
}
]
}
],
"group": {
"kind": "build",
"isDefault": true
Expand All @@ -16,7 +30,7 @@
{
"label": "sphinx linkcheck",
"type": "shell",
"command": "source activate moad-docs && make clean linkcheck",
"command": "source activate moad-docs && make clean html linkcheck",
"problemMatcher": [],
}
]
Expand Down

0 comments on commit 90b7be9

Please sign in to comment.