Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs: conf.py: don't use doctree with a different meaning

At Sphinx, doctree is a directory where doc build cache is stored.
Use a better name.

No functional changes.

Suggested-by: Jani Nikula <jani.nikula@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Message-ID: <bab090bb4b95c735bd570c9c23c6e97851b2bf7b.1768838938.git.mchehab+huawei@kernel.org>

authored by

Mauro Carvalho Chehab and committed by
Jonathan Corbet
d0b31c30 7bcdf96a

+4 -4
+4 -4
Documentation/conf.py
··· 33 33 include_patterns = ["**.rst"] 34 34 35 35 # Location of Documentation/ directory 36 - doctree = os.path.abspath(".") 36 + kern_doc_dir = os.path.abspath(".") 37 37 38 38 # Exclude of patterns that don't contain directory names, in glob format. 39 39 exclude_patterns = [] ··· 73 73 # setup include_patterns dynamically 74 74 if has_include_patterns: 75 75 for p in dyn_include_patterns: 76 - full = os.path.join(doctree, p) 76 + full = os.path.join(kern_doc_dir, p) 77 77 78 78 rel_path = os.path.relpath(full, start=app.srcdir) 79 79 if rel_path.startswith("../"): ··· 83 83 84 84 # setup exclude_patterns dynamically 85 85 for p in dyn_exclude_patterns: 86 - full = os.path.join(doctree, p) 86 + full = os.path.join(kern_doc_dir, p) 87 87 88 88 rel_path = os.path.relpath(full, start=app.srcdir) 89 89 if rel_path.startswith("../"): ··· 95 95 # of the app.srcdir. Add them here 96 96 97 97 # Handle the case where SPHINXDIRS is used 98 - if not os.path.samefile(doctree, app.srcdir): 98 + if not os.path.samefile(kern_doc_dir, app.srcdir): 99 99 # Add a tag to mark that the build is actually a subproject 100 100 tags.add("subproject") 101 101