]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
doc: fix incorrect path Documentation
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 5 Mar 2024 18:52:04 +0000 (19:52 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 13 Mar 2024 07:16:16 +0000 (08:16 +0100)
When copying the build system for Linux we missed to replace some
instances of 'Documentation' by 'doc'.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
doc/sphinx/maintainers_include.py

index 6cee52cbb3997eac8e5cefbdce614587b3610826..13557d3d3c20cd455adc6446bef8051db0e7c488 100755 (executable)
@@ -78,8 +78,8 @@ class MaintainersInclude(Include):
             # Drop needless input whitespace.
             line = line.rstrip()
 
-            # Linkify all non-wildcard refs to ReST files in Documentation/.
-            pat = r'(Documentation/([^\s\?\*]*)\.rst)'
+            # Linkify all non-wildcard refs to ReST files in doc/.
+            pat = r'(doc/([^\s\?\*]*)\.rst)'
             m = re.search(pat, line)
             if m:
                 # maintainers.rst is in a subdirectory, so include "../".
@@ -177,11 +177,11 @@ class MaintainersInclude(Include):
         if not self.state.document.settings.file_insertion_enabled:
             raise self.warning('"%s" directive disabled.' % self.name)
 
-        # Walk up source path directories to find Documentation/../
+        # Walk up source path directories to find doc/../
         path = self.state_machine.document.attributes['source']
         path = os.path.realpath(path)
         tail = path
-        while tail != "Documentation" and tail != "":
+        while tail != "doc" and tail != "":
             (path, tail) = os.path.split(path)
 
         # Append "MAINTAINERS"