Skip to content

Commit

Permalink
add schema.json
Browse files Browse the repository at this point in the history
  • Loading branch information
blueswen committed Jul 17, 2022
1 parent ee57778 commit f91165f
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"$schema": "https://json-schema.org/draft-07/schema",
"title": "Supports image with lightbox effect",
"oneOf": [
{
"markdownDescription": "https://blueswen.github.io/mkdocs-glightbox/",
"enum": [
"glightbox"
]
},
{
"type": "object",
"properties": {
"glightbox": {
"markdownDescription": "https://blueswen.github.io/mkdocs-glightbox/",
"type": "object",
"properties": {
"touchNavigation": {
"title": "Enable touch navigation (swipe)",
"markdownDescription": "https://blueswen.github.io/mkdocs-glightbox/#usage",
"type": "boolean",
"default": true
},
"loop": {
"title": "Enable loop slides on end",
"markdownDescription": "https://blueswen.github.io/mkdocs-glightbox/#usage",
"type": "boolean",
"default": false
},
"effect": {
"title": "Lightbox open effect",
"markdownDescription": "https://blueswen.github.io/mkdocs-glightbox/#usage",
"type": "string",
"enum": [
"zoom", "fade", "none"
],
"default": "zoom"
},
"width": {
"title": "Default width for inline elements and iframes",
"markdownDescription": "https://blueswen.github.io/mkdocs-glightbox/#usage",
"type": "string",
"default": "100%"
},
"height": {
"title": "Default height for inline elements and iframes",
"markdownDescription": "https://blueswen.github.io/mkdocs-glightbox/#usage",
"type": "string",
"default": "auto"
},
"zoomable": {
"title": "Enable zoomable images",
"markdownDescription": "https://blueswen.github.io/mkdocs-glightbox/#usage",
"type": "boolean",
"default": true
},
"draggable": {
"title": "Enable mouse drag to go prev and next slide",
"markdownDescription": "https://blueswen.github.io/mkdocs-glightbox/#usage",
"type": "boolean",
"default": true
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
}

0 comments on commit f91165f

Please sign in to comment.