Usage
Configure sphinxmark in your conf.py file.
Add sphinxmark to the list of extensions:
extensions = ['sphinxmark']
If you are using a custom image file, specify its directory relative to the
conf.pyfile. If no value is given, the path defaults to_static.html_static_path = ['_static']
Enable sphinxmark and set options as required:
sphinxmark_enable = True sphinxmark_div = 'default' sphinxmark_image = 'text' sphinxmark_text = 'Pre-Release' sphinxmark_text_size = 80
If you define
html_contextin yourconf.py, you must add thesphinxmark.cssstyle sheet to it.html_context = { 'css_files': [ '_static/bespoke.css', # custom CSS styling '_static/sphinxmark.css', # watermark styling ], }