Sign inSign up

cxy1620541673/gitbook

By cxy1620541673

•Updated about 5 years ago

用于运行 gitbook 或者 生成 gitbook html

Image
0

326

cxy1620541673/gitbook repository overview

docker-compose.yml

version: "3"

services:
  vlog:
    container_name: vlog
    image: cxy1620541673/gitbook:0.0.2
    ports:
      - 4000:4000
    volumes:
      - ./:/www
    stdin_open: true
    tty: true
    privileged: true
    command:
      - /bin/sh
      - -c
      - |
        rm -rf src/_book
        rm -rf dist
        rm -rf README.md
        rm -rf SUMMARY.md
        ls -al
        gitbook init src
        gitbook install src
        gitbook build src dist
        ls -al
        gitbook serve src

页面目录结构

|-- dist
|-- img
|-- src
|   |-- BOOK
|   |   |--- 具体内容
|   |-- book.json
|   |-- README.md
|   |--SUMMARY.md
| 
|-- docker-compose.yml

Tag summary

Content type

Image

Digest

Size

114.1 MB

Last updated

about 5 years ago

docker pull cxy1620541673/gitbook:0.0.2