diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..2ca1d99 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,20 @@ +{ + "image": "yeasy/docker_practice:latest", + "mounts": [ + "source=dp-code-remote-cache,target=/root/.vscode-server,type=volume" + ], + "settings": { + "terminal.integrated.shell.linux": "/bin/sh" + }, + "forwardPorts": [ + 4000 + ], + "runArgs": [ + "--cap-add=SYS_ADMIN" + ], + "postStartCommand": [ + "sh", + "-cx", + "pwd ; mkdir -p /workspaces/docker_practice/node_modules; mkdir -p /workspaces/docker_practice/_book; mount --bind /srv/gitbook/node_modules /workspaces/docker_practice/node_modules ; mount --bind /mnt /workspaces/docker_practice/_book" + ] +} diff --git a/.github/workflows/check-link.yml b/.github/workflows/check-link.yml index c74c054..684f357 100644 --- a/.github/workflows/check-link.yml +++ b/.github/workflows/check-link.yml @@ -1,8 +1,8 @@ name: check-link on: - push: - pull_request: + # push: + # pull_request: workflow_dispatch: jobs: diff --git a/package.json b/package.json index 9dbf99c..3ff639d 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,9 @@ }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1", + "gitbook:help": "gitbook help", + "gitbook:build": "gitbook build", + "gitbook:serve": "gitbook serve", "vuepress:build": "npx vuepress build" }, "repository": {