Skip to content

cloudogu/docker-doc_template

Repository files navigation

logo

Cloudogu doc_template

About this Repository

Name: cloudogu/doc_template

Description A docker container for generating a PDF with Cloudogu Corporate Design from markdown files.

Requirements

Using the Container

  1. Build container with docker build . -t cloudogu/doc_template

    1. Navigate to a folder that contains markdown file(s)
    2. 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 templates cloudogu and itz-bund, the default template is cloudogu.
    3. 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

  2. Result inside the project root: document.pdf

Features

  • 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.

Debugging

  • Add --verbose before the file parameter, like so: docker run -v $(pwd):/data cloudogu/doc_template --verbose *.md

Release

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>

About

An example for generating PDF from Markdown with cloudogu/pandoc container

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 10