From 54f40acfb2a157fa001d44870454267a03f153bf Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 6 May 2026 13:45:13 +0000 Subject: 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> --- docs/conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs') 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 -- cgit v1.2.3