DemoCards.jl icon indicating copy to clipboard operation
DemoCards.jl copied to clipboard

The cover image was not properly handled when using a relative path

Open TCLiuu opened this issue 1 year ago • 1 comments

When the image path referenced in the example is a relative path, it cannot be processed correctly. For example,

![](../figures/cover.png)

Will produce an error, and the result will be like

┌ Warning: cover file doesn't exists
│   cover_path = "<CARD_PATH>/../figures/cover.png"
└ @ DemoCards ~/.julia/packages/DemoCards/ZgH8l/src/generate.jl:358

I think the problem arises from https://github.com/JuliaDocs/DemoCards.jl/blob/53ac68a4caafc62b5e02ddf5817204d26d2e8d00/src/generate.jl#L356

TCLiuu avatar Apr 21 '23 15:04 TCLiuu

This report is a bit unclear. Does cover_path really exist on your system? Does it print literally "<CARD_PATH>" or is that your own replacement?

frankier avatar Aug 30 '23 10:08 frankier