Skip to content

补充:本地 预览文档 的方法 #28

Description

@jingjingxyk

预览文档 补充说明:

预览文档,只需要进入 public 目录 运行web 服务即可

浏览器打开 http://0.0.0.0:9503 即可预览文档

cd  docs/public/

php -S 0.0.0.0:9503 -t .   
# or 
docker run --rm --name swoole-docs  -v $(pwd)/public/:/usr/share/nginx/html/  -p 9503:80  nginx:1.25-alpine
# or 
python3 -m http.serve 9503 -d .

浏览器打开: http://0.0.0.0:9503即可预览

实时预览 修改后的文档

文档工具使用的是 Docsify docsifyjs-cli

npm i docsify-cli -g
# or
npm i docsify-cli -g --registry=https://registry.npmmirror.com

cd docs/public

docsify start  .

浏览器打开: http://0.0.0.0:4000 即可预览

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions