From 421d8de29d17d9390cae1f56bfc98667158a8096 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Mon, 28 Dec 2020 00:25:31 +0000 Subject: Add support for a configuration file --- config.example.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 config.example.yml (limited to 'config.example.yml') diff --git a/config.example.yml b/config.example.yml new file mode 100644 index 0000000..b50b88e --- /dev/null +++ b/config.example.yml @@ -0,0 +1,23 @@ +--- +core: + crop: 'left' # or: 'none', 'left', 'right' + blank: false # or: false + upload: true # or: false + verbose: true # or: false + experimental: true # or: false + +# System settings are all optional, but can be used if executables are not on +# the PATH. +system: + gs: /usr/bin/gs + +# Settings for styling HTML sources +html: + css: | + @page { size: 702px 936px; margin: 1in; } + img { display: block; margin: 0 auto; text-align: center; max-width: 70%; } + h1,h2,h3 { font-family: 'Montserrat'; } + p, li { font-size: 12pt; line-height: 2; font-family: 'Montserrat'; } + + font_urls: + - https://fonts.googleapis.com/css2?family=Montserrat&display=swap -- cgit v1.2.3 From 63cb0e845e3fc4d62f04217028fb2bb635e3f8a2 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Mon, 28 Dec 2020 01:00:11 +0000 Subject: expand comments in config example --- config.example.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'config.example.yml') diff --git a/config.example.yml b/config.example.yml index b50b88e..52d3ac4 100644 --- a/config.example.yml +++ b/config.example.yml @@ -1,17 +1,20 @@ --- core: - crop: 'left' # or: 'none', 'left', 'right' - blank: false # or: false - upload: true # or: false - verbose: true # or: false - experimental: true # or: false + crop: 'left' # options: 'none', 'left', 'center', 'right' + blank: false # options: true, false + upload: true # options: true, false + verbose: true # options: true, false + experimental: true # options: true, false # System settings are all optional, but can be used if executables are not on -# the PATH. +# the PATH. Options in this section include: gs, pdftk, pdftoppm, qpdf, and +# rmapi. system: gs: /usr/bin/gs -# Settings for styling HTML sources +# Settings for styling HTML sources. This section has support for a css field +# and a font_urls field. The former is expected to be a multiline string and +# the latter a list of urls. html: css: | @page { size: 702px 936px; margin: 1in; } -- cgit v1.2.3