From bb20c6a7eba2a931d34ba586c5b34c87767ca7c1 Mon Sep 17 00:00:00 2001 From: Julien Neuhart Date: Thu, 12 Apr 2018 17:47:24 +0200 Subject: [PATCH] adding some comments in default configuration file --- .ci/gotenberg.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.ci/gotenberg.yml b/.ci/gotenberg.yml index 43ccb2e9..dabc6509 100644 --- a/.ci/gotenberg.yml +++ b/.ci/gotenberg.yml @@ -10,10 +10,13 @@ logs: # When a TTY is not attached, the output will be in the defined format. format: "text" +# You don't like a library which is used for a conversion? You may provide here your own implementation. commands: markdown: + # Duration in seconds after which the command will be killed if it has not finished. timeout: 30 + # The command template: you have access to FilePath and ResultFilePath variables. template: "markdown-pdf {{ .FilePath }} -o {{ .ResultFilePath }}" html: @@ -26,4 +29,5 @@ commands: merge: timeout: 30 - template: "pdftk {{ range $filePath := .FilesPaths }} {{ $filePath }} {{ end }} cat output {{ .ResultFilePath }}" + # Unlike others commands, you have access to FilesPaths instead of FilePath: it gathers all PDF files which should be merged. + template: "pdftk {{ range $filePath := .FilesPaths }} {{ $filePath }} {{ end }} cat output {{ .ResultFilePath }}" \ No newline at end of file