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",
            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.5.0.tar.gz (432.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

porfavor-0.5.0-py2.py3-none-any.whl (434.5 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: porfavor-0.5.0.tar.gz
  • Upload date:
  • Size: 432.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for porfavor-0.5.0.tar.gz
Algorithm Hash digest
SHA256 89fd7d8112b4c27e751b383da02c548002b11de7fadeb2f2721bae3f0df23d9d
MD5 4abdc0d19d83f522565378c20cdcb3f9
BLAKE2b-256 4edb5324bfbbb3aac8058f7d7dcd3b7e21cffb50bc938653a4fc11b644272d82

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for porfavor-0.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 12a6264c40a6094b66dc176448548648c52d3b039fc7de3e646db5d64a4a4fde
MD5 3c132b4d3af2a4db39ff944a6b78b7de
BLAKE2b-256 160503cc275023cf640df03775d31cd085581a363903ff8b0e039a8b8d5b3f31

See more details on using hashes here.

Supported by

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