docs: add linkcheck

This commit is contained in:
zowoq 2024-06-01 08:22:31 +10:00
parent 3fcadaf275
commit ab99be2fa7
3 changed files with 23 additions and 1 deletions

View file

@ -108,6 +108,14 @@ def mkdocs(c: Any) -> None:
c.run("nix develop .#mkdocs -c mkdocs serve")
@task
def docs_linkcheck(c: Any) -> None:
"""
Run docs online linkchecker
"""
c.run("nix run .#docs-linkcheck.online")
def get_hosts(hosts: str) -> List[DeployHost]:
if hosts == "":
res = subprocess.run(