docs: replace 'Edit on GitLab' with 'View page source'
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 9 Dec 2024 16:35:06 +0000 (16:35 +0000)
committerThomas Huth <thuth@redhat.com>
Wed, 11 Dec 2024 08:18:38 +0000 (09:18 +0100)
QEMU takes contributions via the mailing list, so while you can edit a
file on gitlab and then switch to the terminal to send a patch, the
wording 'Edit on GitLab' strongly suggests we take merge requests.

Switching back to "View page source" is a more agnostic term that does
not imply a particular contribution approach, that we had used in QEMU
before:

  commit 73e6aec6522e1edd63f631c52577b49a39bc234f
  Author: Marc-André Lureau <marcandre.lureau@redhat.com>
  Date:   Tue Mar 23 15:53:28 2021 +0400

    sphinx: adopt kernel readthedoc theme

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Message-ID: <20241209163506.2089961-1-berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
docs/conf.py

index c11a6ead8a0f1853acd2e4b5d6fa8e41a3cde6a5..164a8ee8b22b580e53e582ee25bb0fffc96c0039 100644 (file)
@@ -186,7 +186,7 @@ html_js_files = [
 ]
 
 html_context = {
-    "display_gitlab": True,
+    "source_url_prefix": "https://gitlab.com/qemu-project/qemu/-/blob/master/docs/",
     "gitlab_user": "qemu-project",
     "gitlab_repo": "qemu",
     "gitlab_version": "master",