summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2017-02-26 14:42:09 +0100
committerSamy Pessé <samypesse@gmail.com>2017-02-26 14:42:09 +0100
commit36b00d6cf2d521bdcfe2d954a02d6716c9de923e (patch)
treebe0ec75a717714f0b053eb0990841a8c638d1af4
parent34879aafb2066dafd7618524f485ca1803a87684 (diff)
downloadgitbook-36b00d6cf2d521bdcfe2d954a02d6716c9de923e.zip
gitbook-36b00d6cf2d521bdcfe2d954a02d6716c9de923e.tar.gz
gitbook-36b00d6cf2d521bdcfe2d954a02d6716c9de923e.tar.bz2
Add spec for hint block
-rw-r--r--packages/gitbook-plugin-hints/package.json19
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/gitbook-plugin-hints/package.json b/packages/gitbook-plugin-hints/package.json
index 6f2e0d0..6b33fe5 100644
--- a/packages/gitbook-plugin-hints/package.json
+++ b/packages/gitbook-plugin-hints/package.json
@@ -24,5 +24,24 @@
},
"bugs": {
"url": "https://github.com/GitBookIO/gitbook/issues"
+ },
+ "gitbook": {
+ "blocks": {
+ "hint": {
+ "title": "Hint",
+ "description": "Display an alert message.",
+ "properties": {
+ "style": {
+ "title": "Style",
+ "type": "string",
+ "enum": ["info", "danger", "tip", "working"],
+ "default": "info"
+ },
+ "children": {
+ "type": "node"
+ }
+ }
+ }
+ }
}
}