环境

  • 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