diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2022-07-11 23:52:30 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-11 23:52:30 -0600 |
| commit | 4e476bf2ef48df1b27138f78fe2f9c20e6aefc51 (patch) | |
| tree | be015fa31d1c30bb13f9b35847618dc031b98e54 /docs/modules | |
| parent | 9471b14c19d7c5a74c965209b58df644bfe49087 (diff) | |
resolves #2278 set docimagesdir attribute when attribute substitutions are applied to value from theme (PR #2280)
Diffstat (limited to 'docs/modules')
| -rw-r--r-- | docs/modules/theme/pages/apply-theme.adoc | 2 | ||||
| -rw-r--r-- | docs/modules/theme/pages/images.adoc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/modules/theme/pages/apply-theme.adoc b/docs/modules/theme/pages/apply-theme.adoc index 2cdb4fab..967ea94c 100644 --- a/docs/modules/theme/pages/apply-theme.adoc +++ b/docs/modules/theme/pages/apply-theme.adoc @@ -66,7 +66,7 @@ For now, it's recommended that you specify absolute paths to future-proof your c $ asciidoctor-pdf --theme /path/to/resources/themes/basic-theme.yml -a pdf-fontsdir=/path/to/resources/fonts doc.adoc -Alternately, you can prefix image paths in the theme using the `+{docdir}+` attribute reference. +Alternately, you can prefix image paths in the theme using the `+{docdir}+` or `+{docimagesdir}+` attribute references. == Using Maven and Gradle diff --git a/docs/modules/theme/pages/images.adoc b/docs/modules/theme/pages/images.adoc index 2dec6a08..6c4fecad 100644 --- a/docs/modules/theme/pages/images.adoc +++ b/docs/modules/theme/pages/images.adoc @@ -48,12 +48,12 @@ title-page: The target of the inline image macro can be a path relative to the `pdf-themesdir` attribute (default), an absolute path, or a data URI. If `pdf-theme` is a path that ends in `.yml`, and `pdf-themesdir` is not set, then the images are resolved relative to the directory of the path specified by `pdf-theme`. -If you want to reference an image relative to the document you're converting, then prefix the target with the `\{docdir}` attribute reference. +If you want to reference an image relative to the document you're converting, then prefix the target with the `\{docdir}` or `\{docimagesdir}` attribute references, which both resolve to an absolute path. [,yaml] ---- title-page: - background-image: image:{docdir}/images/title-cover.png[] + background-image: image:{docimagesdir}/title-cover.png[] ---- === Per page layout |
