diff --git a/readthedocs_ext/external_version_warning.py b/readthedocs_ext/external_version_warning.py index 437c3b5..f4267e0 100644 --- a/readthedocs_ext/external_version_warning.py +++ b/readthedocs_ext/external_version_warning.py @@ -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)