You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Diagrams should get rendered to an output folder below resources/_gen/images. Otherwise one needs to add content/**/*.png|jpg|svg|... to the .gitignore file to avoid Git changes in the worktree which need to get reverted after each site build.
Currently if one is working with workingFolderCurrent: true the images are generated besides their origin *.adoc files. This is required when you want to have working relative AsciiDoc cross references and AsciiDoc includes. But it would be totally fine to have generated images in resources/_gen/images, as they are combined in Hugo's union file system. It would just be necessary that the folder structure under content would be reflected so that image references are fine. Also for permalinks of course.
Maybe there is a way to achieve this with the current AsciiDoctor integration.
I think the imagesoutdir attribute would need to be configured per file in a way that resources/_gen/images is used as prefix and content/path/to/image/origin/file.adoc is converted to path/to/image/origin/ and concatenated with the prefix.
Hmm. Maybe you’re right. Alternative is to use a naming pattern for generated images of AsciiDoc and add it as pattern to the .gitignore file. Otherwise you’ll see 100s of changes each time for large pages. And i don’t want to commit generated images.
Diagrams should get rendered to an output folder below
resources/_gen/images
. Otherwise one needs to addcontent/**/*.png|jpg|svg|...
to the.gitignore
file to avoid Git changes in the worktree which need to get reverted after each site build.Currently if one is working with
workingFolderCurrent: true
the images are generated besides their origin*.adoc
files. This is required when you want to have working relative AsciiDoc cross references and AsciiDoc includes. But it would be totally fine to have generated images inresources/_gen/images
, as they are combined in Hugo's union file system. It would just be necessary that the folder structure undercontent
would be reflected so that image references are fine. Also for permalinks of course.Maybe there is a way to achieve this with the current AsciiDoctor integration.
I think the
imagesoutdir
attribute would need to be configured per file in a way thatresources/_gen/images
is used as prefix andcontent/path/to/image/origin/file.adoc
is converted topath/to/image/origin/
and concatenated with the prefix.resources/_gen/images/path/to/image/origin/
@jmooring What do you think?
The text was updated successfully, but these errors were encountered: