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 = [
       'sphinx.ext.autodoc',
       'sphinx.ext.doctest',
       '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_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.1.tar.gz (29.7 kB view details)

Uploaded Source

Built Distribution

sphinxmark-0.1.1-py2.py3-none-any.whl (29.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file sphinxmark-0.1.1.tar.gz.

File metadata

  • Download URL: sphinxmark-0.1.1.tar.gz
  • Upload date:
  • Size: 29.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sphinxmark-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c899cd1786ac4428f542699200051a5bf12b82fab7640362ec3fe0410e467ee4
MD5 f809f54cc3a173e3141674e4646f9d5e
BLAKE2b-256 693b46c5caf826ddcd86158bb26514c622fc5c196e67e7f8a64e0add44f30ad0

See more details on using hashes here.

File details

Details for the file sphinxmark-0.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for sphinxmark-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 91e02f5c093bdc9ec6bd4ffa2d30eb6e1c52a7d80d6eb9afc81fe11ddc86cd1a
MD5 40404339780167f920938f73125e7be0
BLAKE2b-256 dd6f07b74afd81b62c28c7777a8db897c269e15699e02608046cbcd81cdcb81f

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