Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Linkguard: catch dead links and swap in archived copies

说明与用途

Linkguard 自动检测静态博客中的失效外链,提供归档副本,并可生成拉取请求替换它们。

问题

Blog posts accumulate dead outbound links over time, breaking reader experience.

结果

Linkguard automatically detects dead outbound links, provides archived alternatives, and can generate a pull request to update the content, improving site reliability without manual effort.

工作流

  • Add Linkguard GitHub Action to workflow
  • Action scans markdown/HTML for outbound links
  • Each link is classified as ok, moved, dead, or blocked
  • For dead links, Wayback Machine snapshot is queried
  • Results are reported in job summary, annotations, JSON, and markdown
  • If open-pr:true, PR is opened replacing dead links with archived URLs

证据

Drop it into a weekly workflow and Linkguard walks your content, pulls every outbound link out of the markdown and HTML (skipping code blocks, comments, relative links, and private addresses), and checks each one.

来源

For each link it also asks the Internet Archive’s Wayback Machine for a snapshot. When a dead link has a good one, the report hands you the archived URL.

来源

Set open-pr: true and Linkguard opens a pull request that replaces each dead link with its web.archive.org copy, exactly where it appears and nowhere else.

来源

  • 记录日期: 2026-10-19T12:41:15.708Z