Skip to main content

A Sphinx extension that enables watermarks for HTML output.

Project description

https://travis-ci.org/kallimachos/sphinxmark.svg?branch=master https://img.shields.io/pypi/status/sphinxmark.svg?style=flat https://img.shields.io/pypi/v/sphinxmark.svg?style=flat https://img.shields.io/badge/Python-2.7-brightgreen.svg?style=flat https://img.shields.io/badge/Python-3.4-brightgreen.svg?style=flat http://img.shields.io/badge/license-GPL-blue.svg?style=flat

sphinxmark is an extension for Sphinx that enables watermarks for HTML output.

Full documentation: https://kallimachos.github.io/sphinxmark/

Usage

  1. Install sphinxmark:

    $ pip install sphinxmark
  2. Add sphinxmark to the list of extensions in conf.py:

    extensions = ['sphinxmark']
  3. Specify a static directory in conf.py for your image files. If the path does not exist, the sphinxmark extension creates the directory and populates it with watermark.css and watermark-draft.png:

    html_static_path = ['_static']
  4. Configure sphinxmark in conf.py as required:

    watermark_enable = True
    watermark_image = 'default'
    watermark_div = 'default'
    watermark_debug = False
  5. Put images in your static directory and use the watermark_image option to specify a custom watermark image.

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

sphinxmark-0.1.2.tar.gz (29.8 kB view hashes)

Uploaded Source

Built Distribution

sphinxmark-0.1.2-py2.py3-none-any.whl (29.9 kB view hashes)

Uploaded Python 2 Python 3

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