Name: cloudogu/doc_template
Description A docker container for generating a PDF with Cloudogu Corporate Design from markdown files.
-
Build container with
docker build . -t cloudogu/doc_template -
- Navigate to a folder that contains markdown file(s)
- Generate a PDF:
docker run -v $(pwd):/data cloudogu/doc_template *.md <Template-Name>in a directory with Markdown files (Use Panddoc Markdown syntax). The Template can be specified since version 0.22.0. There are currently two templatescloudoguanditz-bund, the default template iscloudogu. - The finished .pdf will reside in the current folder and is called
document.pdf.
Example:
docker run -v $(pwd):/data cloudogu/doc_template Benutzerdoku_Projektvorlageagil.md itz-bund
-
Result inside the project root:
document.pdf
- Add a title page
Syntax:
% Testpage
% Cloudogu EcoSystem
Enhanced meta data format:
---
title: 'Testpage'
author:
- "Cloudogu GmbH"
version: '1.0'
date: '23.01.2021'
...
-
Syntax highlighting
-
PlantUml
-
Tables
-
Long sequences
\seqsplit{...abc...}
See sample.md for more information.
Or sample.pdf for the converted pdf.
- Add
--verbosebefore the file parameter, like so:docker run -v $(pwd):/data cloudogu/doc_template --verbose *.md
Before release of this tool, update and release the submodules and update them here with git submodule update --remote --merge
(if you have trouble here, make sure the itz-bund sub-repo's branch is set to the prior released master branch).
After this just create a regular git-flow release in the docker-doc_template.
Release on Nexus registry
Login docker login ecosystem.cloudogu.com, login via credentials from ecosystem.
docker build -t ecosystem.cloudogu.com/cloudogu/markdown_doc_template:<version> .
docker push ecosystem.cloudogu.com/cloudogu/markdown_doc_template:<version>
Release in Docker registry
docker build -t cloudogu/doc_template:<version> .
docker push cloudogu/doc_template:<version>
