Skip to contentSkip to conversation

docs: replace 'Edit on GitLab' with 'View page source'

PATCH In review Daniel P. Berrangé 3 participants 4 messages Dec 9, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs: replace 'Edit on GitLab' with 'View page source'

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 <[email protected]>
Date: Tue Mar 23 15:53:28 2021 +0400

sphinx: adopt kernel readthedoc theme

---
 docs/conf.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
docs/conf.py +1 -1
index c11a6ead8a..164a8ee8b2 100644
@@ -186,7 +186,7 @@
 ]
 
 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",
Signature · 1 line
2.46.0
#1 lore raw
Quoted 8 lines · Daniel P. Berrangé

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:

Quoted 6 lines

commit 73e6aec6522e1edd63f631c52577b49a39bc234f
Author: Marc-André Lureau <[email protected]>
Date: Tue Mar 23 15:53:28 2021 +0400

sphinx: adopt kernel readthedoc theme

Is this:
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2709
?

Quoted 18 lines
---
  docs/conf.py | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
docs/conf.py +1 -1
index c11a6ead8a..164a8ee8b2 100644
@@ -186,7 +186,7 @@
  ]
 
  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",
#2 lore raw
Quoted 13 lines · Philippe Mathieu-Daudé
Quoted 12 lines · Daniel P. Berrangé

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 <[email protected]>
   Date:   Tue Mar 23 15:53:28 2021 +0400
Quoted 6 lines
Quoted 2 lines

sphinx: adopt kernel readthedoc theme

Is this:
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2709
?

I won't really claim it resolves that, as that issues is showing lots of user confusion, most of which is not in our control.

Quoted 6 lines
Quoted 6 lines
---
  docs/conf.py | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 13 lines

docs/conf.py line 191

Quoted 12 lines
docs/conf.py +1 -1
index c11a6ead8a..164a8ee8b2 100644
@@ -186,7 +186,7 @@
  ]
  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",

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
Reviewed-by on v1 1/1
#3 lore raw
In reply to Daniel P. Berrangé
Quoted 24 lines · Daniel P. Berrangé

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 <[email protected]>
Date: Tue Mar 23 15:53:28 2021 +0400

sphinx: adopt kernel readthedoc theme

---
  docs/conf.py | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
docs/conf.py +0 -0
index c11a6ead8a..164a8ee8b2 100644

docs/conf.py line 192

Quoted 8 lines
docs/conf.py +1 -1
@@ -186,7 +186,7 @@
  ]
 
  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",