Skip to content

Ensure all links in a Github Wiki point to valid locations within the Wiki.

License

Notifications You must be signed in to change notification settings

bamos/github-wiki-link-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Github Wiki Link Validator

Ensure all internal links in a Github Wiki are valid.

Github wiki's present a unique problem for link validation because traditional validation is usually done by checking page response (usually for 404). However, the default behavior of a Wiki for an invalid link is to direct to a page creating the page, and there is currently no option to change this. Creating new pages like this is easy, but in large Wiki's links become difficult to manage and can lead to difficulties validating links.

This is a Python 3.3 script to crawl a published Github wiki and detect internal links pointing to invalid locations.

Dependencies.

  • Python 3.3
  • BeautifulSoup 4

Example.

$ ./link-validator.py https://github.com/bamos/github-wiki-link-validator/wiki

About

Ensure all links in a Github Wiki point to valid locations within the Wiki.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages