From patchwork Fri Dec 14 09:01:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 49 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 480E860B10 for ; Fri, 14 Dec 2018 10:01:05 +0100 (CET) Received: from localhost.localdomain (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id AD9C4549; Fri, 14 Dec 2018 10:01:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1544778064; bh=dxfPlASdlJuVCqP0gAvVurw6pYVyzVKoG18E0QKgWFw=; h=From:To:Cc:Subject:Date:From; b=E7pjWyBc/vVLJP/GOWV0IE24TBJGUzKI5Xv+OuB+GcBV6wmFsoOhcIULmeYfuEsXA Xv1Q7VyXkOl642FViCfQg4bqFcJE7EC6mMOiAhQi83WFPBSkxBI2102bRCyTL+9vvx FZGfZo3VOTDnUcVRlhiC029Wq71Tx1nsBQHheIc8= From: Kieran Bingham To: LibCamera Devel Date: Fri, 14 Dec 2018 09:01:01 +0000 Message-Id: <20181214090101.32511-1-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.17.1 Subject: [libcamera-devel] [PATCH] Documentation: Add linkcheck target X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Dec 2018 09:01:05 -0000 Sphinx provides a run-target to verify external links specified in the documentation. This requires an active connection to be able to validate the links. Add a meson target to integrate the linkcheck facility into our build and test system. This rule does not run by default, but can be called with: ninja Documentation/linkcheck Signed-off-by: Kieran Bingham --- Documentation/meson.build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/meson.build b/Documentation/meson.build index dd43b2cbd401..cf91202224db 100644 --- a/Documentation/meson.build +++ b/Documentation/meson.build @@ -55,4 +55,9 @@ if sphinx.found() build_by_default: true, install: true, install_dir: doc_install_dir) + + custom_target('documentation-linkcheck', + command: [sphinx, '-W', '-b', 'linkcheck', meson.current_source_dir(), '@OUTPUT@'], + input: docs_sources, + output: 'linkcheck') endif