[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Supported Sphinx Versions (was: Re: [PATCH for-5.0? 0/3] Make docs b
From: |
Peter Maydell |
Subject: |
Re: Supported Sphinx Versions (was: Re: [PATCH for-5.0? 0/3] Make docs build work with Sphinx 3) |
Date: |
Tue, 14 Apr 2020 11:28:38 +0100 |
On Mon, 13 Apr 2020 at 19:08, John Snow <address@hidden> wrote:
> 1.5 - 1.5.6: Fails to build.
>
> Warning, treated as error:
> /home/jsnow/src/qemu/docs/system/invocation.rst:544: WARNING: Malformed
> option description '[enable=]PATTERN', should look like "opt", "-opt
> args", "--opt args", "/opt args" or "+opt args"
>
> ... I actually don't know where this one goes wrong; that's not a valid
> line number there. device-url-syntax.rst.inc isn't that long either, so
> I don't know what this correlates to, unfortunately.
https://github.com/sphinx-doc/sphinx/issues/3366
is probably relevant here: the regex controlling what Sphinx
thinks is a valid option string was relaxed.
The "1.4 fails with duplicate ID warnings" part is probably
https://github.com/sphinx-doc/sphinx/issues/646
which is a similar earlier issue where the option string
was relaxed to include the '.' character. Without that
Sphinx misparses all the "encrypt.format", "encrypt.key-secret", etc
options of the qcow2 block driver as being a single "encrypt" option
with an argument ".format", ".key-secret", etc and thinks they're
duplicates.
> I want to send patches to:
> 2. Change sphinx conf.py to require >= 1.6.1 so that the requirement is
> documented
I think we should do this for 5.0. My guess is that most users
building QEMU on older distros aren't actually interested in
building the documentation, so they'll be better off having
configure automatically disable docs building and getting a
working binary rather than having it try to build the docs
and then failing. If they really want the docs they'll have
a clear reason why which will point them in the right direction.
PS: why 1.6.1 and not 1.6.0? You don't list 1.6.0 in your set of
things you tested, was it just that you couldn't find it?
thanks
-- PMM
- Re: [PATCH for-5.0? 3/3] kernel-doc: Use c:struct for Sphinx 3.0 and later, (continued)
- Re: [PATCH for-5.0? 0/3] Make docs build work with Sphinx 3, Paolo Bonzini, 2020/04/13
- Supported Sphinx Versions (was: Re: [PATCH for-5.0? 0/3] Make docs build work with Sphinx 3), John Snow, 2020/04/13
- Re: Supported Sphinx Versions (was: Re: [PATCH for-5.0? 0/3] Make docs build work with Sphinx 3), Peter Maydell, 2020/04/13
- Re: Supported Sphinx Versions (was: Re: [PATCH for-5.0? 0/3] Make docs build work with Sphinx 3), John Snow, 2020/04/13
- Re: Supported Sphinx Versions, Markus Armbruster, 2020/04/14
- Supported Build Platforms (Again) (Was Re: Supported Sphinx Versions), John Snow, 2020/04/15
- Re: Supported Build Platforms (Again) (Was Re: Supported Sphinx Versions), Daniel P . Berrangé, 2020/04/15
- Re: Supported Build Platforms (Again) (Was Re: Supported Sphinx Versions), Markus Armbruster, 2020/04/16
Re: Supported Sphinx Versions (was: Re: [PATCH for-5.0? 0/3] Make docs build work with Sphinx 3),
Peter Maydell <=