sphinxcontrib-screenshot 0.1.1__py3-none-any.whl → 0.1.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of sphinxcontrib-screenshot might be problematic. Click here for more details.
- sphinxcontrib/screenshot.py +6 -1
- {sphinxcontrib_screenshot-0.1.1.dist-info → sphinxcontrib_screenshot-0.1.2.dist-info}/METADATA +1 -1
- sphinxcontrib_screenshot-0.1.2.dist-info/RECORD +6 -0
- {sphinxcontrib_screenshot-0.1.1.dist-info → sphinxcontrib_screenshot-0.1.2.dist-info}/WHEEL +1 -1
- sphinxcontrib_screenshot-0.1.1.dist-info/RECORD +0 -6
- {sphinxcontrib_screenshot-0.1.1.dist-info → sphinxcontrib_screenshot-0.1.2.dist-info}/LICENSE +0 -0
- {sphinxcontrib_screenshot-0.1.1.dist-info → sphinxcontrib_screenshot-0.1.2.dist-info}/top_level.txt +0 -0
sphinxcontrib/screenshot.py
CHANGED
|
@@ -32,7 +32,7 @@ Meta = typing.TypedDict('Meta', {
|
|
|
32
32
|
'parallel_write_safe': bool
|
|
33
33
|
})
|
|
34
34
|
|
|
35
|
-
__version__ = '0.1.
|
|
35
|
+
__version__ = '0.1.2'
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
class ScreenshotDirective(SphinxDirective):
|
|
@@ -80,6 +80,7 @@ class ScreenshotDirective(SphinxDirective):
|
|
|
80
80
|
'height': directives.positive_int,
|
|
81
81
|
'width': directives.positive_int,
|
|
82
82
|
'caption': directives.unchanged,
|
|
83
|
+
'figclass': directives.unchanged,
|
|
83
84
|
}
|
|
84
85
|
pool = ThreadPoolExecutor()
|
|
85
86
|
|
|
@@ -133,6 +134,7 @@ class ScreenshotDirective(SphinxDirective):
|
|
|
133
134
|
height = self.options.get('height', 960)
|
|
134
135
|
width = self.options.get('width', 1280)
|
|
135
136
|
caption_text = self.options.get('caption', '')
|
|
137
|
+
figclass = self.options.get('figclass', '')
|
|
136
138
|
interactions = '\n'.join(self.content)
|
|
137
139
|
|
|
138
140
|
if urlparse(url).scheme not in {'http', 'https'}:
|
|
@@ -158,6 +160,9 @@ class ScreenshotDirective(SphinxDirective):
|
|
|
158
160
|
image_node = nodes.image(uri=rel_filepath)
|
|
159
161
|
figure_node = nodes.figure('', image_node)
|
|
160
162
|
|
|
163
|
+
if figclass:
|
|
164
|
+
figure_node['classes'].append(figclass)
|
|
165
|
+
|
|
161
166
|
if caption_text:
|
|
162
167
|
parsed = nodes.Element()
|
|
163
168
|
self.state.nested_parse(
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
sphinxcontrib/screenshot.py,sha256=Ri86PkBZ4EMYCj1BgKT9ZfQbEh6dVJRFr2n_E5cf9Ko,6137
|
|
2
|
+
sphinxcontrib_screenshot-0.1.2.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
3
|
+
sphinxcontrib_screenshot-0.1.2.dist-info/METADATA,sha256=lF-Qzmb4dvtCHvVzeqhvmfIdc4IUa7Sk-EVez6L4Dp8,3667
|
|
4
|
+
sphinxcontrib_screenshot-0.1.2.dist-info/WHEEL,sha256=OVMc5UfuAQiSplgO0_WdW7vXVGAt9Hdd6qtN4HotdyA,91
|
|
5
|
+
sphinxcontrib_screenshot-0.1.2.dist-info/top_level.txt,sha256=VJrV3_vaiKQVgVpR0I1iecxoO0drzGu-M0j40PVP2QQ,14
|
|
6
|
+
sphinxcontrib_screenshot-0.1.2.dist-info/RECORD,,
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
sphinxcontrib/screenshot.py,sha256=voSjROC2WAs0K--pf6mtzDxO29CVBfoOe_TcY06vZwg,5985
|
|
2
|
-
sphinxcontrib_screenshot-0.1.1.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
3
|
-
sphinxcontrib_screenshot-0.1.1.dist-info/METADATA,sha256=1lmWqgT2Ol8tFKD8HP9OpmEwWwQ4IfaHSw_5mfJnN1o,3667
|
|
4
|
-
sphinxcontrib_screenshot-0.1.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
5
|
-
sphinxcontrib_screenshot-0.1.1.dist-info/top_level.txt,sha256=VJrV3_vaiKQVgVpR0I1iecxoO0drzGu-M0j40PVP2QQ,14
|
|
6
|
-
sphinxcontrib_screenshot-0.1.1.dist-info/RECORD,,
|
{sphinxcontrib_screenshot-0.1.1.dist-info → sphinxcontrib_screenshot-0.1.2.dist-info}/LICENSE
RENAMED
|
File without changes
|
{sphinxcontrib_screenshot-0.1.1.dist-info → sphinxcontrib_screenshot-0.1.2.dist-info}/top_level.txt
RENAMED
|
File without changes
|