Skip to content

Commit 9a8e210

Browse files
committed
Example VS Code setup through build tasks
This example allows any one to open the `docs` folder and build/serve the documentation without installing any dependencies. Just pressing CMD+SHIFT+B should suffice
1 parent 99567c4 commit 9a8e210

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

docs/.vscode/tasks.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "Build Documentation",
8+
"type": "shell",
9+
"command": "docker run -v .:/app/docs -v ./../.artifacts:/app/.artifacts ghcr.io/mpdreamz/docs-builder:edge",
10+
"problemMatcher": [],
11+
"group": {
12+
"kind": "build",
13+
"isDefault": true
14+
}
15+
},
16+
{
17+
"label": "Serve Documentation",
18+
"type": "shell",
19+
"command": "docker run --expose 8080 -v .:/app/docs -v ./../.artifacts:/app/.artifacts ghcr.io/mpdreamz/docs-builder:edge serve",
20+
"problemMatcher": [],
21+
"group": {
22+
"kind": "build",
23+
"isDefault": true
24+
}
25+
}
26+
]
27+
}

0 commit comments

Comments
 (0)