Github tool to validate links in markdown

筅森魡賤 提交于 2020-06-27 08:15:51

问题


What I plan to do in some of my README.md files is provide hyperlinks to other sites that I cite. However, we all run into that problem when links die or get moved, and said link becomes invalidated. =(

Is there a github tool that can run nightly checks to see if all the links in a README.md file (or something similar) are working correctly?

What I'm looking for is something that has a feature similar to Travis CI, where a project could have a badge saying "link-passing" on the project's main github page. (Example: scikit-learn has those two classy looking "build-passing" badges.)


回答1:


I think what you want to use is awesome_bot.

It doesn't provide the badge you want but it does check URLs in files.




回答2:


From what I get from your question, Travis is actually enough to do the checking task.

I have already implemented it in this project. It's based on nodejs package named grunt-deadlink, Travis-CI configuration is also included. Unfortunately it doesn't support nightly test (as far as I know).

For shiny badge you can simply use this badge generator service.



来源:https://stackoverflow.com/questions/32176318/github-tool-to-validate-links-in-markdown

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!