Skip to content

Commit 31145e4

Browse files
authored
Merge pull request #82 from n-batalha/feature/github-codespaces
Add experimental devcontainer / GitHub codespaces setup
2 parents 5d33ab9 + 765cde0 commit 31145e4

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/python
3+
{
4+
"name": "Python 3",
5+
"image": "mcr.microsoft.com/devcontainers/python:0-3.11-bullseye",
6+
"forwardPorts": [
7+
8000
8+
],
9+
"postCreateCommand": "pip3 install --user -r requirements.txt",
10+
"postStartCommand": "mkdocs serve --watch docs",
11+
"portsAttributes": {
12+
"8000": {
13+
"label": "preview",
14+
"onAutoForward": "openPreview"
15+
}
16+
},
17+
"customizations": {
18+
"codespaces": {
19+
"openFiles": [
20+
"README.md",
21+
"CONTRIBUTING.md"
22+
],
23+
"repositories": {
24+
"MiSTer-devel/MkDocs_MiSTer": {
25+
"permissions": {
26+
"pull_requests": "write"
27+
}
28+
}
29+
}
30+
}
31+
}
32+
}

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/MiSTer-devel/MkDocs_MiSTer)
2+
13
# MkDocs_MiSTer
24

35
https://MiSTer-devel.github.io/MkDocs_MiSTer/

0 commit comments

Comments
 (0)