ikoamu / publish-org-roam-ui

Generates a static site for org-roam-ui from org-roam files managed on GitHub. And it is easy to publish to GitHub Pages.
https://ikoamu.github.io/publish-org-roam-ui/
GNU General Public License v3.0
46 stars 5 forks source link

Images are not showing with ./local.sh #32

Closed Titikomba closed 1 month ago

Titikomba commented 1 month ago

Hi 👋, I observed images are not displayed with ./local.sh.

I tried numerous org syntax, that all work with org-roam-ui

[[~/Documents/01_research/02_notes/06_assets/yddb15_framework.png]]
[[file:~/Documents/01_research/02_notes/06_assets/yddb15_framework.png]]
[[../06_assets/yddb15_framework.png]]
[[file:../06_assets/yddb15_framework.png]]
[[file:../06_assets/yddb15_framework.png][Description]]

but I only obtain blank images

image

My file organisation is as follow:

.
├── 01_references
│   ...
│   ├── 20241006163832-ag_l90_basic_local_aligment_search_tool.org
│   └── 20241006164507-kent02_blat_the_blast_like_alignment_tool.org
├── 02_concepts
│   ├── 20240927082424-kmer.org
│   ...
...
├── 06_assets
│   └── yddb15_framework.jpg
└── org-roam.db
ikoamu commented 1 month ago

publish-org-roam-ui is designed with the assumption that org files and resources like images are managed within a single repository. Therefore, currently only image files stored in the img directory under org-roam-dir will be displayed.

Please feel free to comment if you have any questions. Thank you!

Titikomba commented 1 month ago

I found it unclear from the README that it was the only way to display images (for now). In any case, customising ROAM_IMG_PATH suits my needs 😊 Thanks!