{"id":16798841,"url":"https://github.com/simonguo/gitbook-ext","last_synced_at":"2025-07-28T02:04:40.581Z","repository":{"id":84263182,"uuid":"42922352","full_name":"simonguo/gitbook-ext","owner":"simonguo","description":"Gitbook-Ext是对GitBook的扩展，并提供一些更丰富的模板","archived":false,"fork":false,"pushed_at":"2016-02-19T10:10:45.000Z","size":2148,"stargazers_count":9,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-13T16:31:11.793Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/gitbook-ext","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simonguo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-22T08:47:59.000Z","updated_at":"2022-03-17T07:26:22.000Z","dependencies_parsed_at":"2023-03-13T07:00:20.226Z","dependency_job_id":null,"html_url":"https://github.com/simonguo/gitbook-ext","commit_stats":{"total_commits":24,"total_committers":2,"mean_commits":12.0,"dds":"0.16666666666666663","last_synced_commit":"9dc4045e134665c2b3a197e1756d4c62f3b1214b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/simonguo/gitbook-ext","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonguo%2Fgitbook-ext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonguo%2Fgitbook-ext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonguo%2Fgitbook-ext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonguo%2Fgitbook-ext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonguo","download_url":"https://codeload.github.com/simonguo/gitbook-ext/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonguo%2Fgitbook-ext/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267451489,"owners_count":24089312,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T09:27:02.670Z","updated_at":"2025-07-28T02:04:40.554Z","avatar_url":"https://github.com/simonguo.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gitbook-Ext\n\n迁移到:https://github.com/simonguo/hbook\n\nGitBook 是一个基于 Node.js 的命令行工具，可使用 Github/Git 和 Markdown 来制作精美的电子书，GitBook 并非关于 Git 的教程。\n\nGitBook 提供的的默认样式可能不能满足您的视觉需求，Gitbook-Ext是对GitBook的扩展，并陆续会提供一些更丰富的模板选择。\n\n**扩展功能**\n- 提供多种色彩模板选择:theme-green,theme-purple,theme-orange,theme-gray;\n- 提供菜单可折叠配置;\n- 提供是否生成菜单序号配置;\n- 提供标题与版权信息设置。\n\n电脑上的效果\n\n![image](https://raw.githubusercontent.com/simonguo/gitbook-ext/master/demo-pc.png)\n\n手机上的效果\n\n![image](https://raw.githubusercontent.com/simonguo/gitbook-ext/master/demo-m.png)\n\n预览效果 [http://f2edocs.com/](http://f2edocs.com/)\n\n深蓝色主题效果\n\n![image](https://raw.githubusercontent.com/simonguo/gitbook-ext/master/demo-deepblue.png\n)\n\n## 快速开始\n**安装GitBook**\n\n首先你需要先安装nodejs/npm, 然后在安装gitbook 通过以下命令就可以安装\n\n```\n$ npm install gitbook-cli -g\n```\n\ngitbook具体详细可以参考 [https://github.com/GitbookIO/gitbook](https://github.com/GitbookIO/gitbook)\n\n**安装Gitbook-Ext**\n\n```\nnpm install gitbook-ext -g\n```\n\n**查看帮助**\n\n```\ngitbook-ext -h\n```\n\n会列出以下信息\n\n```\nUsage: index [options]\n\n Options:\n\n   -h, --help      output usage information\n   -V, --version   output the version number\n   -d, --default   default template\n   -p, --pagurian  pagurian template\n```\n\n**使用模板**\n\n初始化模板信息\n\n```\ngitbook-ext -i\n```\n\n你也可以手动创建以下文件\n\n```\n├── book.json\n├── README.md\n└── SUMMARY.md\n```\n\nbook.json 这个文件可以配置模板参数\n\n```json\n{\n    \"variables\": {\n        \"title\": \"前端工程师文档\",\n        \"theme\": \"theme-gray\",\n        \"copyright\": \"Copyright 2015 f2edocs.com\"\n    },\n    \"collapsible_menu\":true,\n    \"level_number\":false,\n    \"links\": {\n        \"gitbook\": false,\n        \"sharing\": {\n            \"all\":false,\n            \"vk\": false,\n            \"facebook\": true,\n            \"twitter\": true,\n            \"google\": true,\n            \"weibo\": true\n        }\n\n    }\n}\n```\n\n- variables-title: 配置文档标题，显示在页面顶部;\n- variables-theme: 模板颜色,当前支持:theme-green,theme-purple,theme-orange;\n- variables-copyright: 配置版权信息，显示在页面底部;\n- collapsible_menu: 使用折叠菜单;\n- level_number: 使用菜单结构序号;\n- links: 开启一些连接.\n\n切换你需要使用的模板 比如使用pagurian模板\n\n```\ngitbook-ext -p\n```\n\n当配置完成以后，执行以下命令，就默认生成了一个_book文件\n\n```\ngitbook build\n```\n\n如果你想切换到默认的模板，执行以下命令\n\n```\ngitbook-ext -d\ngitbook build\n```\n\n\n\n\n## 谁在用\n[http://f2edocs.com/](http://f2edocs.com/)\n\n##问题\n\n如果需要帮助，可以联系[这里](https://github.com/simonguo/gitbook-ext/issues)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonguo%2Fgitbook-ext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonguo%2Fgitbook-ext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonguo%2Fgitbook-ext/lists"}