diff options
| author | Yuriy Andamasov <yuriy@vyos.io> | 2026-05-12 09:09:41 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-12 09:09:41 +0300 |
| commit | 4405affcec6d492488cfee01c70bd7e9edcbec02 (patch) | |
| tree | 88b4b9f048d790b4df575f417545e1ebee81823e /docs | |
| parent | bcaa735f67989fc538315300ec170e0a2f31875a (diff) | |
| parent | a727713232963913b9a839d24a53416dc73db5f6 (diff) | |
| download | vyos-documentation-4405affcec6d492488cfee01c70bd7e9edcbec02.tar.gz vyos-documentation-4405affcec6d492488cfee01c70bd7e9edcbec02.zip | |
Merge pull request #2000 from vyos/yuriy/fix-conflict-markers-circinus
T8843: Fix conflict markers from Mergify backport of #1994 (circinus)
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/conf.py | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/docs/conf.py b/docs/conf.py index d3c6cc45..60d00a95 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -250,6 +250,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) @@ -306,24 +309,6 @@ def _write_llms_txt(app, exception): out_path.write_text(rendered, encoding='utf-8') -<<<<<<< HEAD -======= -def _copy_md_sources(app, exception): - """Copy .md source files verbatim into the HTML output tree.""" - if exception is not None: - return - 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) - - ->>>>>>> ec6f33f3 (Fix recursive _build directory nesting error) def setup(app): app.connect('builder-inited', _prefer_webp) app.connect('build-finished', _copy_md_sources) |
