diff --git a/examples/include-if-exists/docs/empty.md b/examples/include-if-exists/docs/empty.md new file mode 100644 index 0000000..e69de29 diff --git a/examples/include-if-exists/docs/included.md b/examples/include-if-exists/docs/included.md new file mode 100644 index 0000000..333a243 --- /dev/null +++ b/examples/include-if-exists/docs/included.md @@ -0,0 +1 @@ +Some included content. diff --git a/examples/include-if-exists/docs/index.md b/examples/include-if-exists/docs/index.md new file mode 100644 index 0000000..f4be21f --- /dev/null +++ b/examples/include-if-exists/docs/index.md @@ -0,0 +1,5 @@ + + +{% include-markdown '?(empty.md)?(included.md)' %} + +{% include-markdown '?(empty.md)?(not-existent.md)' %} diff --git a/examples/include-if-exists/mkdocs.yml b/examples/include-if-exists/mkdocs.yml new file mode 100644 index 0000000..0f97266 --- /dev/null +++ b/examples/include-if-exists/mkdocs.yml @@ -0,0 +1,3 @@ +site_name: Foo +plugins: + - include-markdown