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

allow to specify includes #5

Open balrok opened 3 years ago

balrok commented 3 years ago

As I wrote in #3, not everything can be expressed with negative lookahead/lookback in regexes. Also having the include feature, would make it way easier.

I hope its fine, that I also did some restructuring to avoid having such a big inner method.

I have it running with following settings:

  - exclude:
      include-glob:
        - "*.md"
        - "docs/*"
        - "assets/*"
      glob:
        - "*"

edit: removed ** since it has no effect