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/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. Open conf.py and import sphinxmark:

    import sphinxmark
  3. Add watermark to the list of extensions in conf.py:

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

    html_static_path = ['_static']
  5. Configure watermark in conf.py as required:

    watermark_enable = True
    watermark_image = 'default'
    watermark_debug = False
  6. Put images in your static directory and edit watermark_image to use custom watermarks.

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.0.tar.gz (29.6 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for sphinxmark-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5d506be97e2eb64109a305e798ad1cc7b47078ce38d1f948c9525f1554deebdb
MD5 147a8ddce68dae4e5a0f12ee50722adc
BLAKE2b-256 fff0256c17b9aa4fdc8fbde85c3c24e7efaf222e269e72c20fb8182ab6ac3f23

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sphinxmark-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 62258ac79390e4179629930f6448e88f7cc7e6a576835b5c56ddb428ed069f67
MD5 57a719c5f42a97a267ecdf3405dafa0b
BLAKE2b-256 7d9086bb3c15f61a72b0aee6f79ff887351ce135ce5d079f7011b108e222b759

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