Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to check links from a local markdown folder (recursive) exclude some specific folder? #66

Closed
allencloud opened this issue Nov 11, 2018 · 3 comments
Labels
duplicate This issue was already asked, please comment on the original one

Comments

@allencloud
Copy link

Hi, All,

I am attempting to use markdown-link-check to check links in markdown files of a golang project, which has a vendor folder to vendor others' packages. For example, I do not want to check markdown files in https://github.com/alibaba/pouch/tree/master/vendor.

While I found that I have some issue in checking links exclude the folder vendor.

How to construct the command to check links in markdown files, but exclude some specific folders?

Thanks.

Allen Sun

@nschonni
Copy link
Contributor

Probably a duplicate of #40

@Peritract
Copy link

find . -path ./vendor -prune -o -name \*.md -exec markdown-link-check {} \; should exclude all files in the /vendor folder.

@NicolasMassart NicolasMassart added duplicate This issue was already asked, please comment on the original one wontfix This will not be fixed, see reason in the comments and removed duplicate This issue was already asked, please comment on the original one labels Sep 26, 2020
@NicolasMassart
Copy link
Contributor

NicolasMassart commented Sep 26, 2020

Will discuss that now in #102
For now, as shown by @Peritract, using exclusion mechanism provided by find is the way to solve this one.

@NicolasMassart NicolasMassart added duplicate This issue was already asked, please comment on the original one and removed wontfix This will not be fixed, see reason in the comments labels Sep 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue was already asked, please comment on the original one
Projects
None yet
Development

No branches or pull requests

4 participants