You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assume a directory structure for the mkdocs project is as follows:
/
├── docs
│ ├── media
│ │ └── test.drawio
│ ├── test
│ │ └── test3
│ │ └── index.md
└── mkdocs.yml
Notably,
there exists a separate media directory and
pages are potentially nested and are named index.md. This is important, because with use_directory_urls: true (mkdocs default), their url will be stripped off the index.html in the rendering process.
Then, in order to get a successful build, one must reference the drawio file in index.md with an extra ../ (correct would be ../../media.test.drawio), i.e. it must instead be referenced as: ![](../../../media/test.drawio)
In addition, mkdocs will issue a warning in the build pipeline for each .drawio file linked this way, because mkdocs itself cannot locate the file. This largely stems from the following LOC:
Assume a directory structure for the mkdocs project is as follows:
/
├── docs
│ ├── media
│ │ └── test.drawio
│ ├── test
│ │ └── test3
│ │ └── index.md
└── mkdocs.yml
Notably,
use_directory_urls: true
(mkdocs default), their url will be stripped off theindex.html
in the rendering process.Then, in order to get a successful build, one must reference the drawio file in index.md with an extra
../
(correct would be../../media.test.drawio
), i.e. it must instead be referenced as:![](../../../media/test.drawio)
In addition, mkdocs will issue a warning in the build pipeline for each .drawio file linked this way, because mkdocs itself cannot locate the file. This largely stems from the following LOC:
mkdocs-drawio-file/mkdocs_drawio_file/plugin.py
Lines 61 to 62 in c547793
The text was updated successfully, but these errors were encountered: