schemaspy / schemaspy

Database documentation built easy
http://schemaspy.org
GNU Lesser General Public License v3.0
3.17k stars 312 forks source link

images not copying from templates folder #908

Open StevenGrzybowski opened 2 years ago

StevenGrzybowski commented 2 years ago

Expected Behavior

I extracted the contents of the layout folder to a directory called templates. I attempted to add a custom image to use for a logo. When I run schemaspy, I would expect this image to be copied to the images directory of the output folder

Current Behavior

The image does not copy over, resulting in a broken image link in the output

Possible Solution

npetzall commented 2 years ago

It's not supported, the template argument is only for template handling not other resources. Templates aren't copied to output, they are just processed.

What we would require is a new feature to add additional resources to output. Which potentially would run after the layout extraction so that resources could be added or replaced.

I assume it would be easier to just create a folder like resource/images and put the image there instead of extracting layout. Then introduce a new argument -additional [path-to-folder].

@StevenGrzybowski Would that fit your need?

StevenGrzybowski commented 2 years ago

Thank you for the information.