From nobody Sun Feb 8 03:38:23 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) client-ip=207.211.31.81; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1594894329; cv=none; d=zohomail.com; s=zohoarc; b=PTzQvswL1/Qtrz0YO2nO3t+A7sLJm+aI9evZ6ClpAFdLmK/pfGiNi742dDdAQihDITqrpUrAPijVg64E4RpcdfPGbMcvl2mxJPnwY1P2qovVGEjr++78PWjFsHyKAbyRJiJIyXj+MhGdJdgFoeURIT0rVx0uhyN9qyEhLXqhFpM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594894329; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=3Kpj6or08Y1yB+k5fPF1FAnIChqjgOzpg37l32nI9YE=; b=QQrhsKVLHrpEvCMrod1mGDBKofH3Rt3DZUXwozcfnrih3T02+HF/Bs2gLUqfDBMzkLuPGcg7d6lcf1vIZF2J5W1lakCub/U4nBCgbHOP6i2tc/zzYZcQhI8z/hp/SWSb/58eEEsCYkNvm7fHgGWPP6w7r/1qn/GQxqJsRDHnFi0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.81 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by mx.zohomail.com with SMTPS id 1594894329886717.0742054829606; Thu, 16 Jul 2020 03:12:09 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-171-xQKO872-ON2GrSkZOu4yoA-1; Thu, 16 Jul 2020 06:09:42 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 805CD80BCAB; Thu, 16 Jul 2020 10:09:36 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5F8717B414; Thu, 16 Jul 2020 10:09:36 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 2B1BA1804766; Thu, 16 Jul 2020 10:09:36 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 06GA7R96020852 for ; Thu, 16 Jul 2020 06:07:27 -0400 Received: by smtp.corp.redhat.com (Postfix) id 48A4D2DE79; Thu, 16 Jul 2020 10:07:27 +0000 (UTC) Received: from antique-work.redhat.com (unknown [10.40.194.85]) by smtp.corp.redhat.com (Postfix) with ESMTP id B61672DE72 for ; Thu, 16 Jul 2020 10:07:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594894328; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=3Kpj6or08Y1yB+k5fPF1FAnIChqjgOzpg37l32nI9YE=; b=YnvOA2S3i38Z4VYfNDYdNqwETM/9EiKqn0UdDQ2gGv7iyLFKeRSk9ufSdh2OitiGyaxrqH lUQoaSsBllCStSil7BPtektLIY7H4l2NpiOGKRtGq+e0aaO7gMHVouFmVXPyaU4vE2RbLq IX+xb9CPi8Sf2MUq+jZ6lgoOtZbdfvY= X-MC-Unique: xQKO872-ON2GrSkZOu4yoA-1 From: Pavel Hrdina To: libvir-list@redhat.com Subject: [libvirt PATCH 324/351] meson: docs: build *.html files from *.rst files Date: Thu, 16 Jul 2020 11:59:20 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Signed-off-by: Pavel Hrdina --- docs/Makefile.am | 3 --- docs/meson.build | 61 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+), 3 deletions(-) diff --git a/docs/Makefile.am b/docs/Makefile.am index 4e69f9ae7fa..f1ac68f1d50 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -281,10 +281,7 @@ manpages_DATA =3D $(manpages_html) dot_html_generated_in =3D \ hvsupport.html.in \ $(NULL) -dot_rst =3D \ - $(notdir $(wildcard $(srcdir)/*.rst)) dot_rst_html_in =3D \ - $(dot_rst:%.rst=3D%.html.in) \ news.html.in \ $(NULL) dot_html =3D \ diff --git a/docs/meson.build b/docs/meson.build index 36fd2388b69..2da051e75ed 100644 --- a/docs/meson.build +++ b/docs/meson.build @@ -105,6 +105,27 @@ docs_html_in_files =3D [ 'windows', ] =20 +docs_rst_files =3D [ + 'advanced-tests', + 'best-practices', + 'ci', + 'coding-style', + 'committer-guidelines', + 'daemons', + 'developer-tooling', + 'formatbackup', + 'formatcheckpoint', + 'hacking', + 'libvirt-go', + 'libvirt-go-xml', + 'newreposetup', + 'pci-addresses', + 'platforms', + 'programming-languages', + 'styleguide', + 'submitting-patches', +] + install_data(docs_assets, install_dir: docs_html_dir) =20 aclperms_gen =3D custom_target( @@ -188,3 +209,43 @@ foreach name : docs_html_in_files install_dir: docs_html_dir, ) endforeach + + +# docs_html_in_gen: +# each entry is a dictionary with following items: +# name - base file name (required) +# file - generated file (required) +docs_html_in_gen =3D [] + +foreach name : docs_rst_files + rst_file =3D '@0@.rst'.format(name) + docs_html_in_gen +=3D { + 'name': name, + 'file': docs_rst2html_gen.process(rst_file), + } +endforeach + +foreach data : docs_html_in_gen + html_file =3D '@0@.html'.format(data['name']) + + custom_target( + html_file, + input: data['file'], + output: html_file, + command: [ + meson_python_prog, + meson_html_gen_prog, + xsltproc_prog.path(), + xmllint_prog.path(), + meson.build_root(), + docs_timestamp, + site_xsl, + '@INPUT@', + '@OUTPUT@', + ], + depends: [ aclperms_gen ], + depend_files: [ page_xsl ], + install: true, + install_dir: docs_html_dir, + ) +endforeach --=20 2.26.2