summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
authorYuriy Andamasov <yuriy@vyos.io>2026-05-10 18:14:13 +0300
committerGitHub <noreply@github.com>2026-05-10 18:14:13 +0300
commit644c8b8a143402326fee572ae284321073921d7c (patch)
tree25cd211c610f165f75e1da1040d7cd758b56f8e5 /docs/conf.py
parentd7e63e1923814a791dadf93453e8c090d26ca896 (diff)
parent3a544f6f73dadb0e50f32a4c73e7efa3772b4f49 (diff)
downloadvyos-documentation-644c8b8a143402326fee572ae284321073921d7c.tar.gz
vyos-documentation-644c8b8a143402326fee572ae284321073921d7c.zip
Merge pull request #1940 from vyos/yuriy/remove-rst-swap-mechanism
chore: remove RST swap mechanism, archive rst-*.rst under docs/_rst_legacy/
Diffstat (limited to 'docs/conf.py')
-rw-r--r--docs/conf.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/docs/conf.py b/docs/conf.py
index ea3c5b61..8c76c43c 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -13,6 +13,7 @@
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
import os
+import pathlib
import shutil
import sys
sys.path.append(os.path.abspath("./_ext"))
@@ -98,16 +99,9 @@ gettext_uuid = False
# This pattern also affects html_static_path and html_extra_path .
exclude_patterns = [
u'_build', 'Thumbs.db', '.DS_Store', '_include/vyos-1x',
- 'rst-*.rst', '**/rst-*.rst',
+ '_rst_legacy',
]
-import pathlib
-_build = pathlib.Path(__file__).parent / '_build'
-if (_build / '_rst_override_state.json').exists() and (_build / '_md_exclude.txt').exists():
- exclude_patterns.extend(
- s for s in (line.strip() for line in (_build / '_md_exclude.txt').read_text().splitlines()) if s
- )
-
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'