|
| 1 | +{ |
| 2 | + "$comment": "https://github.com/gohugoio/hugoThemes#themetoml", |
| 3 | + "$id": "https://json.schemastore.org/hugo-theme.json", |
| 4 | + "$schema": "http://json-schema.org/draft-07/schema#", |
| 5 | + "additionalProperties": false, |
| 6 | + "definitions": { |
| 7 | + "author-data": { |
| 8 | + "additionalProperties": false, |
| 9 | + "default": { |
| 10 | + "name": "" |
| 11 | + }, |
| 12 | + "properties": { |
| 13 | + "homepage": { |
| 14 | + "format": "uri", |
| 15 | + "title": "author website", |
| 16 | + "type": "string" |
| 17 | + }, |
| 18 | + "name": { |
| 19 | + "title": "author name", |
| 20 | + "type": "string" |
| 21 | + } |
| 22 | + }, |
| 23 | + "required": ["name"], |
| 24 | + "type": "object" |
| 25 | + } |
| 26 | + }, |
| 27 | + "description": "This file contains metadata about the theme and its creator or creators. Hugo only recognizes theme.toml file, any other files are not accepted. Learn more at https://github.com/gohugoio/hugoThemes#themetoml", |
| 28 | + "properties": { |
| 29 | + "$schema": { |
| 30 | + "$comment": "Because the theme config file (`theme.toml`) only works with TOML format, so we don't need to support this property.", |
| 31 | + "description": "Hugo will not recognize the theme config file if it is JSON or YAML format. Please use theme.toml file.", |
| 32 | + "type": "null" |
| 33 | + }, |
| 34 | + "authors": { |
| 35 | + "description": "For themes that have multiple authors", |
| 36 | + "items": { |
| 37 | + "$ref": "#/definitions/author-data" |
| 38 | + }, |
| 39 | + "minItems": 2, |
| 40 | + "type": "array", |
| 41 | + "title": "theme authors" |
| 42 | + }, |
| 43 | + "author": { |
| 44 | + "description": "For themes that have single author", |
| 45 | + "$ref": "#/definitions/author-data", |
| 46 | + "title": "theme author" |
| 47 | + }, |
| 48 | + "description": { |
| 49 | + "description": "This info is used by Hugo theme store: https://themes.gohugo.io", |
| 50 | + "title": "theme description", |
| 51 | + "type": "string" |
| 52 | + }, |
| 53 | + "features": { |
| 54 | + "items": { |
| 55 | + "type": "string" |
| 56 | + }, |
| 57 | + "title": "theme features", |
| 58 | + "type": "array" |
| 59 | + }, |
| 60 | + "homepage": { |
| 61 | + "default": "https://", |
| 62 | + "description": "This info is used by Hugo theme store: https://themes.gohugo.io", |
| 63 | + "format": "uri", |
| 64 | + "title": "website of the theme", |
| 65 | + "type": "string" |
| 66 | + }, |
| 67 | + "license": { |
| 68 | + "description": "Reference: https://choosealicense.com", |
| 69 | + "title": "Theme License", |
| 70 | + "type": "string" |
| 71 | + }, |
| 72 | + "licenselink": { |
| 73 | + "default": "https://", |
| 74 | + "format": "uri", |
| 75 | + "title": "Link to theme's license", |
| 76 | + "type": "string" |
| 77 | + }, |
| 78 | + "min_version": { |
| 79 | + "description": "Since the version **0.54.0**, Hugo started using full semver. Therefore, it is required to be `X.Y.Z` format. For instance: `0.54` is incorrect, `0.54.0` is correct.", |
| 80 | + "minLength": 5, |
| 81 | + "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$", |
| 82 | + "title": "Minimum Hugo Version", |
| 83 | + "type": "string" |
| 84 | + }, |
| 85 | + "name": { |
| 86 | + "description": "This info is used by Hugo theme store: https://themes.gohugo.io", |
| 87 | + "title": "Theme Name", |
| 88 | + "type": "string" |
| 89 | + }, |
| 90 | + "original": { |
| 91 | + "additionalProperties": false, |
| 92 | + "default": { |
| 93 | + "author": "", |
| 94 | + "repo": "https://" |
| 95 | + }, |
| 96 | + "description": "For themes that port an existing theme", |
| 97 | + "properties": { |
| 98 | + "author": { |
| 99 | + "title": "name of original author", |
| 100 | + "type": "string" |
| 101 | + }, |
| 102 | + "homepage": { |
| 103 | + "format": "uri", |
| 104 | + "title": "his/her website", |
| 105 | + "type": "string" |
| 106 | + }, |
| 107 | + "repo": { |
| 108 | + "description": "Link to source code of original theme", |
| 109 | + "format": "uri", |
| 110 | + "title": "author website", |
| 111 | + "type": "string" |
| 112 | + } |
| 113 | + }, |
| 114 | + "required": ["author", "repo"], |
| 115 | + "title": "original theme", |
| 116 | + "type": "object" |
| 117 | + }, |
| 118 | + "tags": { |
| 119 | + "description": "This info is used by Hugo theme store: https://themes.gohugo.io", |
| 120 | + "items": { |
| 121 | + "type": "string" |
| 122 | + }, |
| 123 | + "title": "theme tags", |
| 124 | + "type": "array" |
| 125 | + } |
| 126 | + }, |
| 127 | + "required": ["name", "min_version"], |
| 128 | + "title": "Hugo theme config file schema", |
| 129 | + "type": "object", |
| 130 | + "x-taplo-info": { |
| 131 | + "authors": ["ngdangtu (https://gitlab.com/ngdangtu)"], |
| 132 | + "patterns": ["^(theme.toml)$"] |
| 133 | + } |
| 134 | +} |
0 commit comments