]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'mauro' into docs-next
authorJonathan Corbet <corbet@lwn.net>
Fri, 20 Mar 2020 23:08:24 +0000 (17:08 -0600)
committerJonathan Corbet <corbet@lwn.net>
Fri, 20 Mar 2020 23:08:24 +0000 (17:08 -0600)
commit58af13e74643094bf6c3b61d66728c9c193ba749
tree8385fa327e4ea5b41663e091eae1a964be9dd9f6
parent79f4fc61ad95ffe7e14b47781ee88d52566d7f22
parent3040498a619a2d6d3a894124defe88cbdb0377cd
Merge branch 'mauro' into docs-next

Mauro says (as he's cleaning up my mess):

This small series address a regression caused by a new patch at
docs-next (and at linux-next).

Before this patch, when a cross-reference to a chapter within the
documentation is needed, we had to add a markup like:

.. _foo:

foo
===

This behavor is now different after this patch:

79f4fc61ad95 ("docs: fix reference to core-api/namespaces.rst")

As a Sphinx extension now creates automatically a reference
like the above, without requiring any extra markup.

That, however, comes with a price: it is not possible anymore to have
two sections with the same name within the entire Kernel docs!

This causes thousands of warnings, as we have sections named
"introduction" on lots of places.

This series solve this regression by doing two changes:

1) The references are now prefixed by the document name. So,
   a file named "bar" would have the "foo" reference as "bar:foo".

2) It will only use the first two levels. The first one is (usually) the
   name of the document, and the second one the chapter name.

This solves almost all problems we have. Still, there are a few places
where we have two chapters at the same document with the
same name. The first patch addresses this problem.

The second patch limits the escope of the autosectionlabel.