2019-12-25 01:24:34 +00:00
{
"$schema" : "http://json-schema.org/draft-07/schema#" ,
"$id" : "/common/article.json" ,
"description" : "Article related configurations" ,
"type" : "object" ,
"properties" : {
"highlight" : {
"type" : "object" ,
"description" : "Code highlight settings" ,
"properties" : {
"theme" : {
"type" : "string" ,
"description" : "Code highlight themes\nhttps://github.com/highlightjs/highlight.js/tree/master/src/styles" ,
2019-12-26 03:51:14 +00:00
"default" : "atom-one-light" ,
"nullable" : true
2019-12-25 01:24:34 +00:00
} ,
"clipboard" : {
2019-12-26 03:51:14 +00:00
"type" : "boolean" ,
2019-12-25 01:24:34 +00:00
"description" : "Show copy code button" ,
2019-12-26 03:51:14 +00:00
"default" : true ,
"nullable" : true
2019-12-25 01:24:34 +00:00
} ,
"fold" : {
"type" : "string" ,
"description" : "Default folding status of the code blocks. Can be \"\", \"folded\", \"unfolded\"" ,
"enum" : [
"" ,
"folded" ,
"unfolded"
] ,
2019-12-26 03:51:14 +00:00
"default" : "unfolded" ,
"nullable" : true
2019-12-25 01:24:34 +00:00
}
2019-12-26 03:51:14 +00:00
} ,
"nullable" : true
2019-12-25 01:24:34 +00:00
} ,
"readtime" : {
"type" : "boolean" ,
"description" : "Whether to show estimated article reading time" ,
2019-12-26 03:51:14 +00:00
"default" : true ,
"nullable" : true
2020-08-29 04:42:43 +00:00
} ,
2021-08-08 11:58:29 +00:00
"update_time" : {
"type" : [ "boolean" , "string" ] ,
"description" : "Whether to show updated time. For \"auto\", shows article update time only when page.updated is set and it is different from page.date" ,
"default" : true ,
"enum" : [ true , false , "auto" ] ,
"nullable" : true
} ,
2020-08-29 04:42:43 +00:00
"licenses" : {
2020-08-29 20:28:22 +00:00
"$ref" : "/misc/poly_links.json" ,
2020-08-29 04:42:43 +00:00
"description" : "Article licensing block" ,
"examples" : [
{
"Creative Commons" : {
"icon" : "fab fa-creative-commons" ,
"url" : "https://creativecommons.org/"
} ,
"Attribution" : {
"icon" : "fab fa-creative-commons-by" ,
"url" : "https://creativecommons.org/licenses/by/4.0/"
} ,
"Noncommercial" : {
"icon" : "fab fa-creative-commons-nc" ,
"url" : "https://creativecommons.org/licenses/by-nc/4.0/"
}
}
]
2019-12-25 01:24:34 +00:00
}
}
}