在页面中添加测验功能
添加quiz插件
在book.json中添加如下内容:
{
"plugins": ["quiz"]
}
运行gitbook install
。
设置插件配置信息
"quiz": {
"labels": {
"check": "提交答案",
"showExplanation": "显示解释",
"showCorrect": "显示正确答案",
"explanationHeader": "释义"
},
"text": {
"noChosen": "Choose at least one answer",
"incomplete": "Some correct answers are missing"
},
"buttons": {
"showCorrect": true,
"showExplanation": true
}
}
在md文件中插入quiz
What is gitbook used for?
Is it quiz?
This is multiple dropdown quiz, in each dropdown select a correct number corresponding to the dropdown's order