On Wed, Apr 27, 2022 at 1:17 PM Nicolas Dechesne <nicolas.dechesne@linaro.org> wrote:


On Wed, Apr 27, 2022 at 10:59 AM Michael Opdenacker via lists.yoctoproject.org <michael.opdenacker=bootlin.com@lists.yoctoproject.org> wrote:

On 4/27/22 10:18, Jose Quaresma wrote:
>
>  
> In the HTML page it is fine, the &YOCTO_DOC_VERSION is 4.0
> https://docs.yoctoproject.org/4.0/migration-guides/migration-4.0.html#release-notes-for-4-0-kirkstone
>
> In the dev version the &YOCTO_DOC_VERSION is not replaced by dev
> https://docs.yoctoproject.org/dev/migration-guides/migration-4.0.html#release-notes-for-4-0-kirkstone


That's *very weird* because the substitution happened in
https://docs.yoctoproject.org/dev/brief-yoctoprojectqs/index.html but
not in
https://docs.yoctoproject.org/dev/migration-guides/migration-4.0.html#release-notes-for-4-0-kirkstone
(same version).

When I build the docs locally things look fine. Any ideas what could
cause this?

I can reproduce the issue when building locally. I am using Sphinx==4.4.0

oh... It's because the file release-notes-4.0.rst is included with a ..include statement. The variable mapping is done with a custom Sphinx extension (yocto-vars.py) which is triggered for the 'source-read' event. So perhaps this event is not triggered when using an include statement.. let me check more on that..  
 

Michael.

--
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#2876): https://lists.yoctoproject.org/g/docs/message/2876
Mute This Topic: https://lists.yoctoproject.org/mt/90726109/1279857
Group Owner: docs+owner@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/docs/unsub [nicolas.dechesne@linaro.org]
-=-=-=-=-=-=-=-=-=-=-=-