Metadata-Version: 2.1
Name: shpg
Version: 0.0.1
Summary: A python package to create static html pages
Author: Bastien Cagna
License: BSD 3
Description-Content-Type: text/x-rst
Provides-Extra: doc
Provides-Extra: dev
License-File: LICENCE

~~~~~~~~~~~~~~~~~~~~~~~~~~~
Static HTML Page Generator
~~~~~~~~~~~~~~~~~~~~~~~~~~~


Installation
-------------

for now shpg is available through GitHub. You can install by cloning the project and renning setup.py:


.. code-block:: shell

    git clone https://github.com/BastienCagna/shpg.git
    cd shpg
    python setup.py install

N.B: replace "install" by "develop" if you want to contribute to development or customize the package.
N.B2: use --user to install the package only for you (might be mandatory depending of the rights you have)

Basic example
-------------


.. code-block:: python

    import shpg

    # Create the HTML Page
    page = shpg.Page(title="My Page")
    page.content.append(shpg.Heading1("Hello world!"))
    page.content.append(shpg.Paragraph('This is my first page using SHPG.'))

    # Generate the HTML page
    report_path = "/tmp/my_page.html"
    page.save(report_path, portable=True)


.. image:: doc/index/basic_page.png
  :width: 500
  :alt: Basic rendering


Documentation
-------------
The auto-generated online documentation is hosted at [https://bastiencagna.github.io/shpg/](https://bastiencagna.github.io/shpg).
