PyconUK / pyconuk.github.io

OLD REPOS - DO NOT USE. PyCon UK website
http://www.pyconuk.org/
3 stars 9 forks source link

Strip `pyconuk.org` from URLs when checking output HTML #20

Closed doismellburning closed 9 years ago

doismellburning commented 9 years ago

Canonical links should include the domain part, but html-proofer just treats them as normal external links (see https://github.com/gjtorikian/html-proofer/issues/170) so will fail on PRs adding new pages.

Ideally html-proofer would just strip the domain part from canonical links, but until then, this just strips the pyconuk.org domain part from all hrefs - not quite ideal, but avoids me writing Ruby.