{"id":16798829,"url":"https://github.com/simonguo/hbook","last_synced_at":"2025-08-21T20:16:39.291Z","repository":{"id":57261888,"uuid":"48848373","full_name":"simonguo/hbook","owner":"simonguo","description":":trollface: Custom gitbook themes","archived":false,"fork":false,"pushed_at":"2016-11-26T08:48:47.000Z","size":3285,"stargazers_count":25,"open_issues_count":2,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-01T11:34:56.418Z","etag":null,"topics":["gitbook","gitbook-theme","hbook"],"latest_commit_sha":null,"homepage":"http://f2edocs.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","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":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-31T12:11:55.000Z","updated_at":"2024-03-04T04:54:40.000Z","dependencies_parsed_at":"2022-08-25T06:11:02.730Z","dependency_job_id":null,"html_url":"https://github.com/simonguo/hbook","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonguo%2Fhbook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonguo%2Fhbook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonguo%2Fhbook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simonguo%2Fhbook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simonguo","download_url":"https://codeload.github.com/simonguo/hbook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244173517,"owners_count":20410298,"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","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":["gitbook","gitbook-theme","hbook"],"created_at":"2024-10-13T09:27:01.215Z","updated_at":"2025-03-22T02:30:52.445Z","avatar_url":"https://github.com/simonguo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HBook\nFork: [https://github.com/GitbookIO/gitbook](https://github.com/GitbookIO/gitbook)\n\n[![NPM version](https://badge.fury.io/js/hbook.svg)](http://badge.fury.io/js/hbook)\n\n**功能**\n- 提供多种色彩模板选择;\n- 提供菜单可折叠配置;\n- 提供是否生成菜单序号配置;\n- 提供标题与版权信息设置。\n\n\n## 安装\n\n```\n$ npm install hbook-cli -g\n```\n\n初始化\n\n```\n$ hbook init\n```\n\n第1次初始化的时候会有点慢，下载 https://www.npmjs.com/package/hbook\n\n## 更新\n\n```\nhbook versions:update latest\n```\n\n更新到最新的版本\n\n\n## 编译，生成电子书\n\n```\n$ hbook build\n```\n\n## 参数及模板设置\n修改 `book.json`:\n\n```json\n{\n    \"title\": \"前端工程师文档\",\n    \"variables\": {\n        \"theme\": \"theme-gray\",\n        \"copyright\": \"Copyright 2015 f2edocs.com\"\n    },\n    \"collapsible_menu\":false,\n    \"level_number\":false\n}\n```\n\n## 自定义样式\n\n```json\n\"styles\": {\n    \"website\": \"styles/website.css\",\n    \"ebook\": \"styles/ebook.css\",\n    \"pdf\": \"styles/pdf.css\",\n    \"mobi\": \"styles/mobi.css\",\n    \"epub\": \"styles/epub.css\"\n}\n```\n\n\n- title: 配置文档标题，显示在页面顶部;\n- navs: 可以配置顶部菜单\n- variables.theme: 模板颜色,当前支持:theme-green,theme-purple,theme-orange,theme-deepblue;\n- variables.copyright: 配置版权信息，显示在页面底部;\n- styles: 自定义css\n\n\n## 谁在用\n[http://f2edocs.com/](http://f2edocs.com/)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonguo%2Fhbook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonguo%2Fhbook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonguo%2Fhbook/lists"}