Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 83eff47d3a
Fetching contributors…

Cannot retrieve contributors at this time

executable file 15 lines (15 sloc) 0.409 kb
#!/usr/bin/env ruby
require 'uri'
available_files = Dir.glob("**/*.md")
linked_files = []
available_files.each do |file|
uris = URI.extract(File.read(file))
uris.each do |uri|
next unless uri[0..44] == 'https://github.com/inspircd/wiki/blob/master/'
linked_files << uri[45..-1].split(')')[0]
end
end
available_files.each do |file|
next if linked_files.include?(file)
puts "ORPHANED PAGE: #{file}"
end
Jump to Line
Something went wrong with that request. Please try again.