Skip to contentSkip to conversation

can you apply back quotes to something already tagged with ":ref:"??

DISCUSSION Robert P. J. Day 2 participants 4 messages Oct 25, 2025 – Oct 27, 2025

lore
Share & tools
lore
#0 lore raw

just noticed the following in dev manual, "layers" chapter, where it
*appears* that someone is trying to render as monospaced the utility name 'bitbake-layers' inside that ":ref:"

layer-creation tools, see the
":ref:bsp-guide/bsp:creating a new bsp layer using the \\bitbake-layers\\ script" section in the Yocto Project Board Support Package (BSP) Developer's
Guide and the ":ref:dev-manual/layers:creating a general layer using the \\bitbake-layers\\ script" section further down in this manual.

Notice the backslash escaping of back quotes that suggest this is an attempt to render as monospaced, but that doesn't seem to do that, as you can see:

https://docs.yoctoproject.org/dev-manual/layers.html#creating-your-own-layer

or is that trying to do something different?

rday

#1 lore raw

Hi Robert,

Quoted 11 lines · Robert P. J. Day via lists.yoctoproject.org

just noticed the following in dev manual, "layers" chapter, where it
*appears* that someone is trying to render as monospaced the utility name 'bitbake-layers' inside that ":ref:"

layer-creation tools, see the
":ref:bsp-guide/bsp:creating a new bsp layer using the \\bitbake-layers\\ script" section in the Yocto Project Board Support Package (BSP) Developer's
Guide and the ":ref:dev-manual/layers:creating a general layer using the \\bitbake-layers\\ script" section further down in this manual.

Quoted 8 lines

Notice the backslash escaping of back quotes that suggest this is an attempt to render as monospaced, but that doesn't seem to do that, as you can see:

https://docs.yoctoproject.org/dev-manual/layers.html#creating-your-own-layer

or is that trying to do something different?

https://docs.yoctoproject.org/bsp-guide/bsp.html#creating-a-new-bsp-layer-using-the-bitbake-layers-script (source code https://git.yoctoproject.org/yocto-docs/tree/documentation/bsp-guide/bsp.rst#n1145)

Remove the escaping backslashes and try to build:

/yocto-docs/documentation/dev-manual/layers.rst:19: WARNING: undefined label: 'bsp-guide/bsp:creating a new bsp layer using the ``bitbake-layers`'

If you remove the tick quotes entirely:
/yocto-docs/documentation/dev-manual/layers.rst:19: WARNING: undefined label: 'bsp-guide/bsp:creating a new bsp layer using the bitbake-layers script'

The title contains tick quotes and it'll be found by the cross-referencer only if we pass the link with the tick quotes. They need to be escaped though otherwise they don't work as evidenced above. Having it render as the title would be nice but that isn't the reason.

Cheers,
Quentin

#2 lore raw
Quoted 34 lines · Quentin Schulz

Hi Robert,

Quoted 13 lines · Robert P. J. Day via lists.yoctoproject.org

just noticed the following in dev manual, "layers" chapter, where it
*appears* that someone is trying to render as monospaced the utility name 'bitbake-layers' inside that ":ref:"

layer-creation tools, see the ":ref:`bsp-guide/bsp:creating a new bsp layer using the
\\bitbake-layers\\ script`"
section in the Yocto Project Board Support Package (BSP) Developer's Guide and the ":ref:`dev-manual/layers:creating a general layer using
the \\bitbake-layers\\ script`"
section further down in this manual.

Quoted 8 lines

Notice the backslash escaping of back quotes that suggest this is an attempt to render as monospaced, but that doesn't seem to do that, as you can see:

https://docs.yoctoproject.org/dev-manual/layers.html#creating-your-own-layer

or is that trying to do something different?

https://docs.yoctoproject.org/bsp-guide/bsp.html#creating-a-new-bsp-layer-using-the-bitbake-layers-script
(source code
https://git.yoctoproject.org/yocto-docs/tree/documentation/bsp-guide/bsp.rst#n1145)

Remove the escaping backslashes and try to build:

/yocto-docs/documentation/dev-manual/layers.rst:19: WARNING: undefined label:
'bsp-guide/bsp:creating a new bsp layer using the ``bitbake-layers`'

Quoted 8 lines

If you remove the tick quotes entirely:
/yocto-docs/documentation/dev-manual/layers.rst:19: WARNING: undefined label:
'bsp-guide/bsp:creating a new bsp layer using the bitbake-layers script'

The title contains tick quotes and it'll be found by the cross-referencer only if we pass the link with the tick quotes. They need to be escaped though otherwise they don't work as evidenced above. Having it render as the title would be nice but that isn't the reason.

yeah, i followed up my original post with a "mea culpa" that i
figured out what was going on.

rday

#3 lore raw
Quoted 40 lines · Robert P. J. Day
Quoted 38 lines · Quentin Schulz

Hi Robert,

Quoted 13 lines · Robert P. J. Day via lists.yoctoproject.org

just noticed the following in dev manual, "layers" chapter, where it
*appears* that someone is trying to render as monospaced the utility name 'bitbake-layers' inside that ":ref:"

layer-creation tools, see the ":ref:`bsp-guide/bsp:creating a new bsp layer using the
\\bitbake-layers\\ script`"
section in the Yocto Project Board Support Package (BSP) Developer's Guide and the ":ref:`dev-manual/layers:creating a general layer using
the \\bitbake-layers\\ script`"
section further down in this manual.

Quoted 8 lines

Notice the backslash escaping of back quotes that suggest this is an attempt to render as monospaced, but that doesn't seem to do that, as you can see:

https://docs.yoctoproject.org/dev-manual/layers.html#creating-your-own-layer

or is that trying to do something different?

https://docs.yoctoproject.org/bsp-guide/bsp.html#creating-a-new-bsp-layer-using-the-bitbake-layers-script
(source code
https://git.yoctoproject.org/yocto-docs/tree/documentation/bsp-guide/bsp.rst#n1145)

Remove the escaping backslashes and try to build:

/yocto-docs/documentation/dev-manual/layers.rst:19: WARNING: undefined label:
'bsp-guide/bsp:creating a new bsp layer using the ``bitbake-layers`'

If you remove the tick quotes entirely:
/yocto-docs/documentation/dev-manual/layers.rst:19: WARNING: undefined label:
'bsp-guide/bsp:creating a new bsp layer using the bitbake-layers script'

Quoted 8 lines
Quoted 4 lines

The title contains tick quotes and it'll be found by the cross-referencer only if we pass the link with the tick quotes. They need to be escaped though otherwise they don't work as evidenced above. Having it render as the title would be nice but that isn't the reason.

yeah, i followed up my original post with a "mea culpa" that i
figured out what was going on.

Yeah and for some reason it's not the first time the mails you answer to yourself do not group themselves in my mail client so I only saw it afterwards. Weirdly, the archive doesn't have the original mail, c.f. https://lore.kernel.org/yocto-docs/[email protected]/T/#u

I have seen a few other contributors have this issue as well, I'm not sure what triggers it.

Cheers,
Quentin