diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2024-03-05 19:52:04 +0100 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2024-03-13 08:16:16 +0100 |
commit | c8a2567475508156f4f43ea2caf3532790d47f8e (patch) | |
tree | 3717e7be16f8920be844b6f01ac66501acd09cc4 /doc/sphinx | |
parent | b13297cc45baee6ee75292ee6aa39dfd0e048443 (diff) | |
download | u-boot-c8a2567475508156f4f43ea2caf3532790d47f8e.zip u-boot-c8a2567475508156f4f43ea2caf3532790d47f8e.tar.gz u-boot-c8a2567475508156f4f43ea2caf3532790d47f8e.tar.bz2 |
doc: fix incorrect path Documentation
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>
Diffstat (limited to 'doc/sphinx')
-rwxr-xr-x | doc/sphinx/maintainers_include.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/sphinx/maintainers_include.py b/doc/sphinx/maintainers_include.py index 6cee52c..13557d3 100755 --- a/doc/sphinx/maintainers_include.py +++ b/doc/sphinx/maintainers_include.py @@ -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" |