asciidoctor/docker-asciidoctor
À propos
Une image Docker permettant de traiter du contenu AsciiDoc avec la chaîne d’outils Asciidoctor.
Systèmes et infrastructureProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalAsciidoctor Docker Container
The environment
This Docker image provides:
Asciidoctor 2.0.23
Asciidoctor Diagram 2.3.1 with ERD and Graphviz integration (supports plantuml and graphiz diagrams)
Asciidoctor PDF 2.3.19
Asciidoctor EPUB3 2.1.3
Asciidoctor FB2 0.7.0
Asciidoctor Mathematical 0.3.5
Asciidoctor reveal.js 5.2.0
Asciidoctor Confluence 0.0.2
Asciidoctor Bibtex 0.9.0
Asciidoctor Kroki 0.10.0
Asciidoctor Reducer 1.0.2
This image uses Alpine Linux 3.21.0 as base image.
[!NOTE] Docker Engine 20.10 or later is required (or any container engine supporting Alpine 3.14) to avoid unexpected
No such file or directoryerrors (such as #214 or #215).
[!NOTE] This image uses the Go-based erd-go instead of the original Haskell-based erd to allow the Docker image to be provided as a multi-platform image.
How to use it
Just run:
docker run -it -u $(id -u):$(id -g) -v <your directory>:/documents/ asciidoctor/docker-asciidoctor
or the following for Podman:
podman run -it -v <your directory>:/documents/ docker.io/asciidoctor/docker-asciidoctor
Docker/Podman maps your directory with /documents directory in the container.
[!NOTE] You might need to add the option
:zor:Zlike<your directory>:/documents/:zor<your directory>:/documents/:Zif you are using SELinux. See Docker docs or Podman docs.
After you start the container, you can use Asciidoctor commands to convert AsciiDoc files that you created in the directory mentioned above. You can find several examples below.
To run Asciidoctor on a basic AsciiDoc file:
asciidoctor sample.adoc asciidoctor-pdf sample.adoc asciidoctor-epub3 sample.adocTo run AsciiDoc on an AsciiDoc file that contains diagrams:
asciidoctor -r asciidoctor-diagram sample-with-diagram.adoc asciidoctor-pdf -r asciidoctor-diagram sample-with-diagram.adoc asciidoctor-epub3 -r asciidoctor-diagram sample-with-diagram.adocTo run AsciiDoc on an AsciiDoc file that contains latexmath and stem blocks:
asciidoctor -r asciidoctor-mathematical sample-with-diagram.adoc asciidoctor-pdf -r asciidoctor-mathematical sample-with-diagram.adoc asciidoctor-epub3 -r asciidoctor-mathematical sample-with-diagram.adocTo use Asciidoctor Confluence:
asciidoctor-confluence --host HOSTNAME --spaceKey SPACEKEY --title TITLE --username USER --password PASSWORD sample.adocTo use Asciidoctor reveal.js with local downloaded reveal.js:
asciidoctor-revealjs sample-slides.adoc asciidoctor-revealjs -r asciidoctor-diagram sample-slides.adocTo use Asciidoctor reveal.js with online reveal.js:
asciidoctor-revealjs -a revealjsdir=https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.9.2 sample-slides.adoc asciidoctor-revealjs -a revealjsdir=https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.9.2 -r asciidoctor-diagram sample-slides.adocTo convert files in batch:
docker run --rm -u $(id -u):$(id -g) -v $(pwd):/documents/ asciidoctor/docker-asciidoctor asciidoctor-pdf index.adocor:
podman run --rm -v $(pwd):/documents/ docker.io/asciidoctor/docker-asciidoctor asciidoctor-pdf index.adoc
How to contribute / do it yourself?
Check the Contributing to the Asciidoctor Docker Container page.
Explorer des projets similaires
Chargement…