Skip to content

Commit

Permalink
Example VS Code setup through build tasks
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Mpdreamz committed Nov 14, 2024
1 parent 99567c4 commit 9a8e210
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions docs/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Build Documentation",
"type": "shell",
"command": "docker run -v .:/app/docs -v ./../.artifacts:/app/.artifacts ghcr.io/mpdreamz/docs-builder:edge",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Serve Documentation",
"type": "shell",
"command": "docker run --expose 8080 -v .:/app/docs -v ./../.artifacts:/app/.artifacts ghcr.io/mpdreamz/docs-builder:edge serve",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}

0 comments on commit 9a8e210

Please sign in to comment.