-
Notifications
You must be signed in to change notification settings - Fork 11.7k
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
[BugFix] exclude CUSTOMIZE.md
in broken link check workflow
#3054
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for relaxed-lollipop-b6bc17 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
I am not sure if this is the best solution. I understand what you are saying, but this check in |
I see what you mean. However, since
So you are saying that my proposed change (excluding the file) is fine? Perhaps I didn't fully get your point 👀 |
Right, but I am not sure if we can do something to enable this only for the main repo.
I think that in your repo you should exclude the Maybe we should create a different check broken links that would run only on the main repo? Since this check is useful for the user when it is referencing files locally. What do you think? |
This may be overkill, but wouldn't it be better to check the final site itself instead of just the files? In my fork, I've changed the workflow to build the whole thing, serve it locally, and run lychee against the served website. This takes a minute, but has the advantage that I don't need to exclude anything, and all internal links and constructed links like those to social media are checked properly as well. This seems like a cleaner solution. Happy to share how I did it, if there is interest. |
We already have this check in our repo in .github/workflows/broken-links-site.yml. What I think it is best is to only enable this check if this is the main repo. Instead of adding
|
As per the title, we should exclude
CUSTOMIZE.md
in the broken link check workflow.If something was deleted from
_pages
,_posts
,_projects
etc (in my case, I deleted thedropdown.md
), then thelink-checker
workflow would fail since it checks these template links from theCUSTOMIZE.md
file. Since the latter only contains instructions, we can exclude it from the link checker :)