Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 15 lines (15 sloc) 0.409 kB
93492bf @SaberUK Add wiki maintenance scripts.
SaberUK authored
1 #!/usr/bin/env ruby
2 require 'uri'
3 available_files = Dir.glob("**/*.md")
4 linked_files = []
5 available_files.each do |file|
6 uris = URI.extract(File.read(file))
7 uris.each do |uri|
8 next unless uri[0..44] == 'https://github.com/inspircd/wiki/blob/master/'
9 linked_files << uri[45..-1].split(')')[0]
10 end
11 end
12 available_files.each do |file|
13 next if linked_files.include?(file)
14 puts "ORPHANED PAGE: #{file}"
15 end
Something went wrong with that request. Please try again.