Open kirillde opened 7 months ago
Looks very buggy. We will try to reproduce this.
We will try to reproduce this.
It's reproduced in Debian environment https://t.me/diplodoc_ru/1866
It seems that assets are collected in transform repo https://github.com/diplodoc-platform/transform/blob/master/src/transform/md.ts
It seems "path" should be replaced with "src"
I have .md file:
and toc.yaml file
run this command
yfm -i ./docs -o ./output
and i have generated object with assets, which has absolute path for images in assets list
{ "data": { "leading": false, "toc": { "title": "Tangl", "href": "index.html", "navigation": { "logo": { "url": "../tangl" }, "header": { "leftItems": [ { "text": "Item..", "type": "link" }, { "text": "Item...", "type": "link" } ] } }, "items": [ { ..... }, { ..... }, { "name": "Разделы", "expanded": true, "items": [ ...... ], "id": "Разделы-2-0.2943391760813012" } ], "base": "...." }, "meta": { "metadata": [], "style": [], "script": [] }, "assets": [ "/home/..../www/work/test/output/.tmp_input/_images/structure.png" ], "headings": [ { "title": "Extras", "href": "#extras", "level": 2 }, { "title": "....", "href": "#...", "level": 2, "items": [ { "title": "Вьювер", "href": "#vyuver", "level": 3 } ] } ], "title": "Описание папок в src и проектов в них", "includes": [], "html": "...." }, "router": { "pathname": "structure.html" } }
In the result paths point to tmp folder which will be deleted after build process which is an unexpected behavior
But... my html generated correctly
<img src="../_images/tangl-structure.png" />