mirror of
https://github.com/MiSTer-devel/MkDocs_MiSTer.git
synced 2026-04-19 03:04:38 +00:00
Merge pull request #82 from n-batalha/feature/github-codespaces
Add experimental devcontainer / GitHub codespaces setup
This commit is contained in:
32
.devcontainer/devcontainer.json
Normal file
32
.devcontainer/devcontainer.json
Normal file
@@ -0,0 +1,32 @@
|
||||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
||||
// README at: https://github.com/devcontainers/templates/tree/main/src/python
|
||||
{
|
||||
"name": "Python 3",
|
||||
"image": "mcr.microsoft.com/devcontainers/python:0-3.11-bullseye",
|
||||
"forwardPorts": [
|
||||
8000
|
||||
],
|
||||
"postCreateCommand": "pip3 install --user -r requirements.txt",
|
||||
"postStartCommand": "mkdocs serve --watch docs",
|
||||
"portsAttributes": {
|
||||
"8000": {
|
||||
"label": "preview",
|
||||
"onAutoForward": "openPreview"
|
||||
}
|
||||
},
|
||||
"customizations": {
|
||||
"codespaces": {
|
||||
"openFiles": [
|
||||
"README.md",
|
||||
"CONTRIBUTING.md"
|
||||
],
|
||||
"repositories": {
|
||||
"MiSTer-devel/MkDocs_MiSTer": {
|
||||
"permissions": {
|
||||
"pull_requests": "write"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user