Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

images will not be copied to 'book' if symbolic links are utilized in src folder #1157

Closed
mash-graz opened this issue Mar 4, 2020 · 1 comment · Fixed by #1323
Closed
Labels
A-HTML Area: HTML Rendering

Comments

@mash-graz
Copy link

as we work on a multilingual project and #5 (=multilingual support) is still unsolved, i had to look for a workaround. that's why i worked with two independent trees, each containing: SUMMARY.md, config.tom, and a src folder, but tried to use symbolic links for the actual content, which we still maintain in an external repository.

this works for most of the content, but images will not be copied to the generated book folder.

the pages will be only include broken html links to the location, where the image files should be located.

it doesn't make a difference, if the images themself are realized as symbolic links or just the folders, where they are located. in both cases you will observe the same behavior.

this affects at least the last release of mdbook = v0.3.5

@ehuss ehuss added the A-HTML Area: HTML Rendering label Apr 21, 2020
@fosskers
Copy link

fosskers commented Jun 4, 2020

#708 Does this help?

notriddle pushed a commit to notriddle/mdBook that referenced this issue Dec 23, 2021
Currently, the `copy_files` function doesn't support symlink files due to
its use of `DirEntry::metadata` - To avoid this issue, this patch
resolves the file path first before checking for metadata.

Fixes rust-lang#1157
rubenmoor pushed a commit to rubenmoor/mdBook that referenced this issue Aug 5, 2022
Currently, the `copy_files` function doesn't support symlink files due to
its use of `DirEntry::metadata` - To avoid this issue, this patch
resolves the file path first before checking for metadata.

Fixes rust-lang#1157
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-HTML Area: HTML Rendering
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants