Skip to main content

Publishing static documentation the easy way

Project description

Por favor

PyPI Build Status

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",
            file_or_directory="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.6.0.tar.gz (433.5 kB view details)

Uploaded Source

Built Distribution

porfavor-0.6.0-py2.py3-none-any.whl (437.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file porfavor-0.6.0.tar.gz.

File metadata

  • Download URL: porfavor-0.6.0.tar.gz
  • Upload date:
  • Size: 433.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.3

File hashes

Hashes for porfavor-0.6.0.tar.gz
Algorithm Hash digest
SHA256 0bacfdaf7dc49fc66c0f27187ba95fd9190717210cb508ef4f6048f377f492ad
MD5 a567a36b729aead20130f122af2ee840
BLAKE2b-256 07b04ae047debcd06c7255e4eff0a39a8f6a51319d6f770fd60504d4f8e4c902

See more details on using hashes here.

File details

Details for the file porfavor-0.6.0-py2.py3-none-any.whl.

File metadata

  • Download URL: porfavor-0.6.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 437.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.3

File hashes

Hashes for porfavor-0.6.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2400c81cb1b1de56deb6d79bd1ef13947851e6845fcf39b1df5f85cf82854355
MD5 b62bde072c38a5ea8de2ae9f5d9ecb4d
BLAKE2b-256 3494c159a112993f5c280f769ad944f9727657f6e81851c4952d2f58b9cc9032

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page