Neoteroi / mkdocs-plugins

Plugins for MkDocs.
MIT License
116 stars 9 forks source link

[Contribs plugin] Any support for excluding folders #33

Open jravinder opened 1 year ago

jravinder commented 1 year ago

Thanks for the plugins!! Are there any plans to exclude folders for obtaining contributor information?

RobertoPrevato commented 1 year ago

Hi @jravinder Sorry for the late response. I like your idea! Do you mean something like:

  - neoteroi.contribs:
      exclude:
        - "example/*.md"
        - "some-page.md"

I plan to make some changes to the library soon, I might include this feature.

RobertoPrevato commented 1 year ago

Hi @jravinder This feature is now available. It took me a long time because I focused more on my web framework lately, and some other libraries.

You can exclude folders or files this way:

  - neoteroi.contribs:
      exclude:
        - "index.md"

Glob patterns are supported, like:

  - neoteroi.contribs:
      exclude:
        - "index.md"
        - "folder/some*"

Leaving this issue open as I still need to document this feature.

Please upgrade the library. 😄

pip install -U neoteroi-mkdocs

It also includes more improvements and features for the contribs plugin.