Anyway to dynamically exclude md files completely from compiling? #4588
Unanswered
vladyslav2
asked this question in
Q&A
Replies: 1 comment
-
srcExclude can actually exclude files too. If you can maintain a list of draft files, or enforce some pattern, like make them start with underscore or something, then you can use srcExclude with list/glob. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello.
We have some draft pages which does not meant to be published / or be visible for the world. So we filter out those pages in
createContentLoader
and inconfig.ts:sitemap
. But somehow google still index them and we found out that vitepress does create .html files for them.While looking on config options I can see a way to exclude a directory but is there a way to filter out pages by some criteries?
I guess its possible to write down function which will check pages dynamically but just want to make sure I'm not missing anything
Beta Was this translation helpful? Give feedback.
All reactions