- node 12
- npm 6.14.16
npm install -g docsify-cli
mkdir light-docsify && cd light-docsify
docsify init ./docs
docsify serve ./docs
echo "# light-docsify" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin git@github.com:lorchr/light-docsify.git
git push -u origin main
点击进入项目的Settings页面https://github.com/lorchr/light-docsify/settings/pages
Settings
-> Pages
-> Build and deployment
Source : Deploy from a branch
Branch : Main docs
Save and visit https://lorchr.github.io/light-docsify