From: Patrick Steinhardt <ps@pks.im>
To: Toon Claes <toon@iotcl.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH 00/10] meson: wire up missing HTML documentation
Date: Fri, 27 Dec 2024 14:58:25 +0100 [thread overview]
Message-ID: <Z26ygb_4-DP7Ufab@pks.im> (raw)
In-Reply-To: <87wmfqfwh1.fsf@iotcl.com>
On Mon, Dec 23, 2024 at 12:51:54PM +0100, Toon Claes wrote:
> Patrick Steinhardt <ps@pks.im> writes:
>
> > Hi,
> >
> > this patch series wires up missing HTML-based documentation with Meson.
> > This includes a couple of missing manpages, the user manual as well as
> > the random set of articles that we have. It also starts to generate the
> > indices for API docs and howtos so that the result is a complete set of
> > HTML docs, same as with our Makefile. It also fixes a couple of smaller
> > issues I found while working on the series.
> >
> > Notably missing yet is an integration with CI as well as sanity checks
> > for any kind of missing docs in Meson. I'll work on this in a separate
> > patch series once the initial CI integration as well as this patch
> > series here have landed.
> >
> > Further missing is the generation of both info pages and a user manual
> > PDF. I couldn't find any users of these anywhere in downstream distros,
> > so I decided to not care for now until somebody complains.
> >
> > The series is built on top of caacdb5dfd (The fifteenth batch,
> > 2024-12-10) with ps/build at 904339edbd (Introduce support for the Meson
> > build system, 2024-12-06) merged into it.
>
> Hi Patrick,
>
> I've been reading through the patches, and as far as I understand it
> makes sense. But to be honest, I don't know how to use this. I have
> almost no experience with Meson and I only know `meson setup` and `meson
> compile`. But the `meson.build` from Documentation/ is marked as a
> subdir() if option "docs" is given. But I don't understand how this
> should be used. For `meson test` there are some instructions in the
> root-level meson.build, but not for the docs. Should we add this as
> well?
I don't really think it makes sense to explicitly point out every option
that we have. We already document how to discover and set options, and
from hereon it follows that you can wire up docs by running for example
`meson setup -Ddocs=man ..`. It's just another option, and as such it
can be discovered by running `meson configure`.
The benefit of this is that it cannot grow stale like the build options
in our Makefile. These may or may not have documentation, and may or may
not be stale. With Meson, every build option is listed explicitly, has
documentation and is discoverable via `meson configure`.
> And a bit related to this, I saw you use `env: script_environment` in a
> few places, how does this get injected from the root-level meson.build
> file? Due to this, I assume it's intended to only use the root-level
> meson.build directly, and not run `meson setup` in the Documentation/
> folder?
Yup, you are always expected to set up the top-level source directory,
not any of the subdirectories. The build instructions are then processed
linearly in Meson, so variables declared before a call to `subdir()`
would be accessible in the subdirectory, as well.
Patrick
next prev parent reply other threads:[~2024-12-27 13:58 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-13 8:48 [PATCH 00/10] meson: wire up missing HTML documentation Patrick Steinhardt
2024-12-13 8:48 ` [PATCH 01/10] meson: wire up support for AsciiDoctor Patrick Steinhardt
2024-12-13 8:48 ` [PATCH 02/10] meson: properly wire up dependencies for our docs Patrick Steinhardt
2024-12-13 8:48 ` [PATCH 03/10] meson: fix generation of merge tools Patrick Steinhardt
2024-12-13 8:48 ` [PATCH 04/10] meson: generate HTML pages for all man page categories Patrick Steinhardt
2024-12-23 11:52 ` Toon Claes
2024-12-27 13:58 ` Patrick Steinhardt
2024-12-13 8:48 ` [PATCH 05/10] Documentation: inline user-manual.conf Patrick Steinhardt
2024-12-13 8:48 ` [PATCH 06/10] meson: generate user manual Patrick Steinhardt
2024-12-13 8:48 ` [PATCH 07/10] Documentation: refactor "api-index.sh" for out-of-tree builds Patrick Steinhardt
2024-12-13 8:48 ` [PATCH 08/10] Documentation: refactor "howto-index.sh" " Patrick Steinhardt
2024-12-13 8:48 ` [PATCH 09/10] meson: generate articles Patrick Steinhardt
2024-12-13 8:48 ` [PATCH 10/10] meson: install static files for HTML documentation Patrick Steinhardt
2024-12-23 11:51 ` [PATCH 00/10] meson: wire up missing " Toon Claes
2024-12-27 13:58 ` Patrick Steinhardt [this message]
2025-01-03 7:58 ` How to use Meson (was: [PATCH 00/10] meson: wire up missing HTML documentation]) Toon Claes
2025-01-03 8:35 ` Patrick Steinhardt
2024-12-27 13:59 ` [PATCH v2 00/12] meson: wire up missing HTML documentation Patrick Steinhardt
2024-12-27 13:59 ` [PATCH v2 01/12] meson: wire up support for AsciiDoctor Patrick Steinhardt
2024-12-27 13:59 ` [PATCH v2 02/12] meson: properly wire up dependencies for our docs Patrick Steinhardt
2024-12-27 13:59 ` [PATCH v2 03/12] meson: fix generation of merge tools Patrick Steinhardt
2024-12-27 13:59 ` [PATCH v2 04/12] meson: generate HTML pages for all man page categories Patrick Steinhardt
2024-12-27 13:59 ` [PATCH v2 05/12] Documentation: inline user-manual.conf Patrick Steinhardt
2024-12-27 13:59 ` [PATCH v2 06/12] meson: generate user manual Patrick Steinhardt
2024-12-27 13:59 ` [PATCH v2 07/12] Documentation: refactor "api-index.sh" for out-of-tree builds Patrick Steinhardt
2024-12-27 13:59 ` [PATCH v2 08/12] Documentation: refactor "howto-index.sh" " Patrick Steinhardt
2024-12-27 13:59 ` [PATCH v2 09/12] meson: generate articles Patrick Steinhardt
2024-12-27 13:59 ` [PATCH v2 10/12] meson: install static files for HTML documentation Patrick Steinhardt
2024-12-27 13:59 ` [PATCH v2 11/12] t/Makefile: make "check-meson" work with Dash Patrick Steinhardt
2025-01-02 15:37 ` Jonathan Nieder
2025-01-02 15:41 ` Junio C Hamano
2025-01-03 0:05 ` Junio C Hamano
2024-12-27 13:59 ` [PATCH v2 12/12] Documentation: wire up sanity checks for Meson Patrick Steinhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Z26ygb_4-DP7Ufab@pks.im \
--to=ps@pks.im \
--cc=git@vger.kernel.org \
--cc=toon@iotcl.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).