Skip to content

Commit

Permalink
Add devcontainer configuration to simplify online editing.
Browse files Browse the repository at this point in the history
  • Loading branch information
mherger committed Jan 6, 2025
1 parent 750e044 commit 7fbc231
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "Python Dev Container",
"image": "mcr.microsoft.com/devcontainers/python:3.10",
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
},
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.defaultProfile.linux": "bash"
},
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance"
]
}
},
"postCreateCommand": "pip install -r mkdocs-requirements.txt",
"forwardPorts": [
8000
],
"portsAttributes": {
"8000": {
"label": "mkdocs Live Preview",
"onAutoForward": "openPreview"
}
}
}

0 comments on commit 7fbc231

Please sign in to comment.