Skip to content

How do i describe a dir path for loading pngs? #276

@Knight-of-Code

Description

@Knight-of-Code

I am trying to use this plugin so I can use variables instead of typing relative or absolute path for PNG files under mkdocs/docs/assets/images/applications/

extra:
  app_images: /assets/images/applications/

I did above in mkdocs.yml and ![]({{ app_images }}syncthing.png) in MD file, but it doesn't work as I wanted. Although PNG loads, but It's just guessing the path.

INFO    -  Doc file 'wiki/Docker/compose/applications/syncthing.md' contains an absolute link '/assets/images/applications/syncthing.png', it was left as is. Did you mean '../../../../assets/images/applications/syncthing.png'?

How to do this correctly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions