Update magic gen-docs script to not mangle Perl repo links