diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..75a13b6b --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -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" + } + } + } + } + } +} \ No newline at end of file diff --git a/README.md b/README.md index bebcc99a..e85b0451 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MiSTer-devel/MkDocs_MiSTer) + # MkDocs_MiSTer https://MiSTer-devel.github.io/MkDocs_MiSTer/