Skip to content

Commit 6898c24

Browse files
authored
Merge pull request nightscout#203 from jwoglom/gh-codespaces
Support Github codespaces for doc editing
2 parents d419a2b + c3b7586 commit 6898c24

2 files changed

Lines changed: 38 additions & 0 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "Trio Docs Dev",
3+
"image": "mcr.microsoft.com/devcontainers/python:3.12",
4+
5+
"waitFor": "postCreateCommand",
6+
"postCreateCommand": "python3 -m venv venv && ./venv/bin/pip install -r requirements.txt && ./venv/bin/pip install -r dev-requirements.txt",
7+
8+
"customizations": {
9+
"vscode": {
10+
"settings": {
11+
"python.defaultInterpreterPath": "./venv/bin/python",
12+
"python.terminal.activateEnvironment": true
13+
},
14+
"extensions": ["yzhang.markdown-all-in-one"]
15+
}
16+
},
17+
"forwardPorts": [8000],
18+
"portsAttributes": {
19+
"8000": {
20+
"label": "MkDocs Preview",
21+
"onAutoForward": "notify"
22+
}
23+
}
24+
}

.vscode/tasks.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "Run MkDocs",
6+
"type": "shell",
7+
"command": "./venv/bin/mkdocs serve",
8+
"isBackground": true,
9+
"runOptions": { "runOn": "folderOpen" },
10+
"presentation": { "reveal": "always", "panel": "dedicated" },
11+
"problemMatcher": []
12+
}
13+
]
14+
}

0 commit comments

Comments
 (0)