-
Notifications
You must be signed in to change notification settings - Fork 42
/
Figure.yaml
84 lines (84 loc) · 2.05 KB
/
Figure.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
title: Figure
'@id': stencila:Figure
extends: CreativeWork
category: works
description: Encapsulates one or more images, videos, tables, etc, and provides captions and labels for them.
dom:
derive: false
html:
elem: figure
jats:
elem: figure
markdown:
derive: false
proptest: {}
required:
- content
core:
- label
- labelAutomatically
- caption
- authors
- provenance
properties:
content:
'@id': stencila:content
description: The content of the figure.
type: array
items:
$ref: Block
dom:
elem: figure
proptest:
min:
description: Generate a single arbitrary paragraph.
strategy: vec_paragraphs(1)
low:
description: Generate up to two arbitrary, non-recursive, block nodes.
strategy: vec_blocks_non_recursive(2)
max:
description: Generate up to four arbitrary, non-recursive, block nodes.
strategy: vec_blocks_non_recursive(4)
label:
'@id': stencila:label
description: A short label for the figure.
type: string
patch:
formats: [md]
proptest:
min:
description: No label
value: None
low:
description: Generate a simple label
strategy: option::of(r"[a-zA-Z0-9]+")
max:
description: Generate an arbitrary string
strategy: option::of(String::arbitrary())
labelAutomatically:
'@id': stencila:labelAutomatically
description: Whether the label should be automatically updated.
type: boolean
patch:
formats: [md]
caption:
'@id': schema:caption
description: A caption for the figure.
type: array
items:
$ref: Block
walk: true
patch:
formats: [md]
dom:
elem: figcaption
proptest:
min:
description: No caption
value: None
low:
description: Generate up to two arbitrary paragraphs.
strategy: option::of(vec_paragraphs(2))
max:
description: Generate up to three arbitrary, non-recursive, block nodes.
strategy: option::of(vec_blocks_non_recursive(3))