2024-06-15 08:42:26 +00:00
|
|
|
# letterpress
|
2024-07-03 21:23:38 +00:00
|
|
|
|
2024-06-15 08:42:26 +00:00
|
|
|
Gutenberg the 💩 out of it!
|
2024-07-03 21:23:38 +00:00
|
|
|
|
2024-07-03 21:26:55 +00:00
|
|
|
<img src="figures/gutenberg.jpg" width=530>
|
|
|
|
|
2024-07-07 16:29:39 +00:00
|
|
|
## Tools
|
|
|
|
|
|
|
|
This Project makes use of the following tools:
|
|
|
|
|
|
|
|
- [GNU Make](https://www.gnu.org/software/make/)
|
|
|
|
- [Asciidoctor](https://asciidoctor.org/)
|
|
|
|
|
2024-07-03 21:23:38 +00:00
|
|
|
## Batteries included
|
|
|
|
|
2024-07-07 16:29:39 +00:00
|
|
|
Everything you need to get started is included in the package
|
|
|
|
|
|
|
|
- Devcontainers: Allows you to build your book locally
|
|
|
|
- GitHub Workflows: Allows you to build your book on GitHub CI
|
2024-07-03 21:23:38 +00:00
|
|
|
|
|
|
|
## Bring your own
|
|
|
|
|
|
|
|
- Content
|
|
|
|
- Images
|
2024-07-03 21:29:25 +00:00
|
|
|
|
|
|
|
## Commands
|
|
|
|
|
|
|
|
### Generate
|
|
|
|
|
2024-07-07 16:11:29 +00:00
|
|
|
In order to generate the PDF and the EPUB versions of the book you can just run:
|
|
|
|
|
2024-07-03 21:29:25 +00:00
|
|
|
```bash
|
|
|
|
make
|
|
|
|
```
|
|
|
|
|
2024-07-07 16:11:29 +00:00
|
|
|
If you just need to generate the PDF:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
make output/your_book_slug.pdf
|
|
|
|
```
|
|
|
|
|
|
|
|
If you just need to generate the EPUB:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
make output/your_book_slug.epub
|
|
|
|
```
|
|
|
|
|
2024-07-03 21:29:25 +00:00
|
|
|
### Count
|
|
|
|
|
|
|
|
```bash
|
|
|
|
make count
|
|
|
|
```
|
2024-07-07 16:11:29 +00:00
|
|
|
|
|
|
|
### Clean
|
|
|
|
|
|
|
|
In order to remove the generated files you can run:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
make clean
|
|
|
|
```
|
2024-07-07 16:31:08 +00:00
|
|
|
|
|
|
|
## Structure
|
|
|
|
|
|
|
|
The entry point of the book is [book.adoc](source/book.adoc).
|
|
|
|
|
|
|
|
The [book.adoc](source/book.adoc) consists of 3 sections:
|
|
|
|
|
|
|
|
- The [front matter](source/front_matter.adoc)
|
|
|
|
- The [body](source/body.adoc)
|
|
|
|
- The [back matter](source/back_matter.adoc)
|
|
|
|
|
|
|
|
The [body](source/body.adoc) is where should be placing the main content of your book.
|