diff options
| author | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2026-01-19 17:23:05 +0100 |
|---|---|---|
| committer | Jonathan Corbet <corbet@lwn.net> | 2026-01-23 11:37:38 -0700 |
| commit | d0b31c30b58c07985c993fcc9275490948de87aa (patch) | |
| tree | 46ad07a31a182cb7f865f1921b1ee83337265dcf | |
| parent | 7bcdf96aff68ea0e588ed0d3675b4cc9d5da77df (diff) | |
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>
| -rw-r--r-- | Documentation/conf.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Documentation/conf.py b/Documentation/conf.py index 16d025af1f30..10322b1a28a7 100644 --- a/Documentation/conf.py +++ b/Documentation/conf.py @@ -33,7 +33,7 @@ else: include_patterns = ["**.rst"] # Location of Documentation/ directory -doctree = os.path.abspath(".") +kern_doc_dir = os.path.abspath(".") # Exclude of patterns that don't contain directory names, in glob format. exclude_patterns = [] @@ -73,7 +73,7 @@ def config_init(app, config): # setup include_patterns dynamically if has_include_patterns: for p in dyn_include_patterns: - full = os.path.join(doctree, p) + full = os.path.join(kern_doc_dir, p) rel_path = os.path.relpath(full, start=app.srcdir) if rel_path.startswith("../"): @@ -83,7 +83,7 @@ def config_init(app, config): # setup exclude_patterns dynamically for p in dyn_exclude_patterns: - full = os.path.join(doctree, p) + full = os.path.join(kern_doc_dir, p) rel_path = os.path.relpath(full, start=app.srcdir) if rel_path.startswith("../"): @@ -95,7 +95,7 @@ def config_init(app, config): # of the app.srcdir. Add them here # Handle the case where SPHINXDIRS is used - if not os.path.samefile(doctree, app.srcdir): + if not os.path.samefile(kern_doc_dir, app.srcdir): # Add a tag to mark that the build is actually a subproject tags.add("subproject") |
