Skip to content

Commit f91165f

Browse files
committed
add schema.json
1 parent ee57778 commit f91165f

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

schema.json

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"$schema": "https://json-schema.org/draft-07/schema",
3+
"title": "Supports image with lightbox effect",
4+
"oneOf": [
5+
{
6+
"markdownDescription": "https://blueswen.github.io/mkdocs-glightbox/",
7+
"enum": [
8+
"glightbox"
9+
]
10+
},
11+
{
12+
"type": "object",
13+
"properties": {
14+
"glightbox": {
15+
"markdownDescription": "https://blueswen.github.io/mkdocs-glightbox/",
16+
"type": "object",
17+
"properties": {
18+
"touchNavigation": {
19+
"title": "Enable touch navigation (swipe)",
20+
"markdownDescription": "https://blueswen.github.io/mkdocs-glightbox/#usage",
21+
"type": "boolean",
22+
"default": true
23+
},
24+
"loop": {
25+
"title": "Enable loop slides on end",
26+
"markdownDescription": "https://blueswen.github.io/mkdocs-glightbox/#usage",
27+
"type": "boolean",
28+
"default": false
29+
},
30+
"effect": {
31+
"title": "Lightbox open effect",
32+
"markdownDescription": "https://blueswen.github.io/mkdocs-glightbox/#usage",
33+
"type": "string",
34+
"enum": [
35+
"zoom", "fade", "none"
36+
],
37+
"default": "zoom"
38+
},
39+
"width": {
40+
"title": "Default width for inline elements and iframes",
41+
"markdownDescription": "https://blueswen.github.io/mkdocs-glightbox/#usage",
42+
"type": "string",
43+
"default": "100%"
44+
},
45+
"height": {
46+
"title": "Default height for inline elements and iframes",
47+
"markdownDescription": "https://blueswen.github.io/mkdocs-glightbox/#usage",
48+
"type": "string",
49+
"default": "auto"
50+
},
51+
"zoomable": {
52+
"title": "Enable zoomable images",
53+
"markdownDescription": "https://blueswen.github.io/mkdocs-glightbox/#usage",
54+
"type": "boolean",
55+
"default": true
56+
},
57+
"draggable": {
58+
"title": "Enable mouse drag to go prev and next slide",
59+
"markdownDescription": "https://blueswen.github.io/mkdocs-glightbox/#usage",
60+
"type": "boolean",
61+
"default": true
62+
}
63+
},
64+
"additionalProperties": false
65+
}
66+
},
67+
"additionalProperties": false
68+
}
69+
]
70+
}

0 commit comments

Comments
 (0)