From 69d00f2c4f9266634feed0c042678cadc903ec63 Mon Sep 17 00:00:00 2001 From: mciecier Date: Mon, 4 Dec 2023 11:24:45 +0100 Subject: [PATCH] Change linkchecker in tox.ini to run against docs dir Change linkchecker to run against docs dir to validate only links provided by user instead of all auto-generated links from site dir. All auto-generated links in site directory contains absolute links. The problem is that linkchecker tries to traverse those links and is getting 404 error, which is expected as pages are not yet published. This blocks pull-request and adding new pages or restructuring existing docsite as in this pr[1]. [1]https://github.com/ansible/molecule/pull/4044 --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index f9057946af..e3e2b987e1 100644 --- a/tox.ini +++ b/tox.ini @@ -86,8 +86,8 @@ description = Build documentation passenv = * usedevelop = true commands = + linkchecker -f linkcheckerrc docs mkdocs build --strict - linkchecker -f linkcheckerrc site extras = docs