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

Commit e0a3828

Browse files
committed
Fix path to html_context
1 parent 62bc814 commit e0a3828

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs_ext/external_version_warning.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def process_external_version_warning_banner(app, doctree, fromdocname):
1919
for document in doctree.traverse(nodes.document):
2020
# TODO: Link to the Pull Request
2121
text = 'This page was created from a pull request.'
22-
if app.html_context.get('display_gitlab'):
22+
if app.builder.config.html_context.get('display_gitlab'):
2323
text = 'This page was created from a merge request.'
2424
prose = nodes.paragraph(text, text)
2525
warning = nodes.warning(prose, prose)

0 commit comments

Comments
 (0)