File: length_units_html5.py

package info (click to toggle)
python-docutils 0.22%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 11,448 kB
  • sloc: python: 53,302; lisp: 14,475; xml: 1,807; javascript: 1,032; makefile: 102; sh: 96
file content (18 lines) | stat: -rw-r--r-- 579 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import unittest
# PIL is optional but required with the "image" directive's "scale" option
from docutils.parsers.rst.directives.images import PIL
if PIL is None:
    raise unittest.SkipTest('requires PIL')
else:
    del unittest, PIL  # clean up namespace

# Source and destination file names
test_source = "length_units.rst"
test_destination = "length_units_html5.html"

# Keyword parameters passed to publish_file()
writer = "html5"
settings_overrides = {
    # location of stylesheets (relative to ``docutils/test/``)
    'stylesheet_dirs': ('functional/input/data', ),
    }