Add serve command and forward port 8000

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König
2024-02-23 21:08:06 +00:00
parent 938d62425f
commit 0469094374
2 changed files with 4 additions and 2 deletions

View File

@@ -21,5 +21,6 @@
},
"mounts": [
"type=bind,source=/home/${localEnv:USER}/.ssh,target=/home/node/.ssh,readonly"
]
],
"forwardPorts": [8000]
}

View File

@@ -19,7 +19,8 @@
"build": "mkdocs build --clean",
"markdownlint": "markdownlint-cli2 \"**/*.md\" \"!**/node_modules/**\"",
"linkinator": "npm run build && linkinator site --recurse --silent --skip \"^(?!http://localhost)\"",
"test": "npm run markdownlint && npm run linkinator"
"test": "npm run markdownlint && npm run linkinator",
"serve": "mkdocs serve --dev-addr 0.0.0.0:8000"
},
"devDependencies": {
"linkinator": "^6.0.4",