Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

369cloud/hbook

Repository files navigation

HBook

Fork: https://github.com/GitbookIO/gitbook

NPM version Build Status

功能

  • 提供多种色彩模板选择:theme-green,theme-purple,theme-orange,theme-gray;
  • 提供菜单可折叠配置;
  • 提供是否生成菜单序号配置;
  • 提供标题与版权信息设置。

电脑上的效果

image

手机上的效果

image

预览效果 http://f2edocs.com/

深蓝色主题效果

image

安装

$ npm install hbook-cli -g

初始化

$ hbook init

编译,生成电子书

$ hbook build

参数及模板设置

修改 book.json:

{
 "variables": {
 "title": "前端工程师文档",
 "theme": "theme-gray",
 "copyright": "Copyright 2015 f2edocs.com"
 },
 "collapsible_menu":true,
 "level_number":false,
 "links": {
 "gitbook": false,
 "sharing": {
 "all":false,
 "vk": false,
 "facebook": true,
 "twitter": true,
 "google": true,
 "weibo": true
 }
 }
}
  • variables-title: 配置文档标题,显示在页面顶部;
  • variables-theme: 模板颜色,当前支持:theme-green,theme-purple,theme-orange,theme-deepblue;
  • variables-copyright: 配置版权信息,显示在页面底部;
  • collapsible_menu: 使用折叠菜单;
  • level_number: 使用菜单结构序号;
  • links: 开启一些连接.

谁在用

http://f2edocs.com/

About

📖 Custom gitbook themes

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 94.2%
  • CSS 4.3%
  • HTML 1.5%

AltStyle によって変換されたページ (->オリジナル) /