mkdocs-plugins icon indicating copy to clipboard operation
mkdocs-plugins copied to clipboard

Trying to get a timeline on my page and get this error

Open zjoukhadar opened this issue 2 years ago • 3 comments

image

zjoukhadar avatar Jan 30 '23 00:01 zjoukhadar

Hi @zjoukhadar The error message explains what's happening, it's a wrapper around the file not found error. The path to the source must be relative from the root folder of your MkDocs project. For example, if it was inside your docs folder, it must be something like: ./docs/timeline/timeline-1.json.

If your "assets" folder is inside your "docs" folder, you need to make it "./docs/assets/timeline2.json".

RobertoPrevato avatar Jan 30 '23 07:01 RobertoPrevato

Thanks, the './docs/' addition is what I missed. I was assuming that path is read same way as 1 which dose not require adding /docs/

zjoukhadar avatar Jan 30 '23 08:01 zjoukhadar

Reopening because maybe this feature can be improved, to look for files also in the "docs" folder for relative paths.

RobertoPrevato avatar Jan 30 '23 09:01 RobertoPrevato