I’m referring to a pdf using in a markdown file using [foo](/images/smile.pdf),
and it works fine, the pdf is displayed when the user clicks. But on startup
I see: WARN Page '/images/smile.pdf' not found in '_index'. I tried moving
the pdf file to /static/doc, but this doesn’t fix the issue.
your pdf file then has to be moved to the page bundle or the assets folder
without any link render hook and bare markdown.
if your file is in /static/doc/smile.pdf without any render hook it can be referenced as [smile](/doc/smile.pdf) in markdown (if your site is in a subfolder as [smile](/subfolder/doc/smile.pdf)
Just noting that you’re not doing something wrong and you can safely ignore the warning since everything works as expected. The theme’s author could arguably check if the files / resources exist with a better method.