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

swoole 文档本地预览 方法 #159

Open
jingjingxyk opened this issue Jul 5, 2024 · 0 comments
Open

swoole 文档本地预览 方法 #159

jingjingxyk opened this issue Jul 5, 2024 · 0 comments

Comments

@jingjingxyk
Copy link
Owner

swoole/docs#28

预览文档 补充说明:

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

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