-
Notifications
You must be signed in to change notification settings - Fork 69
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
Add GitHub Action to Check for Dead Links in Documentation #433
Conversation
Thank you for the pull request!The Scribe team will do our best to address your contribution as soon as we can. The following is a checklist for maintainers to make sure this process goes as well as possible. Feel free to address the points below yourself in further commits if you realize that actions are needed :) If you're not already a member of our public Matrix community, please consider joining! We'd suggest using Element as your Matrix client, and definitely join the General and Data rooms once you're in. Also consider joining our bi-weekly Saturday dev syncs. It'd be great to have you! Maintainer checklist |
I wondering why the workflow didn't run on this, @Khushalsarode 🤔 |
I was thinking the same. |
Can you take a look at this and edit the on to be like: on:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, reopened, synchronize] Then from there we can look into why it's not running :) |
Sure |
Thanks for suggestion and help! |
Ok so this is generally ok, @Khushalsarode, but then the error output from the check is kind of messy 🤔 Can you see if there's a way to clean it up a bit? Maybe capture the output and return only the broken links? The thing is that it's hard to find them throughout the entire output that also includes the ones that aren't broken. |
@andrewtavis ok? It's running and showing as you asked! |
Ideally at the end of this @Khushalsarode what we'd get is only those items that are broken because of |
|
if you would like shall I work on workflow for checking markdown files links. |
Hey @Khushalsarode 👋 I still see the whole error output at this link that includes links that are ok as well as the ones we want to see. Ideally it would only be the broken links and no others so it's easy for us to maintain. |
@andrewtavis
|
Exactly, @Khushalsarode :) |
And something similar for markdown files :) |
@andrewtavis |
You can continue in here, @Khushalsarode :) |
Ok, I will do it! |
@andrewtavis |
I'll check these out soon, @Khushalsarode :) Thanks for them! |
Can you take a quick look at why it's failing now, @Khushalsarode? All I did was remove some comments and now the check isn't being ran properly 🤔 |
fixing flow that was broken
removed exist 1
An idea on this, @Khushalsarode: Could you maybe make a Python check script that we could also run locally? Bring in all of the URLs that are in the project even and see if the link is valid via Python requests, and then from there we'll do the check for the docs and the markdown in one go? And to boot we could check it locally and not trail and error the PR tests? What I'm thinking:
How does this sound? :) |
i will check this one also and will work on your suggestion too! |
Don't know what happen to flow suddenly it was running file and script is same but now it's throwing error. |
Sure @andrewtavis that's also an good valid approach compared workflow! |
Ultimately once this is done, we'll just run the workflow as the others are ran, @Khushalsarode, so it won't be as much of a problem :) |
@andrewtavis no issue leave this to me! I have got clearly how we are planning to implement this. |
Note @Khushalsarode that there was a typo: we don't want urls in |
ok, we want to check all the links under src/ and docs/ folder? correct? |
Yes, except not under |
Hey @Khushalsarode 👋 In 2bc53e8 I added a pre-commit hook to check the markdown links. I think that this should be good for the discussed functionality. Appreciate you talking through the potential process with me! |
Contributor checklist
pytest
command as directed in the testing section of the contributing guideDescription
Related issue