apenwarr / mkdocs-exclude

A mkdocs plugin that lets you exclude files or trees from your output.
Apache License 2.0
86 stars 10 forks source link

How to override nav config so the exclude plugin works? #6

Open NavyaG-lab opened 3 years ago

NavyaG-lab commented 3 years ago

I have a scenario where in the mkdocs.yml, the nav is customized as per designed taxonomy. Now, we want to exclude some folders not to be rendered on the static site. For that, I used mkdocs-exclude and removed links under the "nav" in the mkdocs.yml. As the files are in docs directory and not under nav, it's throwing error.

Could someone please help me how to achieve desired goal?

Exclude the specific folders in the repo and remove some links from nav, so the static site renders only the desired content.

Thanks!