Skip to content

Latest commit

 

History

History
118 lines (81 loc) · 2.98 KB

README-zh.md

File metadata and controls

118 lines (81 loc) · 2.98 KB

waBook: 简单的 Markdown 图书构建工具.

简体中文 | English

Build Status GitHub release license

特性

  • 支持 Markdown 格式的电子书构建
  • 支持 Markdown 格式的幻灯片构建
  • 支持基于 Github Discuss 的留言功能
  • 电子书支持自定义 页眉/页脚

案例

使用 waBook 构建的图书列表:

安装

$ go install github.com/wa-lang/wabook@latest

命令行

$ wabook
NAME:
   wabook - A tool for build mini markdown book

USAGE:
   wabook [global options] command [command options] [arguments...]

COMMANDS:
   init   Creates a new book
   build  Builds a book from its markdown files
   serve  Serves a book at http://localhost:3000
   clean  Deletes a built book

GLOBAL OPTIONS:
   --help, -h  show help

 See "https://github.com/wa-lang/wabook" for more information.
  • init: 初始化一个 Book 基础版本
  • build: 将 Markdown 的 Book 构建为 html
  • serve: 构建并启动服务, 方便本地查看效果
  • clean: 删除构建的 book 子目录

book.ini 文件

不支持注释,不支持未定义属性:

[book]
authors = ["chai2010"]
description = ""
language = "zh"
src = "."
title = "book title"

[output.html]
git-repository-icon = "fa-github"
git-repository-url = "https://github.com/wa-lang/wabook"
edit-url-template = "https://github.com/wa-lang/wabook/edit/master/testdata/{path}"

SUMMARY.md 文件

# Summary

[Preface](preface.md)

- [Chapter 1](./src/chapter_1.md)
  - [Chapter 1.1](./src/chapter_1.1.md)
  - [Chapter 1.2](./src/chapter_1.2.md)

- [Chapter 2](./src/chapter_2.md)

<!-- comment -->

Markdown 文件

# Chapter 1

[Github Repo](https://github.com/wa-lang/wabook): `[Github Repo](https://github.com/wa-lang/wabook)`


Image: `![](../images/video-001.png)`:

![](../images/video-001.png)

OK!

不支持内联 HTML。