1. Linux环境下安装
    2. 先安装node
    3. node install -g gitbook-cli
    4. gitbook install 安装服务
    5. gitbook serve 启动服务

    配置文件(book.json):

    1. {
    2. "root": "./",
    3. "title": "岁月如歌",
    4. "author": "Luis_",
    5. "authorHomepage": "http://www.wswzms.top",
    6. "description": "Luis_",
    7. "language": "zh-hans",
    8. "copyright": "All Rights Reserved",
    9. "plugins": [
    10. "theme-code@0.0.20",
    11. "-sharing",
    12. "-lunr",
    13. "-search",
    14. "search-pro",
    15. "splitter",
    16. "tbfed-pagefooter",
    17. "expandable-chapters-small",
    18. "github",
    19. "-sharing-plus",
    20. "code",
    21. "-copy-code-button",
    22. "anchor-navigation-ex",
    23. "edit-link"
    24. ],
    25. "pluginsConfig": {
    26. "tbfed-pagefooter": {
    27. "copyright":"Copyright &copy Luis 2019",
    28. "modify_label": "修订时间:",
    29. "modify_format": "YYYY-MM-DD HH:mm:ss"
    30. },
    31. "expandable-chapters":{},
    32. "theme-default": {
    33. "showLevel": false
    34. },
    35. "github": {
    36. "url": "https://github.com/NightAlexLy"
    37. },
    38. "anchor-navigation-ex":{
    39. "showLevel": false
    40. },
    41. "edit-link": {
    42. "base": "https://github.com/NightAlexLy",
    43. "label": ""
    44. }
    45. }
    46. }

    如何搭建 GitBook

    参考资料