Neoteroi / mkdocs-plugins

Plugins for MkDocs.
MIT License
116 stars 9 forks source link

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

Open zjoukhadar opened 1 year ago

zjoukhadar commented 1 year ago
image
RobertoPrevato commented 1 year ago

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".

zjoukhadar commented 1 year ago

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/

RobertoPrevato commented 1 year ago

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