1
0
mirror of https://gitee.com/tawords/tawords-docs synced 2025-01-10 19:38:14 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee

添加Windows平台下docsify-cli安装及本地docsify serve启动bat脚本

This commit is contained in:
程序员小墨 2021-08-07 01:26:04 +08:00
parent 5b4339569a
commit 6776edbd16
2 changed files with 37 additions and 0 deletions

View File

@ -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

View File

@ -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