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

add shared-files for Multilingual #77

Closed
billryan opened this issue Jan 13, 2016 · 2 comments
Closed

add shared-files for Multilingual #77

billryan opened this issue Jan 13, 2016 · 2 comments

Comments

@billryan
Copy link
Owner

Gitbook do not render the files outside language folders now, a workaround for this issue is found in GitbookIO/gitbook#744.

Now you can refer an image or docs like this:

![Queen](../../shared-files/images/8-queens.png)

The workaround is broken for EPUB/PDF/MOBI, replace with

![Queen](https://raw.githubusercontent.com/billryan/algorithm-exercise/master/shared-files/images/8-queens.png)
@billryan
Copy link
Owner Author

billryan commented Mar 9, 2016

This feature is fixed in GitbookIO/gitbook#1109. We can use _assets folder for shared files among multiple language sites now. ==> https://github.com/GitbookIO/gitbook/blob/master/lib/output/website.js#L159

            // Copy assets only if exists (don't fail otherwise)
            var assetFolder = path.join(folder, '_assets', that.name);

@billryan
Copy link
Owner Author

Fixed in 1c8fd5c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant