From: Quentin Schulz <quentin.schulz@cherry.de>
To: Antonin Godard <antonin.godard@bootlin.com>, docs@lists.yoctoproject.org
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Subject: Re: [docs] [yocto-docs PATCH] migration-guides: add placeholder files next release
Date: Wed, 13 Nov 2024 10:22:35 +0100 [thread overview]
Message-ID: <261f85b3-e045-4d2f-8771-dc400b893843@cherry.de> (raw)
In-Reply-To: <D5KWT4QLUYI6.1YPGOC8KJJRDR@bootlin.com>
Hi Antonin,
On 11/13/24 9:31 AM, Antonin Godard wrote:
> Hi Quentin,
>
> On Tue Nov 12, 2024 at 6:15 PM CET, Quentin Schulz via lists.yoctoproject.org wrote:
>> Hi Antonin,
>>
> [...]
>>> +Migration notes for 5.2 (walnascar)
>>> +-----------------------------------
>>> +
>>> +This section provides migration information for moving to the Yocto
>>> +Project 5.2 Release (codename "walnascar") from the prior release.
>>> +
>>
>> thought: By updating set_versions.py to include a DISTRO_NAME_MINUS_ONE
>> in poky.yaml, we could replace "from the prior release" with the name of
>> the release.
>>
>> Nothing for this patch though :)
>
> But this would only be valid while Walnascar is the current, after that if
> DISTRO_NAME_MINUS_ONE gets updated to Walnascar, this document would get the
> wrong values, right?
>
That's correct, I had forgotten we generate all migration notes from the
latest release, so using DISTRO_NAME_MINUS_ONE would make all migration
notes point to the minus one of the latest release, not good.
>>> diff --git a/documentation/migration-guides/release-5.2.rst b/documentation/migration-guides/release-5.2.rst
>>> new file mode 100644
>>> index 0000000000000000000000000000000000000000..5c39b99e037e0a84ad6603d22ec4fb4dc2bf96ea
>>> --- /dev/null
>>> +++ b/documentation/migration-guides/release-5.2.rst
>>> @@ -0,0 +1,9 @@
>>> +.. SPDX-License-Identifier: CC-BY-SA-2.0-UK
>>> +
>>> +Release 5.2 (walnascar)
>>> +=======================
>>> +
>>> +.. toctree::
>>> +
>>> + migration-5.2
>>> + release-notes-5.2
>>
>> If this file is always the same, we can make set_versions.py or
>> something similar generate it.
>
> It evolves when minor updates are published (5.0.1, 5.0.2, etc.), so we would
> need to count the number of releases based on existing tags for a branch. We
> would also need to exclude some of those for older releases (for instance the
> kirkstone branch does not contain release-5.1.rst).
>
> I'm not sure that the complexity is worth it?
>
We already autogenerate releases.rst which does list all major and minor
releases based on existing tags.
We know from which tag(s) we started to have release-notes and migration
files.
We could stop the generation of those files depending on the current tag
we're building for, to prevent trying to include files that don't exist
in older releases.
We could also do the same trick we do for Supported Release Manuals and
Outdated Release Manuals and just link to the newer
docs.yoctoproject.org/X.Y.Z/migration-guides/release-X.Y.html
Just ideas though :)
Cheers,
Quentin
next prev parent reply other threads:[~2024-11-13 9:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-12 16:52 [yocto-docs PATCH] migration-guides: add placeholder files next release Antonin Godard
2024-11-12 17:15 ` [docs] " Quentin Schulz
2024-11-13 8:31 ` Antonin Godard
2024-11-13 9:22 ` Quentin Schulz [this message]
2024-11-13 13:39 ` Antonin Godard
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=261f85b3-e045-4d2f-8771-dc400b893843@cherry.de \
--to=quentin.schulz@cherry.de \
--cc=antonin.godard@bootlin.com \
--cc=docs@lists.yoctoproject.org \
--cc=thomas.petazzoni@bootlin.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