From df00cf05cbf817b7d8e7de0a4a220dd70f8a9608 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 5 Mar 2021 11:56:41 -0800 Subject: Allow `${.}` in defaults files paths... to refer to the directory where the default file is. This will make it possible to create moveable "packages" of resources in a directory. Closes #5871. --- MANUAL.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'MANUAL.txt') diff --git a/MANUAL.txt b/MANUAL.txt index f06293dd3..8e98ee1eb 100644 --- a/MANUAL.txt +++ b/MANUAL.txt @@ -1684,6 +1684,19 @@ user data directory that is current when the defaults file is parsed, regardless of the setting of the environment variable `USERDATA`. +`${.}` will resolve to the directory containing the default +file itself. This allows you to refer to resources contained +in that directory: + +``` yaml +epub-cover-image: ${.}/cover.jpg +epub-metadata: ${.}/meta.xml +resource-path: +- . # the working directory from which pandoc is run +- ${.}/images # the images subdirectory of the directory + # containing this defaults file +``` + This environment variable interpolation syntax *only* works in fields that expect file paths. -- cgit v1.2.3