summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorcopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>2026-05-06 13:45:13 +0000
committerGitHub <noreply@github.com>2026-05-06 13:45:13 +0000
commit54f40acfb2a157fa001d44870454267a03f153bf (patch)
treee3e0a00b67d03fad6e265eaa0ec9cf34ccd3e9fe /docs
parente09d1905d8e9e0c0a24e11c733ef3b839e63797b (diff)
downloadvyos-documentation-54f40acfb2a157fa001d44870454267a03f153bf.tar.gz
vyos-documentation-54f40acfb2a157fa001d44870454267a03f153bf.zip
docs(conf.py): also write llms.txt for dirhtml and readthedocs builders
Agent-Logs-Url: https://github.com/vyos/vyos-documentation/sessions/782645e7-c7a9-4da7-8c0f-46a0c82f9314 Co-authored-by: andamasov <12631358+andamasov@users.noreply.github.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/conf.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/conf.py b/docs/conf.py
index a7a44d85..99c4ee70 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -218,7 +218,8 @@ def _prefer_webp(app):
def _write_llms_txt(app, exception):
- if exception is not None or app.builder.name != 'html':
+ if exception is not None or app.builder.name not in (
+ 'html', 'dirhtml', 'readthedocs'):
return
from pathlib import Path
from jinja2 import Template