<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/poky.git/documentation/ref-manual/qa-checks.rst, branch kirkstone-4.0.5</title>
<subtitle>Mirror of git.yoctoproject.org/poky</subtitle>
<id>https://git.enea.com/cgit/linux/poky.git/atom?h=kirkstone-4.0.5</id>
<link rel='self' href='https://git.enea.com/cgit/linux/poky.git/atom?h=kirkstone-4.0.5'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/'/>
<updated>2022-04-25T14:22:12+00:00</updated>
<entry>
<title>ref-manual: add empty-dirs QA check and QA_EMPTY_DIRS*</title>
<updated>2022-04-25T14:22:12+00:00</updated>
<author>
<name>Paul Eggleton</name>
<email>paul.eggleton@microsoft.com</email>
</author>
<published>2022-04-22T01:40:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=445d91575d9a1b7c63b04053ae0bb95416dabbc1'/>
<id>urn:sha1:445d91575d9a1b7c63b04053ae0bb95416dabbc1</id>
<content type='text'>
This check is new in kirkstone.

(From yocto-docs rev: baa483e75538013be3261f8c115b8a5364b24c60)

Signed-off-by: Paul Eggleton &lt;paul.eggleton@microsoft.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>manuals: simplify references to class sections</title>
<updated>2022-01-17T11:59:50+00:00</updated>
<author>
<name>Michael Opdenacker</name>
<email>michael.opdenacker@bootlin.com</email>
</author>
<published>2022-01-11T16:49:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=fc30301d4cf6a1aa4934cc8572cfd4d3659df817'/>
<id>urn:sha1:fc30301d4cf6a1aa4934cc8572cfd4d3659df817</id>
<content type='text'>
Replace
":ref:`classname.bbclass &lt;ref-classes-classname&gt;`" section
by
":ref:`ref-classes-classname`" section
because each section has "classname.bbclass" as title,
therefore the result is the same.

(From yocto-docs rev: e3f438e4a71b155bd09bc7988c8e5626a063fde3)

Signed-off-by: Michael Opdenacker &lt;michael.opdenacker@bootlin.com&gt;
Reviewed-by: Quentin Schulz &lt;foss+yocto@0leil.net&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>ref-manual: fix missed override syntax change</title>
<updated>2021-10-02T08:57:41+00:00</updated>
<author>
<name>Quentin Schulz</name>
<email>quentin.schulz@theobroma-systems.com</email>
</author>
<published>2021-09-28T08:26:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=f25e408268ecae170d77ac269f316174516e728e'/>
<id>urn:sha1:f25e408268ecae170d77ac269f316174516e728e</id>
<content type='text'>
Cc: Quentin Schulz &lt;foss@0leil.net&gt;
(From yocto-docs rev: 527e885fa9beedbdcf9942d0d227862af55fcc40)

Signed-off-by: Quentin Schulz &lt;quentin.schulz@theobroma-systems.com&gt;
Reviewed-by: Michael Opdenacker &lt;michael.opdenacker@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Manuals: replace "file name" by "filename"</title>
<updated>2021-08-14T11:04:24+00:00</updated>
<author>
<name>Michael Opdenacker</name>
<email>michael.opdenacker@bootlin.com</email>
</author>
<published>2021-08-11T14:03:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=350197e46a4aa55d432dea0c5509681e6e5a4c0a'/>
<id>urn:sha1:350197e46a4aa55d432dea0c5509681e6e5a4c0a</id>
<content type='text'>
There are many more instances of "filename" or "filenames" than
of "file name" or "file names".

The winner takes it all!

(From yocto-docs rev: 13ef92bc301166c2e21d2603b2501749248dbe91)

Signed-off-by: Michael Opdenacker &lt;michael.opdenacker@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>docs: fix new override syntax migration</title>
<updated>2021-08-14T11:04:23+00:00</updated>
<author>
<name>Quentin Schulz</name>
<email>foss@0leil.net</email>
</author>
<published>2021-08-11T20:06:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=3d93ddf9e8867ca3f331fc9d3f4eb658a2b7810f'/>
<id>urn:sha1:3d93ddf9e8867ca3f331fc9d3f4eb658a2b7810f</id>
<content type='text'>
Fix bits missed by the migration script.

(From yocto-docs rev: 452e0c5067476fd2ce81f09e6c73da84ced4bbd0)

Signed-off-by: Quentin Schulz &lt;foss@0leil.net&gt;
Reviewed-by: Michael Opdenacker &lt;michael.opdenacker@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>ref-manual: overrides syntax updates</title>
<updated>2021-08-14T11:04:23+00:00</updated>
<author>
<name>Michael Opdenacker</name>
<email>michael.opdenacker@bootlin.com</email>
</author>
<published>2021-08-04T18:20:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=956056e647e21a644908d761f072a00ea42a94f9'/>
<id>urn:sha1:956056e647e21a644908d761f072a00ea42a94f9</id>
<content type='text'>
Updated with openembedded-core/scripts/contrib/convert-overrides.py

(From yocto-docs rev: 23ee6fbdf429d4cf1de4129e92dc7de4e6e9d184)

Signed-off-by: Michael Opdenacker &lt;michael.opdenacker@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>docs: replace remaining ``FOO`` by :term:`FOO`</title>
<updated>2021-07-16T20:59:31+00:00</updated>
<author>
<name>Quentin Schulz</name>
<email>foss@0leil.net</email>
</author>
<published>2021-06-19T07:07:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=5a6fb291ad16ce4110e65adf2d29e8ccfe6fa25a'/>
<id>urn:sha1:5a6fb291ad16ce4110e65adf2d29e8ccfe6fa25a</id>
<content type='text'>
A few occurences appeared between the time the original patch was sent
and it was applied, this fixes it.

