Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 63483CA0EFA for ; Wed, 20 Aug 2025 05:30:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0F42210E69E; Wed, 20 Aug 2025 05:30:12 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="KSu5llkk"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) by gabe.freedesktop.org (Postfix) with ESMTPS id 28CAF10E69E for ; Wed, 20 Aug 2025 05:30:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1755667810; x=1787203810; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=LUyROCVLQSGj082cADjTm1yZToAqEd8FFYreW6MEWhQ=; b=KSu5llkkG8k+WNBuuyAvdqEEyEaRIHbqM7DoCmOKm4Jt3+pRXNoSK6uV izi2d2ahml1xHNoz6sa8kN3izYAmjoRgJYVQhkSglcGL1f5kFpAL/XV5j vGh3ke5Yym9i8xvAssNRqur5wEGDaSePYc4jMVOc7NTDfhnKZmFwVBz2y fBpoS7MhItdp05tVjZEY7dzQ2RgxAqv5icXUM2CnLfBnfPxgDiegWjdHg Xq4DPX34FKGZGHDlkyEfZtwkgu1VB9zLx7vHK1P4mxkU1cCxpS24BnKpt b/yJwixj5V0xz77RqPDAWy0yZ1K5waeR4HHDx9XtqvBu3J2E5ZPAfshgE Q==; X-CSE-ConnectionGUID: px/D58pAQvuQGANmhSBQ+g== X-CSE-MsgGUID: sZR6cV2AR1eHN4zQSL4Jgg== X-IronPort-AV: E=McAfee;i="6800,10657,11527"; a="68195697" X-IronPort-AV: E=Sophos;i="6.17,302,1747724400"; d="scan'208";a="68195697" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Aug 2025 22:30:10 -0700 X-CSE-ConnectionGUID: al2q5SGnRTSbMAFSBL+ikw== X-CSE-MsgGUID: e7NbVjrJTeiDqdKrgp7/UQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.17,302,1747724400"; d="scan'208";a="172458441" Received: from agladkov-desk.ger.corp.intel.com (HELO localhost) ([10.245.244.238]) by orviesa004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Aug 2025 22:30:08 -0700 From: Pawel Sikora To: igt-dev@lists.freedesktop.org Cc: Kamil Konieczny , Zbigniew Kempczynski , Pawel Sikora Subject: [PATCH i-g-t v3 3/3] gitlab-ci: Add MkDocs documentation support Date: Wed, 20 Aug 2025 07:29:34 +0200 Message-Id: <20250820052934.121604-4-pawel.sikora@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250820052934.121604-1-pawel.sikora@intel.com> References: <20250820052934.121604-1-pawel.sikora@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: igt-dev@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development mailing list for IGT GPU Tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" This commit ensures two things: * The API reference manual is built and copied to the MkDocs documentation directory. * The MkDocs documentation (from the docs directory) is also built. As a result, the existing API reference manual will still be available via an internal link in the MkDocs documentation. (Note: the API reference will retain its original theme for now.) A relative link to api_reference/index.html is included in the MkDocs navigation. This file will be generated by the deploy job after the API reference manual is built. After both builds are complete, all content will be copied into the site directory and then manually moved into public, for hosting on freedesktop GitLab Pages. v3: - Simplify mkdocs build (Pawel) Signed-off-by: Pawel Sikora --- .gitlab-ci.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fb5713fba..6813d9ff1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -75,12 +75,15 @@ build:tests-fedora: stage: build script: - meson setup --prefix=/opt/igt $MESON_OPTIONS build + - pip install -r docs/requirements-docs.txt - ninja -C build -j${FDO_CI_CONCURRENT:-4} || ninja -C build -j 1 - ninja -C build -j${FDO_CI_CONCURRENT:-4} igt-gpu-tools-doc + - mkdocs build - DESTDIR="$PWD/installdir" ninja -C build install artifacts: paths: - build + - site - installdir build:tests-fedora-no-libunwind: @@ -241,8 +244,11 @@ pages: - build:tests-fedora stage: deploy script: - - ninja -C build -j${FDO_CI_CONCURRENT:-4} igt-gpu-tools-doc - - cp -r build/docs/reference/igt-gpu-tools/html public + - pip install -r docs/requirements-docs.txt + - cp -r build/docs/reference/igt-gpu-tools/html/ docs/api_reference + - mkdir -p docs/api_reference + - mkdocs build + - cp -r site public artifacts: paths: - public -- 2.34.1