32 lines
1.0 KiB
Markdown
32 lines
1.0 KiB
Markdown
# Installation
|
|
|
|
[![Build Status](https://drone.grimbox.be/api/badges/fred/gwift-book/status.svg)](https://drone.grimbox.be/fred/gwift-book)
|
|
|
|
Ce livre peut être compilé avec [AsciiDoctor](https://asciidoctor.org/).
|
|
|
|
|
|
## Dépendances
|
|
|
|
```bash
|
|
$ gem install asciidoctor-pdf --pre
|
|
$ gem install asciidoctor-bibtex
|
|
$ gem install rouge
|
|
```
|
|
|
|
## Conversion en PDF
|
|
|
|
```bash
|
|
asciidoctor -a rouge-style=monokai -a pdf-themesdir=resources/themes -a pdf-theme=gwift main.adoc -t -r asciidoctor-diagram
|
|
|
|
asciidoctor-pdf -a pdf-themesdir=resources/themes -a pdf-theme=gwift main.adoc -t -r asciidoctor-diagram
|
|
```
|
|
|
|
## Image Docker
|
|
|
|
L'image Docker utilisée par Drone est [celle-ci](https://github.com/asciidoctor/docker-asciidoctor).
|
|
Elle convient tout ce qu'il faut pour compiler correctement le document en PDF (asciidoctor-pdf, asciidoctor-bibtex, ...).
|
|
|
|
## Erreurs connues
|
|
|
|
Si `asciidoctor` n'est pas dans le PATH malgré son installation, on peut le trouver grâce à la commande `gem env`, puis à réutiliser (ou à modifier le fichier `.bash_profile` ou `.profile`).
|