Also, the original patch didn't take into account lowercase terms, this
is now fixed, see module_autoload for example.

Finally, as is often the case with regexp, there was a typo in it that
didn't make it match as much as it should have.

The script that is used to do the replacement of ``FOO`` by :term:`FOO`
is the following Python code:

import re
from pathlib import Path
from runpy import run_module
import contextlib
import io
import sys

re_term = re.compile(r'variables.html#term-([a-zA-Z_0-9]*)')
terms = []
new_terms = set()

with contextlib.redirect_stdout(io.StringIO()) as f:
    run_module('sphinx.ext.intersphinx', run_name='__main__')

objects = f.getvalue()

match = re_term.search(objects)
while match:
    if match.group(1):
        terms.append(match.group(1))
    match = re_term.search(objects, match.end())

for rst in Path('.').rglob('*.rst'):
    with open(rst, 'r') as f:
        content = "".join(f.readlines())
    for term in terms:
        content = re.sub(r'``({})``(?!.*\s+[~=-]{{{:d},}})'.format(term, len(term)), r':term:`\1`', content)

    with open(rst, 'w') as f:
        f.write(content)

This script takes one argument as input: an objects.inv. Bitbake's can
be gotten from https://docs.yoctoproject.org/bitbake/objects.inv. The
objetcs.inv from the current git repo can be gotten from
documentation/_build/html/objetcs.inv after running `make html`.

Note that this excludes from replacement terms that appear in section
titles as it requires refs to be changed too. This can be automated too
if need be but right now it looks a bit confusing to have an anchor link
(for sections) also have a term/reference link in it. I am not sure this
is desired today.

This is the result of two runs of the aforementioned script, once with
Bitbake objects.inv and once with this repo's.

Fixes: ba49d9babfcb "docs: replace ``FOO`` by :term:`FOO` where possible"

(From yocto-docs rev: 1e1b0c4dd241b6657035172b1f7b5f341afa8b25)

Signed-off-by: Quentin Schulz &lt;foss@0leil.net&gt;
Reviewed-by: Michael Opdenacker &lt;michael.opdenacker@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>docs: replace ``FOO`` by :term:`FOO` where possible</title>
<updated>2021-06-19T15:54:01+00:00</updated>
<author>
<name>Quentin Schulz</name>
<email>foss@0leil.net</email>
</author>
<published>2021-05-27T18:41:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=7d3f57cfd2e4322bcd96d67d330124f221a9aedd'/>
<id>urn:sha1:7d3f57cfd2e4322bcd96d67d330124f221a9aedd</id>
<content type='text'>
If a variable has a glossary entry and some rST files write about those
variables, it's better to point to the glossary entry instead of just
highlighting it by surrounding it with two tick quotes.

This was automated by the following python script:
"""
import re
from pathlib import Path

with open('objects.inv.txt', 'r') as f:
    objects = f.readlines()

with open('bitbake-objects.inv.txt', 'r') as f:
    objects = objects + f.readlines()

re_term = re.compile(r'variables.html#term-([A-Z_0-9]*)')
terms = []

for obj in objects:
    match = re_term.search(obj)
    if match and match.group(1):
        terms.append(match.group(1))

for rst in Path('.').rglob('*.rst'):
    with open(rst, 'r') as f:
        content = "".joing(f.readlines())
    for term in terms:
        content = re.sub(r'``({})``(?!.*\s*[~-]+)'.format(term), r':term:`\1`', content)

    with open(rst, 'w') as f:
        f.write(content)
"""

(From yocto-docs rev: ba49d9babfcb84bc5c26a68c8c3880a1d9c236d3)

Signed-off-by: Quentin Schulz &lt;foss@0leil.net&gt;
Reviewed-by: Michael Opdenacker &lt;michael.opdenacker@bootlin.com&gt;
Reviewed-by: Nicolas Dechesne &lt;nicolas.dechesne@linaro.org&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>ref-manual: simplify style</title>
<updated>2021-05-22T11:16:40+00:00</updated>
<author>
<name>Michael Opdenacker</name>
<email>michael.opdenacker@bootlin.com</email>
</author>
<published>2021-05-12T09:29:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=4db4e4ca46e8b23d5042d925ce5ad3073de4c3ed'/>
<id>urn:sha1:4db4e4ca46e8b23d5042d925ce5ad3073de4c3ed</id>
<content type='text'>
(From yocto-docs rev: 657a7f54856afd6fec7f2cb0b5f12b4b2d24adb7)

Signed-off-by: Michael Opdenacker &lt;michael.opdenacker@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>manuals: code insertion simplification over two lines</title>
<updated>2021-04-23T15:39:03+00:00</updated>
<author>
<name>Michael Opdenacker</name>
<email>michael.opdenacker@bootlin.com</email>
</author>
<published>2021-04-16T16:27:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=c3c6de21876aad811e08538544c8fe76d22ccd09'/>
<id>urn:sha1:c3c6de21876aad811e08538544c8fe76d22ccd09</id>
<content type='text'>
This simplifies paragraphs ending with a colon and followed
by code insertion.

Automatically substituted through the command:
sed -i -z "s/:\n\s*::/::/g" file.rst

This generates identical HTML output.

(From yocto-docs rev: 28e2192a7c12d64b68061138a9f6c796453eebb1)

Signed-off-by: Michael Opdenacker &lt;michael.opdenacker@bootlin.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
</feed>
