summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
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