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

Commit a555c7d

Browse files
authored
Merge pull request #81 from readthedocs/cleanup-pr-msg
Clean up the message we show on PR builds
2 parents 545103d + 1765270 commit a555c7d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

readthedocs_ext/external_version_warning.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ def process_external_version_warning_banner(app, doctree, fromdocname):
1717
at the top of each page of the documentation.
1818
"""
1919
for document in doctree.traverse(nodes.document):
20-
text = 'This Documentation was created from pull/merge request.'
20+
# TODO: Link to the Pull Request
21+
text = 'This page was created from a pull request.'
22+
if app.html_context.get('display_gitlab'):
23+
text = 'This page was created from a merge request.'
2124
prose = nodes.paragraph(text, text)
2225
warning = nodes.warning(prose, prose)
2326
document.insert(0, warning)

0 commit comments

Comments
 (0)