Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit 1d925ba

Browse files
committed
Exclude extra header from offline builders
1 parent f1a01c5 commit 1d925ba

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

readthedocs_ext/readthedocs.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,10 @@ def update_body(app, pagename, templatename, context, doctree):
102102
# This is monkey patched on the signal because we can't know what the user
103103
# has done with their `app.builder.templates` before now.
104104

105-
if not hasattr(app.builder.templates.render, '_patched'):
105+
if (
106+
app.builder.name in online_builders and not
107+
hasattr(app.builder.templates.render, '_patched')
108+
):
106109
# Janky monkey patch of template rendering to add our content
107110
old_render = app.builder.templates.render
108111

0 commit comments

Comments
 (0)