dockerfiles/docsify/README.md

27 lines
903 B
Markdown
Raw Permalink Normal View History

2022-01-05 21:46:11 +08:00
# docsify
GitHub [stilleshan/dockerfiles](https://github.com/stilleshan/dockerfiles)
Docker [stilleshan/docsify](https://hub.docker.com/r/stilleshan/docsify)
> *docker image support for X86 and ARM*
## 简介
docsify serve docker, 方便在 macOS 或 Windows 本地使用 docker 来启动 docsify 服务进行编写文档.
## 使用
2022-01-05 23:45:12 +08:00
### docker
2022-01-05 21:46:11 +08:00
```shell
2022-01-05 23:45:12 +08:00
docker run --name docsify -p 3000:3000 -v /your/docs/path:/docs stilleshan/docsify
# 修改本地文档目录
2022-01-05 21:46:11 +08:00
```
2022-01-05 23:45:12 +08:00
访问`127.0.0.1:3000`
> 注意: 如本地文档目录内含有 index.html 并是初次初始化 docsify, 需重命名 index.html 进行备份,再次启动容器.
2022-01-05 21:46:11 +08:00
### docker compose
下载 [docker-compose.yml](https://raw.githubusercontent.com/stilleshan/dockerfiles/main/docsify/docker-compose.yml) 执行以下命令启动:
```shell
docker-compose up -d
```
## 参考
- docsify [https://docsify.js.org](https://docsify.js.org)