Publishing static documentation the easy way
Project description
Por favor
Publishing static documentation the easiest way possible!
Install
$ pip install porfavor
Use
On the server side, you should run the matching server-side implementation. It listens to any client and puts the given documentation in its right place.
On the server, run:
$ pip install porfavor
$ porfavor serve . # replace '.' with the desired working directory
Now, to deploy documentation on the server, all you have to do is running
porfavor publish
with the right arguments:
$ # porfavor publish <server's URL> \
> <project name> \
> <documentation root>
$ porfavor publish localhost:5000 my_amazing_project docs/_build/html/
Zipping content of folder 'docs/_build/html'... DONE!
Publishing content for project 'my_amazing_project'... DONE!
Alternatively, you can write the following script, to make deployment more automatic:
from porfavor import publish
if __name__ == '__main__':
publish(host="localhost:5000",
project="project_name",
root_dir="root_dir")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
porfavor-0.4.1.tar.gz
(213.3 kB
view hashes)
Built Distribution
porfavor-0.4.1-py2.py3-none-any.whl
(215.2 kB
view hashes)
Close
Hashes for porfavor-0.4.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85d0cd7637d3d813da824116c70724bde61023106051d92d400e4100b8599394 |
|
MD5 | dcc10755e34eb9315efed6c94b0c51c6 |
|
BLAKE2b-256 | 3d294fb49f2cecca94218472fda43ebd14b965e2cc1b0abcf76d0615be2f311e |