diff --git a/npm-install-docsify-cli(Windows).bat b/npm-install-docsify-cli(Windows).bat new file mode 100644 index 0000000..85603a9 --- /dev/null +++ b/npm-install-docsify-cli(Windows).bat @@ -0,0 +1,17 @@ +:: +:: 背Ta单词 BTadc +:: +:: 该脚本仅在Windows下有效,且需要安装npm之后才可使用 +:: +:: @version 1.0.0 +:: @auther Coding Zhang +:: @modify 2021.08.07 +:: + +@echo off + +:: 全局安装docsify-cli工具 +call npm i docsify-cli -g + +:: 按任意键继续 +pause \ No newline at end of file diff --git a/run-docsify-server(Windows).bat b/run-docsify-server(Windows).bat new file mode 100644 index 0000000..8e287a3 --- /dev/null +++ b/run-docsify-server(Windows).bat @@ -0,0 +1,20 @@ +:: +:: 背Ta单词 BTadc +:: +:: 该脚本仅在Windows下有效,且需要在npm安装docsify-cli工具之后才可使用 +:: +:: @version 1.0.0 +:: @auther Coding Zhang +:: @modify 2021.08.07 +:: + +@echo off + +:: 找到系统默认浏览器 +for /f "tokens=3,4" %%a in ('"reg query HKEY_CLASSES_ROOT\http\shell\open\command"') do (set softWareRoot=%%a %%b) + +::打开网页 +start % SoftWareRoot % http://localhost:3000 + +:: 启动docsify服务 +docsify serve docs \ No newline at end of file