Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jingjingxyk opened this issue Dec 22, 2023 · 0 comments
Open

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

jingjingxyk opened this issue Dec 22, 2023 · 0 comments

Comments

@jingjingxyk
Copy link

jingjingxyk commented Dec 22, 2023

预览文档 补充说明:

预览文档,只需要进入 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 即可预览

@jingjingxyk jingjingxyk changed the title 补充说明:预览文档不需要执行构建 补充说明:预览文档 方法 Jul 5, 2024
@jingjingxyk jingjingxyk changed the title 补充说明:预览文档 方法 补充:本地 预览文档 的方法 Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant