waferbaby / usesthis

A nerdy little interview website, asking people from all walks of life what they use to get the job done.
http://usesthis.com/
MIT License
579 stars 119 forks source link

Remove Broken Links #17

Closed jdavis closed 10 years ago

jdavis commented 10 years ago

I noticed the links for I, Astronomer and Il Setup were no longer working. This removes them from the site.

parkr commented 10 years ago

:+1:

waferbaby commented 10 years ago

Thanks! Funnily enough, I actually ran a link-checking thing yesterday (and then, y'know, didn't do anything).

parkr commented 10 years ago

If you're interested in checking links on a regular basis, I highly recommend @gjtorikian's https://github.com/gjtorikian/html-proofer. In its current state, it checks both presence of images and links (that some page exists at that link) which could be utilized to ensure all links are working. Hook it up with Travis like so:

language: ruby
env:
  global:
  - NOKOGIRI_USE_SYSTEM_LIBRARIES=true
install: gem install salt redcarpet html-proofer
script:
- tasks/build
- htmlproof ./site

Looks like you have tasks/scan already but can run that before a publish and return a non-zero exit code in order to halt the process in case of any bad links?

jdavis commented 10 years ago

That is funny, @waferbaby.

And cool info, @parkr.

waferbaby commented 10 years ago

@parkr: Oh hah, that's rad! I'll check it out. :+1: