From nobody Sun Oct 5 14:38:37 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1583493810; cv=none; d=zohomail.com; s=zohoarc; b=l4WWUph90CpJ8+Xw+d36WCj6X/1IP8qMqeyyNuEiaphwV+tGHn2Xob7GK+T7/a4Ghp5uP/OQaH4B84XoWI5XX2KqDZ4iO2IDAcbaQJK6J73B243dsWzmNUacZb3lqarzt4Fljl0oDrm7GERc9jkYzYZYld5h5iqvA6WNd/Al3ZI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1583493810; 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=eAz9K3AzjJyegY4XFNXzdynmBguX2kLl9F5Z2dLMquI=; b=EU84wrDU90OQZkDlbMfhqsmDlDPDWk331frrnPx2QZgpytzdzk6/N+oBkFX1aJyW1Yve47bjozh2I2CQBbylZr5TVd81bo5Pt0qAK3vaXgFfeERQqiihoGkEj99a/pZ0VkZAdYZaaJj46zoazzVkSZ50xYVRkIA3BawUUp1OP0M= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1583493810374932.4974918663946; Fri, 6 Mar 2020 03:23:30 -0800 (PST) Received: from localhost ([::1]:35124 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAB4j-0002wI-CQ for importer@patchew.org; Fri, 06 Mar 2020 06:23:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40094) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAAsV-0004TN-Jn for qemu-devel@nongnu.org; Fri, 06 Mar 2020 06:10:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAAsT-00064f-3z for qemu-devel@nongnu.org; Fri, 06 Mar 2020 06:10:50 -0500 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:36998) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jAAsS-00060m-Rh for qemu-devel@nongnu.org; Fri, 06 Mar 2020 06:10:49 -0500 Received: by mail-wm1-x330.google.com with SMTP id a141so1931204wme.2 for ; Fri, 06 Mar 2020 03:10:48 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id y10sm12553029wma.26.2020.03.06.03.10.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Mar 2020 03:10:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=eAz9K3AzjJyegY4XFNXzdynmBguX2kLl9F5Z2dLMquI=; b=w7MldQtm00YzyIKn/3tlNutVmJOuonr95yE7Ek93FSkFIf58r2Tfr2v2TfTutpURib EJ5kTiZW6QzvOq4eKbo+Ywv0ax8N6kMbjAlelN/Dh5yijG21hpxWm5wzf12NjpQtJndC 8nfMLsa58ErkNoB3F80nIZaUK/S7RAkqv2cBEkYFKu+xlAAqytYK9YY/XFauiNt342x5 SPeMYFO8apBL9SQ7A50JocTf0JWG9+trf/AyE6ETY7gyZznkAmkIXIiStzFtsxY/cGkD mWtWG1uiDBTXQYSEnTBRsop2i87mKsyYMASrcOdWHsPTh821oZU8C9hNHSu2+NtMA8bm yBFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=eAz9K3AzjJyegY4XFNXzdynmBguX2kLl9F5Z2dLMquI=; b=FZzAl+j3ZnJwraOP/kUweZzU/fWr9iDlvfKiT+YOonz9TQemOVnXbJ7hsCD2PUXntX Tu6LbknnUPvdIGDRYdNlSkJjZCKJXhbDktnQAn9S3hKJsblAhJMZ9nAqch1+o7hQfAAE d1FJSlTlKwtPCFgjoJ70sln27SGoqIwKzpRLiXauWHKemgr+uSBJIv09GaDwP7IvpMEx 03UoCa1Hi7ixVEKa0fPaVpfKTuQR7Licg9TOG47AHLxXpQtbnQrgaEA/QJU8Hz+aIfDi Z5RBkBG8j/2qE6/3419C/LOEKzmYyqr59ISwf28amEKXbLWUwz2RBxYOkVIbod9kVWvV NMGQ== X-Gm-Message-State: ANhLgQ2UqU2VNGMz+XXQJmDYZ1nQ1RjobXwJgQ/ou897hAot3whWQ0uh b4RHVoJJMABiT3Oz60nyNCwjt76kJiurSg== X-Google-Smtp-Source: ADFU+vs7I5tPQ5mfnhhTOkpymqFXJ0mNM7CUsK/6E9ICUawSBjCOSTjQsB9Y9xRBrBneDDazPzNxRA== X-Received: by 2002:a1c:c257:: with SMTP id s84mr2302565wmf.9.1583493047465; Fri, 06 Mar 2020 03:10:47 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 29/33] docs: Generate qemu.1 manpage with Sphinx Date: Fri, 6 Mar 2020 11:09:55 +0000 Message-Id: <20200306110959.29461-30-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200306110959.29461-1-peter.maydell@linaro.org> References: <20200306110959.29461-1-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::330 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Generate the qemu.1 manpage using Sphinx; we do this with a new top-level rst source file which is just the skeleton of the manpage and which includes .rst.inc fragments where it needs to incorporate sections from the larger HTML manuals. Signed-off-by: Peter Maydell Reviewed-by: Alex Benn=C3=A9e Tested-by: Alex Benn=C3=A9e Message-id: 20200228153619.9906-30-peter.maydell@linaro.org --- Makefile | 10 ++++---- docs/system/conf.py | 2 ++ docs/system/qemu-manpage.rst | 45 ++++++++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+), 6 deletions(-) create mode 100644 docs/system/qemu-manpage.rst diff --git a/Makefile b/Makefile index f7d08997dbf..ef10b9a031d 100644 --- a/Makefile +++ b/Makefile @@ -344,7 +344,8 @@ MANUAL_BUILDDIR :=3D docs endif =20 ifdef BUILD_DOCS -DOCS=3Dqemu-doc.html qemu-doc.txt qemu.1 +DOCS=3Dqemu-doc.html qemu-doc.txt +DOCS+=3D$(MANUAL_BUILDDIR)/system/qemu.1 DOCS+=3D$(MANUAL_BUILDDIR)/tools/qemu-img.1 DOCS+=3D$(MANUAL_BUILDDIR)/tools/qemu-nbd.8 DOCS+=3D$(MANUAL_BUILDDIR)/interop/qemu-ga.8 @@ -856,7 +857,7 @@ install-doc: $(DOCS) install-sphinxdocs $(INSTALL_DATA) docs/interop/qemu-qmp-ref.txt "$(DESTDIR)$(qemu_docdir)" ifdef CONFIG_POSIX $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man1" - $(INSTALL_DATA) qemu.1 "$(DESTDIR)$(mandir)/man1" + $(INSTALL_DATA) $(MANUAL_BUILDDIR)/system/qemu.1 "$(DESTDIR)$(mandir)/man= 1" $(INSTALL_DIR) "$(DESTDIR)$(mandir)/man7" $(INSTALL_DATA) docs/interop/qemu-qmp-ref.7 "$(DESTDIR)$(mandir)/man7" $(INSTALL_DATA) $(MANUAL_BUILDDIR)/system/qemu-block-drivers.7 "$(DESTDIR= )$(mandir)/man7" @@ -1082,7 +1083,7 @@ $(MANUAL_BUILDDIR)/user/index.html: $(call manual-dep= s,user) =20 $(call define-manpage-rule,interop,qemu-ga.8) =20 -$(call define-manpage-rule,system,qemu-block-drivers.7 qemu-cpu-models.7) +$(call define-manpage-rule,system,qemu.1 qemu-block-drivers.7 qemu-cpu-mod= els.7) =20 $(call define-manpage-rule,tools,\ qemu-img.1 qemu-nbd.8 qemu-trace-stap.1\ @@ -1109,9 +1110,6 @@ docs/interop/qemu-qmp-qapi.texi: qapi/qapi-doc.texi docs/interop/qemu-ga-qapi.texi: qga/qapi-generated/qga-qapi-doc.texi @cp -p $< $@ =20 -qemu.1: qemu-doc.texi qemu-options.texi qemu-monitor.texi qemu-monitor-inf= o.texi -qemu.1: docs/system/qemu-option-trace.texi - html: qemu-doc.html docs/interop/qemu-qmp-ref.html docs/interop/qemu-ga-re= f.html sphinxdocs info: qemu-doc.info docs/interop/qemu-qmp-ref.info docs/interop/qemu-ga-re= f.info pdf: qemu-doc.pdf docs/interop/qemu-qmp-ref.pdf docs/interop/qemu-ga-ref.p= df diff --git a/docs/system/conf.py b/docs/system/conf.py index 23cab3fb364..6251849fefc 100644 --- a/docs/system/conf.py +++ b/docs/system/conf.py @@ -17,6 +17,8 @@ html_theme_options['description'] =3D u'System Emulation = User''s Guide' # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages =3D [ + ('qemu-manpage', 'qemu', u'QEMU User Documentation', + ['Fabrice Bellard'], 1), ('qemu-block-drivers', 'qemu-block-drivers', u'QEMU block drivers reference', ['Fabrice Bellard and the QEMU Project developers'], 7), diff --git a/docs/system/qemu-manpage.rst b/docs/system/qemu-manpage.rst new file mode 100644 index 00000000000..e9a25d0680f --- /dev/null +++ b/docs/system/qemu-manpage.rst @@ -0,0 +1,45 @@ +:orphan: + +.. + This file is the skeleton for the qemu.1 manpage. It mostly + should simply include the .rst.inc files corresponding to the + parts of the documentation that go in the manpage as well as the + HTML manual. + +Title +=3D=3D=3D=3D=3D + +Synopsis +-------- + +.. parsed-literal:: + + |qemu_system| [options] [disk_image] + +Description +----------- + +.. include:: target-i386-desc.rst.inc + +Options +------- + +disk_image is a raw hard disk image for IDE hard disk 0. Some targets do +not need a disk image. + +.. hxtool-doc:: qemu-options.hx + +.. include:: keys.rst.inc + +.. include:: mux-chardev.rst.inc + +Notes +----- + +.. include:: device-url-syntax.rst.inc + +See also +-------- + +The HTML documentation of QEMU for more precise information and Linux +user mode emulator invocation. --=20 2.20.1