Replies: 1 comment 2 replies
-
If you're using unique file names you can use something like |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The basic problem is that if an included file is not found, the whole mkdocs build process just stops. To work around that, I'm trying to implement the solution from https://github.com/mondeja/mkdocs-include-markdown-plugin/pull/243/files - by including a dummy file, like this:
{% include-markdown '?(empty.md)?(test.md)' %}
.And that works. Now, I want to use this formula in many places in the docs. So where do I put the empty.md file so I can reach it from anywhere? I thought I could write:
{% include-markdown '?(/empty.md)?(./test.md)' %}
and then put empty.md in the docs_dir, but that doesn't work. Or{% include-markdown '?(/my/snippets/empty.md)?(./test.md)' %}
, but that doesn't work either. I get:No files found including '?(/empty.md)?(./test.md)'
- and the build stops, which is exactly what I don't want.Any help?
Beta Was this translation helpful? Give feedback.
All reactions