I'm trying to convert a directory containing .md files to an html site structure using obsidianhtml convert. The .md directory contains a subdirectory, containing an image that's referenced in one of the .md files. Here's a little example of the file structure:
Inside ./to_html, I'm running the command obsidianhtml convert -i config.yaml, and the contents of config.yaml are:
# The first folder that contains all obsidian files
# Use full path or relative path, but don't use ~/
obsidian_folder_path_str: '/home/dave/Dropbox (Lehigh University)/post_doc/professional/projects/gaita/ideation/structured/md/'
# The note that will be used as the index.html
# should be in obsidian_folder_path_str
# Use full path or relative path, but don't use ~/
obsidian_entrypoint_path_str: '/home/dave/Dropbox (Lehigh University)/post_doc/professional/projects/gaita/ideation/structured/md/homepage.md'
html_url_prefix: '/gaita/ideation/structured/html/'
toggles:
process_all: True
The output of running the obsidianhtml convert -i config.yaml command is as follows:
> COPYING VAULT /home/dave/Dropbox (Lehigh University)/post_doc/professional/projects/gaita/ideation/structured/md TO /tmp/tmpaqunt9l5
running:
rsync -a /home/dave/Dropbox (Lehigh University)/post_doc/professional/projects/gaita/ideation/structured/md/ /tmp/tmpaqunt9l5 --exclude /.obsidian/ --exclude /.trash/ --exclude /.DS_Store/ --exclude /.git/
Copy succeeded 0 b''
< COPYING VAULT: Done
> CLEARING OUTPUT FOLDERS
> CREATING OUTPUT FOLDERS
> COMPILING MARKDOWN FROM OBSIDIAN CODE (/tmp/tmpaqunt9l5/homepage.md)
> FEATURE: PROCESS ALL
< FEATURE: PROCESS ALL: Done
> COMPILING HTML FROM MARKDOWN CODE (/home/dave/Dropbox (Lehigh University)/post_doc/professional/projects/gaita/ideation/structured/to_html/output/md/index.md)
File figures/unamed-chunk-1-1.png not located, so not copied. @ /tmp/tmpaqunt9l5/experiment-2-theory.md
> FEATURE: PROCESS ALL
< FEATURE: PROCESS ALL: Done
> COMPILING INDEX FROM DIR STRUCTURE (/home/dave/Dropbox (Lehigh University)/post_doc/professional/projects/gaita/ideation/structured/to_html/output/html/obs.html/dir_index.html)
< COMPILING INDEX FROM DIR STRUCTURE: Done
> SECOND PASS HTML
< SECOND PASS HTML: Done
< COMPILING HTML FROM MARKDOWN CODE: Done
You can find your output at:
md: /home/dave/Dropbox (Lehigh University)/post_doc/professional/projects/gaita/ideation/structured/to_html/output/md
html: /home/dave/Dropbox (Lehigh University)/post_doc/professional/projects/gaita/ideation/structured/to_html/output/html
If I'm interpreting the backend correctly here, it looks like the rsync copy to /tmp may not be copying the ./md/figures/ directory causing this error when trying to convert to html: File figures/unamed-chunk-1-1.png not located, so not copied. @ /tmp/tmpaqunt9l5/experiment-2-theory.md ?
This is a really puzzling issue because this feature is working in this app in another Obsidian vault on my computer, and I could swear it was working earlier today and I'm not sure what would have changed.
Anything else I can provide to help you diagnose the issue?
I'm trying to convert a directory containing .md files to an html site structure using
obsidianhtml convert
. The .md directory contains a subdirectory, containing an image that's referenced in one of the .md files. Here's a little example of the file structure:./md/experiment-2-theory.md
references./md/figures/unnamed-chunk-1-1.png
.Inside
./to_html
, I'm running the commandobsidianhtml convert -i config.yaml
, and the contents ofconfig.yaml
are:The output of running the
obsidianhtml convert -i config.yaml
command is as follows:If I'm interpreting the backend correctly here, it looks like the rsync copy to
/tmp
may not be copying the./md/figures/
directory causing this error when trying to convert to html:File figures/unamed-chunk-1-1.png not located, so not copied. @ /tmp/tmpaqunt9l5/experiment-2-theory.md
?This is a really puzzling issue because this feature is working in this app in another Obsidian vault on my computer, and I could swear it was working earlier today and I'm not sure what would have changed.
Anything else I can provide to help you diagnose the issue?