From nobody Thu Nov 13 22:12:10 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=1582905210; cv=none; d=zohomail.com; s=zohoarc; b=l4IIFiVf5ahEuN6AG8CTnqlb9qkWYrXeA3jaJibluvsUKPhFNfhPrHwuLWynpIYrTg73ukm8IdfStblFopkk4Bh6tJKEyFJqvxQhpCNIQSF7EEFLHOKzbBgRrGnGJBFEtTCiUpxoOEmgtiejV4YYY1nN46HrNNsIzOOmPMqvWhc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1582905210; h=Content-Transfer-Encoding:Cc: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=KZqjVn+qMnkasneI7ZXq95Cdi2Za+tgcJ/H/2tX6ZEg=; b=e4iMGI6/5YBSjgiwKRxm/fvrCLszaf12ven2JbegScQEf9WAYgOAYqXzqJ2rL5cNs7KHhy9fEmvCVpjlipUZDhJ6Pbg6+t0o39QAzd6IExXWaHjQhlethYQm5srJPQ93/MnnLbWS4SmfxM8j3U3FAMeVShqYTSdSqZu+e0qYZm4= 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 15829052106172.3975617337945323; Fri, 28 Feb 2020 07:53:30 -0800 (PST) Received: from localhost ([::1]:49150 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j7hxB-0004Gz-Eo for importer@patchew.org; Fri, 28 Feb 2020 10:53:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:47058) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j7hhS-0001no-O5 for qemu-devel@nongnu.org; Fri, 28 Feb 2020 10:37:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j7hhR-0005B5-BU for qemu-devel@nongnu.org; Fri, 28 Feb 2020 10:37:14 -0500 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:55018) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j7hhR-0005AY-4t for qemu-devel@nongnu.org; Fri, 28 Feb 2020 10:37:13 -0500 Received: by mail-wm1-x331.google.com with SMTP id z12so3617355wmi.4 for ; Fri, 28 Feb 2020 07:37:13 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id u23sm2659452wmu.14.2020.02.28.07.37.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Feb 2020 07:37:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KZqjVn+qMnkasneI7ZXq95Cdi2Za+tgcJ/H/2tX6ZEg=; b=g1R00FOvoNcCfJIm9+LBN/r3inqntGOd4ry1fzwynYR7dJ9uSrb/vhWn5QSKzMhdPo 4ueBdmGWG9t5OHFogEUP5L1+/jeqouTpOFgZqg3le27A+9gqXqBcrmcONyCpb8Am9URp Qw7xXDQ72GTO9/vB7xrR1w11tIgF/tcm6lsRWNlFnIpsYnqvhIfh1z+ApXcPeyQqcJxM 317D5Mm9BzvFlMYKHxO9Rkf73PsEnCcswKLYov6mYYSh8wBkHrTw20QSHWuRRf/Pd5br 7R4yh6Bd2YNycrZVCldeoau0fcsZZE0ZnQwIE9srkjnMovDZYG4Q0XtRWGFXfpIgp21R UN6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KZqjVn+qMnkasneI7ZXq95Cdi2Za+tgcJ/H/2tX6ZEg=; b=Fi5DHSYIlTxRlXbJNs9hDN43Q07jGzcqa+PqDMEMZ7e8WKMSCpBXJEg0c7l+8G6WUA MiB5XnVaze+yQbRtDpU6kRxOjXdnKiWaTc2WaxCbZmxxCGtIs8eqwSkHCuTtFUXhVXZN QXMWR59tZJlbU53/5iwAj2cL8NOKJAxeM1T4G+e+9KTCpPThkUUhTlBcCi7GqI4XZQaJ qUVqLbtUx96JBf8ROk+QC8pvpKfVjQqlRstRv0UvyqQI5a8gJVWXZCNqSBZqcp94jy2o zRM+GDBTyrE/rDF4ZVe82Hn1TvrchAXV/jgXkBb258fZh7o5QeJ3djEukFQ/GUsNCp5F 6mAA== X-Gm-Message-State: APjAAAVijq/YrTnWQrIWsgQn66WgOQUTgzLar+pDbWCKvaYU+P2K8HF8 Al/Osmhf9G2VXk2G9IMHnbf9kD0f3VT4OA== X-Google-Smtp-Source: APXvYqzIOKrrTxmnAl+JSCgGlFeRAJFIFfXVMZVzQaour/jOys5/JK+9caZ3oStFi30JwOF/j5xUHA== X-Received: by 2002:a7b:c778:: with SMTP id x24mr5610241wmk.59.1582904229823; Fri, 28 Feb 2020 07:37:09 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PATCH v3 29/33] docs: Generate qemu.1 manpage with Sphinx Date: Fri, 28 Feb 2020 15:36:15 +0000 Message-Id: <20200228153619.9906-30-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200228153619.9906-1-peter.maydell@linaro.org> References: <20200228153619.9906-1-peter.maydell@linaro.org> MIME-Version: 1.0 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::331 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: , Cc: Paolo Bonzini , Kashyap Chamarthy Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) Content-Type: text/plain; charset="utf-8" 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 --- 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