summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
authorYuriy Andamasov <yuriy@vyos.io>2026-05-12 08:59:52 +0300
committerGitHub <noreply@github.com>2026-05-12 08:59:52 +0300
commit127041799fb1d329322d4953373ba03343dcd44d (patch)
tree2decb09f0449898af6ab5a8b19d946cb3fbddf1f /docs/conf.py
parenta1ecf2e8d71c1188b3e90061e8fffea9ffebbf7c (diff)
parentec6f33f3c256e839b443bb2baac14bff32132811 (diff)
downloadvyos-documentation-127041799fb1d329322d4953373ba03343dcd44d.tar.gz
vyos-documentation-127041799fb1d329322d4953373ba03343dcd44d.zip
Merge pull request #1994 from teslazonda/T8843-fix-recursive-build-directory-error
T8843: Fix recursive _build directory nesting error
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 3a3a8522..c3ee0817 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -300,6 +300,9 @@ def _copy_md_sources(app, exception):
src = pathlib.Path(app.srcdir)
out = pathlib.Path(app.outdir)
for path in src.rglob("*.md"):
+ # Skip files in excluded directories to prevent recursive nesting
+ if any(part in {'_build', '_rst_legacy'} for part in path.parts):
+ continue
dest = out / path.relative_to(src)
dest.parent.mkdir(parents=True, exist_ok=True)
shutil.copy2(path, dest)