Skip to content

github submodule not working with local Jekyll server #11

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

Open
furnstahl opened this issue Jul 11, 2022 · 1 comment
Open

github submodule not working with local Jekyll server #11

furnstahl opened this issue Jul 11, 2022 · 1 comment
Assignees

Comments

@furnstahl
Copy link
Collaborator

When I try to run a local Jekyll server (with bundle exec jekyll serve --watch), it fails with the error message
Liquid Exception: Could not locate the included file 'submodules/bandframework/resources/sdkpolicies/bandsdk.md' in any of ["/Users/furnstah/Dropbox/git_rjf/BAND_project/bandframework.github.io/_pages"]. Ensure it exists in one of those directories and, if it is a symlink, does not point outside your site source. in _pages/software.md

If I explicitly add the file bandsdk.md locally in 'submodules/bandframework/resources/sdkpolicies/` then the local server works fine.

On github the link is [bandframework @ 49bb0cf](https://github.com/bandframework/bandframework/tree/49bb0cf0b1bf29d149f49af7ce64193d58726b3a)

In ./_pages/software.md the include_relative statement is:
{% include_relative submodules/bandframework/resources/sdkpolicies/bandsdk.md %}
which is what triggers the Liquid Exception above.

@danOSU
Copy link
Contributor

danOSU commented Jul 20, 2022

Had the same issue.

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

3 participants