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

Commit ab5a7aa

Browse files
authored
Merge pull request #63 from stsewd/exclude-extra-header-from-offline-builders
Exclude extra header from offline builders
2 parents f3d3d33 + 1d925ba commit ab5a7aa

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
@@ -110,7 +110,10 @@ def update_body(app, pagename, templatename, context, doctree):
110110
# This is monkey patched on the signal because we can't know what the user
111111
# has done with their `app.builder.templates` before now.
112112

113-
if not hasattr(app.builder.templates.render, '_patched'):
113+
if (
114+
app.builder.name in online_builders and not
115+
hasattr(app.builder.templates.render, '_patched')
116+
):
114117
# Janky monkey patch of template rendering to add our content
115118
old_render = app.builder.templates.render
116119

0 commit comments

Comments
 (0)