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

Clean up the message we show on PR builds #81

Merged
merged 2 commits into from
Apr 16, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion readthedocs_ext/external_version_warning.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ def process_external_version_warning_banner(app, doctree, fromdocname):
at the top of each page of the documentation.
"""
for document in doctree.traverse(nodes.document):
text = 'This Documentation was created from pull/merge request.'
# TODO: Link to the Pull Request
text = 'This page was created from a pull request.'
if app.html_context.get('display_gitlab'):
text = 'This page was created from a merge request.'
prose = nodes.paragraph(text, text)
warning = nodes.warning(prose, prose)
document.insert(0, warning)
Expand Down