From 5aad9bac47ba6ca4e58d2dc336a40d48c0499a11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BF=8A=E5=AE=81?= Date: Sun, 15 Aug 2021 21:40:39 +0800 Subject: [PATCH] chore: set readme to none --- package.json | 4 +++- typedoc.json | 4 ++-- yarn.lock | 9 ++++++++- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index bd52a6e8..83937e17 100644 --- a/package.json +++ b/package.json @@ -3,10 +3,12 @@ "description": "VS Code API 是一系列你可以在 Visual Studio Code 扩展中调用的 JavaScript API。这个站点列出了所有扩展作者可以使用的 VS Code API。", "license": "MIT", "scripts": { + "prebuild": "rimraf docs/", "build": "typedoc", - "dev": "yarn build --watch & serve docs/" + "dev": "rimraf doc & yarn build --watch & serve docs/" }, "devDependencies": { + "rimraf": "^3.0.2", "serve": "^12.0.0", "typedoc": "^0.21.5", "typescript": "^4.3.5" diff --git a/typedoc.json b/typedoc.json index 1a27f570..f58b21a4 100644 --- a/typedoc.json +++ b/typedoc.json @@ -1,6 +1,6 @@ { - "name": "VS Code API", - "readme": "./README.md", + "name": "VS Code API 简体中文版", + "readme": "none", "sort": ["source-order"], "excludePrivate": true, "excludeProtected": true, diff --git a/yarn.lock b/yarn.lock index 183f1838..60c4339a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -268,7 +268,7 @@ get-stream@^4.0.0: dependencies: pump "^3.0.0" -glob@^7.1.7: +glob@^7.1.3, glob@^7.1.7: version "7.1.7" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.7.tgz#3b193e9233f01d42d0b3f78294bbeeb418f94a90" integrity sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ== @@ -544,6 +544,13 @@ registry-url@3.1.0: dependencies: rc "^1.0.1" +rimraf@^3.0.2: + version "3.0.2" + resolved "https://registry.npm.taobao.org/rimraf/download/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" + integrity sha1-8aVAK6YiCtUswSgrrBrjqkn9Bho= + dependencies: + glob "^7.1.3" + safe-buffer@5.1.2: version "5.1.2" resolved "https://registry.nlark.com/safe-buffer/download/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d"