Skip to content

adiciona parametro para inclusao de imagem de capa na geracao do livro e markdown ensinando a gerar o ebook #65

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Livro.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ include::atributos-pt_BR.adoc[]
:toc: left
:toclevels: 2
:!chapter-signifier:
:front-cover-image: image:cover.jpg[fit=cover]

include::Prefacio.adoc[]

Expand Down
33 changes: 33 additions & 0 deletions como-gerar-o-livro.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
## Gerando o livro apartir do fonte.

### Instale as dependências necessárias.

#### Ruby

###### Linux
ubuntu
`sudo apt-get install -y ruby`

arch
`sudo pacman -S ruby`

###### Mac OS

Com o [Homebrew](https://brew.sh/) instalado use o comando abaixo:

`brew install ruby`

###### Windows


Com o [Chocolatey](https://chocolatey.org/) instalado use o comando abaixo:

`choco install ruby`

##### Asciidoctor-epub3

`gem install asciidoctor-epub3`

#### Gerando livro no formato epub.

Na raiz do projeto rode o comando: `asciidoctor-epub3 livro.adoc -o 'Python Fluente - Luciano Ramalho, Segunda Edição (2023).epub'`
Binary file added cover.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.