简单的wsgi sphinx服务器
sphinx-server的Python项目详细描述
sphinx服务器是一个最小的sphinx文档托管服务器。它是 与Sphinx-PyPi-upload兼容。查看文档static3 使用。
Installation and Usage
安装Sphinx服务器:
pip install sphinx-server
或来自github:
git clone git://github.com/rmohr/sphinx-server.git cd sphinx-server pip install .
gunicorn
下载wsgi http服务器:
pip install gunicorn
运行服务器:
gunicorn -w 1 'sphinxserver:app(home="root/folder")' -b 127.0.0.1:8080
上载项目文档:
cd /your/project/path python setup.py upload_sphinx --repository=http://127.0.0.1:8080
浏览文档:
firefox http://127.0.0.1:8080/your_project_name/
pastedeploy
或者,spinx服务器可以通过pastedeploy运行。示例.ini 可能是这样的:
[app:main] use = egg:sphinx-server#main home= ~/sphinx-docs [server:main] use = egg:gunicorn#main host = 0.0.0.0 port = 9000 workers = 5 accesslog = -
安装wsgi http服务器:
pip install gunicorn pastedeploy
运行服务器:
gunicorn_paster example.ini