diff options
| author | Quill Cronwall <quilljazz@gmail.com> | 2026-05-11 20:12:50 +0900 |
|---|---|---|
| committer | Quill Cronwall <quilljazz@gmail.com> | 2026-05-11 20:20:07 +0900 |
| commit | ec6f33f3c256e839b443bb2baac14bff32132811 (patch) | |
| tree | 482dc997dc6aed3cef48f4a41f4ef6d79dea454b | |
| parent | 65a00dfcf8742a50f18f29fb674d3ebbd7e0cc7c (diff) | |
| download | vyos-documentation-ec6f33f3c256e839b443bb2baac14bff32132811.tar.gz vyos-documentation-ec6f33f3c256e839b443bb2baac14bff32132811.zip | |
Fix recursive _build directory nesting error
| -rw-r--r-- | docs/conf.py | 3 |
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) |
