From 0469094374142da7b034f3db767cc7b1709e4572 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=B6nig?= Date: Fri, 23 Feb 2024 21:08:06 +0000 Subject: [PATCH] Add serve command and forward port 8000 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christian König --- .devcontainer/devcontainer.json | 3 ++- package.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 69a02ca..d96d265 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -21,5 +21,6 @@ }, "mounts": [ "type=bind,source=/home/${localEnv:USER}/.ssh,target=/home/node/.ssh,readonly" - ] + ], + "forwardPorts": [8000] } diff --git a/package.json b/package.json index c185b55..c597d3a 100644 --- a/package.json +++ b/package.json @@ -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",