mirror of
https://gitee.com/tawords/tawords-docs
synced 2025-01-10 11:28:13 +08:00
添加Windows平台下docsify-cli安装及本地docsify serve启动bat脚本
This commit is contained in:
parent
5b4339569a
commit
6776edbd16
17
npm-install-docsify-cli(Windows).bat
Normal file
17
npm-install-docsify-cli(Windows).bat
Normal 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
|
20
run-docsify-server(Windows).bat
Normal file
20
run-docsify-server(Windows).bat
Normal 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
|
Loading…
Reference in New Issue
Block a user