常用的插件都有哪些?

与Latex制作的pdf相比,GitBook的最大优势在于其能使用js脚本,这使得GitBook在功能上可以不断拓展,比如在文档中嵌入视频、嵌入动画、嵌入js练习,嵌入测试。

常用的插件

  • exercises,在文档中增加交互练习内容,目前只支持js语言。
  • quiz,在文档中增加测验内容,支持单选、多选、排序。
  • include-codeblock,使得GitBook能引用外部独立文档。
  • localized-footer,为GitBook的每个页面添加页脚内容。
  • page-footer-ex,为文档添加修改时间和版权声明页脚。
  • search-pro,为GitBook添加多字节字符搜索,实现中文搜索(默认只能搜索英文)。
  • sharing-plus,GitBook默认分享工具的增强版,加入了中国常用的社交网站。
  • changyan,为GitBook页面添加畅言评论框。
  • iframely, 在页面中嵌入常见视频网站内容。
  • bibtex-indexed-cite,使用bibtex格式,自动生成参考文献。

本文档用到的插件及配置

{ "title": "GitBook学习笔记", "author": "yangjh", "links": { "sidebar": { "Home": "http://yangzh.cn" } }, "plugins": [ "-sharing", "sharing-plus", "include-codeblock", "ace", "quiz", "-lunr", "-search", "search-pro", "collapsible-menu", "bibtex-indexed-cite", "-livereload", "prism", "-highlight", "url-embed", "page-footer-ex" ], "pluginsConfig": { "theme-default": { "showLevel": true }, "sharing": { "douban": false, "facebook": false, "google": false, "hatenaBookmark": false, "instapaper": false, "line": false, "linkedin": false, "messenger": false, "pocket": false, "qq": true, "qzone": true, "stumbleupon": false, "twitter": false, "viber": false, "vk": false, "weibo": true, "whatsapp": false, "all": [ "facebook", "google", "twitter", "weibo", "qq", "linkedin", "qzone", "douban" ] }, "include-codeblock": { "template": "ace", "unindent": true, "edit": false }, "quiz": { "labels": { "check": "提交答案", "showExplanation": "显示解释", "showCorrect": "显示正确答案", "explanationHeader": "释义" }, "text": { "noChosen": "Choose at least one answer", "incomplete": "Some correct answers are missing" }, "buttons": { "showCorrect": true, "showExplanation": true } }, "bibtex-indexed-cite": { "path": "/" }, "prism": { "css": [ "prismjs/themes/prism-solarizedlight.css" ] }, "page-footer-ex": { "copyright": "By [yangzh](http://yangzh.cn),使用[知识共享 署名-相同方式共享 4.0协议](https://creativecommons.org/licenses/by-sa/4.0/)发布", "markdown": true, "update_label": "此页面修订于:", "update_format": "YYYY-MM-DD HH:mm:ss" } } }

results matching ""

    No results matching ""