summaryrefslogtreecommitdiff
path: root/docs/_ext
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2026-05-06 14:08:35 +0100
committerGitHub <noreply@github.com>2026-05-06 14:08:35 +0100
commit9d0341379184622b3da2e7e05aeeceed4bbf83e9 (patch)
tree3c881338b1f6e0ec369a138e4c53772fcbaa8253 /docs/_ext
parent5eb383a10ec92c65eed525bc174785a6852e997f (diff)
downloadvyos-documentation-9d0341379184622b3da2e7e05aeeceed4bbf83e9.tar.gz
vyos-documentation-9d0341379184622b3da2e7e05aeeceed4bbf83e9.zip
Revert "Add incremental RST-to-MyST swap mechanism (circinus) (#1867)" (#1893)
This reverts commit 5eb383a10ec92c65eed525bc174785a6852e997f.
Diffstat (limited to 'docs/_ext')
-rw-r--r--docs/_ext/vyos.py14
1 files changed, 2 insertions, 12 deletions
diff --git a/docs/_ext/vyos.py b/docs/_ext/vyos.py
index 527178d1..2f4dede9 100644
--- a/docs/_ext/vyos.py
+++ b/docs/_ext/vyos.py
@@ -364,18 +364,8 @@ class CmdInclude(SphinxDirective):
line = re.sub('{{\s?var' + str(i) + '\s?}}',value,line)
new_include_lines.append(line)
- if hasattr(self.state, '_renderer'):
- self.state._renderer.nested_render_text(''.join(new_include_lines), self.lineno)
- return []
- from docutils.statemachine import ViewList
- from docutils import nodes
- content = ''.join(new_include_lines)
- vl = ViewList()
- for i, line in enumerate(content.splitlines(keepends=False)):
- vl.append(line, include_file[1], i)
- node = nodes.Element()
- self.state.nested_parse(vl, self.content_offset, node, match_titles=True)
- return node.children
+ self.state._renderer.nested_render_text(''.join(new_include_lines), self.lineno)
+ return []
class CfgcmdlistDirective(Directive):