jarvanstack / docsify-template

基于 gitbook-summary 自动生成目录的 docsify 模板项目

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

docsify-template

基于 gitbook-summary 自动生成目录的 docsify 模板项目

快速开始

# 安装依赖
make install

# 开发启动调试
# http://localhost:3000
make serve

# docker-compose 后台启动
# http://localhost:4000
make up
$ make help

Usage: make <TARGETS> <OPTIONS> ...

Targets:
  install   Install docsify and gitbook-summary
  gen       Gen _sidebar.md file
  up        Docker compose up server
  push      Commit and push to remote repo
  update    Use update_remote.sh to update remote repo
  serve     Docsify serve in dev env
  help      Show this help info.

自定义 GitHub 仓库

修改 docs/config.js 文件

var repo = 'https://github.com/jarvanstack/docsify-template';

自定义 up 端口

修改 docker-compose.yml 文件中的 4000 端口为你想要的端口

发布到 github

选择 Settings -> GitHub Pages -> Source -> master branch /docs folder

Github Pages: https://jarvanstack.github.io/docsify-template/

About

基于 gitbook-summary 自动生成目录的 docsify 模板项目

License:MIT License


Languages

Language:Makefile 80.9%Language:Shell 19.1%