Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/honkit/honkit
:book: HonKit is building beautiful books using Markdown - Fork of GitBook
https://github.com/honkit/honkit
asciidoc book ebook gitbook honkit javascript markdown plugin
Last synced: 7 days ago
JSON representation
:book: HonKit is building beautiful books using Markdown - Fork of GitBook
- Host: GitHub
- URL: https://github.com/honkit/honkit
- Owner: honkit
- License: apache-2.0
- Created: 2020-06-13T12:16:48.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-10-16T01:30:51.000Z (20 days ago)
- Last Synced: 2024-10-23T00:07:57.904Z (13 days ago)
- Topics: asciidoc, book, ebook, gitbook, honkit, javascript, markdown, plugin
- Language: TypeScript
- Homepage: https://honkit.netlify.app
- Size: 76.9 MB
- Stars: 3,030
- Watchers: 35
- Forks: 223
- Open Issues: 56
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome - honkit/honkit - :book: HonKit is building beautiful books using Markdown - Fork of GitBook (TypeScript)
- awesome-github-repos - honkit/honkit - :book: HonKit is building beautiful books using Markdown - Fork of GitBook (TypeScript)
- awesome-list - honkit - Fork of GitBook | honkit | 1769 | (TypeScript)
- Awesome - HonKit - ๐ HonKit is building beautiful books using Markdown - Fork of GitBook. (E-books / Programming)
- jimsghstars - honkit/honkit - :book: HonKit is building beautiful books using Markdown - Fork of GitBook (TypeScript)
README
# HonKit
HonKit is building beautiful books using GitHub/Git and Markdown.
![HonKit Screenshot](./honkit.png)
## Documentation and Demo
HonKit documentation is built by HonKit!
-
## Quick Start
### Installation
- Requirement: [Node.js](https://nodejs.org) [LTS](https://nodejs.org/en/about/previous-releases) version
The best way to install HonKit is via **NPM** or **Yarn**.
```
$ npm init --yes
$ npm install honkit --save-dev
```โ ๏ธ Warning:
- If you have installed `honkit` globally, you must install each plugins globally as well
- If you have installed `honkit` locally, you must install each plugins locally as wellWe recommend installing `honkit` locally.
### Create a book
HonKit can set up a boilerplate book:
```
$ npx honkit init
```If you wish to create the book into a new directory, you can do so by running `honkit init ./directory`
Preview and serve your book using:
```
$ npx honkit serve
```Or build the static website using:
```
$ npx honkit build
```You can start to write your book!
For more details, see [HonKit's documentation](https://honkit.netlify.app/).
## Docker support
Honkit provide docker image at [honkit/honkit](https://hub.docker.com/r/honkit/honkit).
This docker image includes built-in dependencies for PDF/epub.
```
docker pull honkit/honkit
docker run -v `pwd`:`pwd` -w `pwd` --rm -it honkit/honkit honkit build
docker run -v `pwd`:`pwd` -w `pwd` --rm -it honkit/honkit honkit pdf
```For more details, see [docker/](./docker/).
## Usage examples
HonKit can be used to create a book, public documentation, enterprise manual, thesis, research papers, etc.
You can find a list of [real-world examples](https://honkit.netlify.app/examples.html) in the documentation.
## Features
* Write using [Markdown](https://honkit.netlify.app/syntax/markdown.html) or [AsciiDoc](https://honkit.netlify.app/syntax/asciidoc.html)
* Output as a website or [ebook (pdf, epub, mobi)](https://honkit.netlify.app/ebook.html)
* [Multi-Languages](https://honkit.netlify.app/languages.html)
* [Lexicon / Glossary](https://honkit.netlify.app/lexicon.html)
* [Cover](https://honkit.netlify.app/ebook.html)
* [Variables and Templating](https://honkit.netlify.app/templating/)
* [Content References](https://honkit.netlify.app/templating/conrefs.html)
* [Plugins](https://honkit.netlify.app/plugins/)
* [Beautiful default theme](./packages/@honkit/theme-default)## Fork of GitBook
HonKit is a fork of [GitBook (Legacy)](https://github.com/GitbookIO/gitbook).
[GitBook (Legacy)](https://github.com/GitbookIO/gitbook) is [deprecated](https://github.com/GitbookIO/gitbook/commit/6c6ef7f4af32a2977e44dd23d3feb6ebf28970f4) and an inactive project.HonKit aims to smooth the migration from GitBook (Legacy) to HonKit.
### Compatibility with GitBook
- Almost all plugins work without changes!
- Support `gitbook-plugin-*` packages
- You should install these plugins via npm or yarn
- `npm install gitbook-plugin- --save-dev`### Differences with GitBook
- Node.js 14+ supports
- Improve `build`/`serve` performance
- `honkit build`: use file cache by default
- `honkit serve`: 28.2s โ 0.9s in [examples/benchmark](examples/benchmark)
- Also, support `--reload` flag for force refresh
- Improve plugin loading logic
- Reduce cost of finding `honkit-plugin-*` and `gitbook-plugin-*`
- Support `honkit-plugin-*` and `@scope/honkit-plugin-*` (GitBook does not support a scoped module)
- Remove `install` command
- Instead of it, just use `npm install` or `yarn install`
- Remove `global-npm` dependency
- You can use HonKit with another npm package manager like `npm` or `yarn`
- Update dependencies
- Upgrade to nunjucks@2, highlight.js etc...
- It will reduce bugs
- TypeScript
- Rewritten by TypeScript
- Monorepo codebase
- Easy to maintain
- [Docker support](./docker)### Migration from GitBook
Replace `gitbook-cli` with `honkit`.
```
npm uninstall gitbook-cli
npm install honkit --save-dev
```Replace `gitbook` command with `honkit` command.
```diff
"scripts": {
- "build": "gitbook build",
+ "build": "honkit build",
- "serve": "gitbook serve"
+ "serve": "honkit serve"
},
```After that, HonKit just works!
Examples of migration:
- [Add a Github action to deploy ยท DjangoGirls/tutorial](https://github.com/DjangoGirls/tutorial/pull/1666)
- [Migrate from GitBook to Honkit ยท swaroopch/byte-of-python](https://github.com/swaroopch/byte-of-python/pull/88)
- [replace Gitbook into Honkit ยท yamat47/97-things-every-programmer-should-know](https://github.com/yamat47/97-things-every-programmer-should-know/pull/2)
- [Migrate misp-book from GitBook to honkit](https://github.com/MISP/misp-book/pull/227)## Benchmarks
`honkit build` benchmark:
-
## Licensing
HonKit is licensed under the Apache License, Version 2.0. See [LICENSE](LICENSE) for the full license text.
HonKit is a fork of [GitBook (Legacy)](https://github.com/GitbookIO/gitbook).
GitBook is licensed under the Apache License, Version 2.0.Also, HonKit includes [bignerdranch/gitbook](https://github.com/bignerdranch/gitbook) works.
## Sponsors