]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
docs: add "page source" link to sphinx documentation
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 2 Nov 2020 13:09:26 +0000 (13:09 +0000)
committerThomas Huth <thuth@redhat.com>
Tue, 10 Nov 2020 07:51:30 +0000 (08:51 +0100)
Add a link to the top of the sidebar in every docs page that takes the
user back to the source code in gitlab.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20201102130926.161183-5-berrange@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
docs/_templates/editpage.html [new file with mode: 0644]
docs/conf.py
docs/devel/_templates/editpage.html [new file with mode: 0644]
docs/interop/_templates/editpage.html [new file with mode: 0644]
docs/specs/_templates/editpage.html [new file with mode: 0644]
docs/system/_templates/editpage.html [new file with mode: 0644]
docs/tools/_templates/editpage.html [new file with mode: 0644]
docs/user/_templates/editpage.html [new file with mode: 0644]

diff --git a/docs/_templates/editpage.html b/docs/_templates/editpage.html
new file mode 100644 (file)
index 0000000..4319b0f
--- /dev/null
@@ -0,0 +1,5 @@
+<div id="editpage">
+  <ul>
+    <li><a href="https://gitlab.com/qemu-project/qemu/-/blob/master/docs/{{pagename}}.rst">Page source</a></li>
+  </ul>
+</div>
index e584f68393898c7edb8e2cb137ef5b519e030321..d40d8ff37bab430c211a6c7dbfea6b1f3a6cf446 100644 (file)
@@ -177,6 +177,7 @@ html_theme_options = {
 html_sidebars = {
     '**': [
         'about.html',
+        'editpage.html',
         'navigation.html',
         'searchbox.html',
     ]
diff --git a/docs/devel/_templates/editpage.html b/docs/devel/_templates/editpage.html
new file mode 100644 (file)
index 0000000..a86d22b
--- /dev/null
@@ -0,0 +1,5 @@
+<div id="editpage">
+  <ul>
+    <li><a href="https://gitlab.com/qemu-project/qemu/-/blob/master/docs/devel/{{pagename}}.rst">Page source</a></li>
+  </ul>
+</div>
diff --git a/docs/interop/_templates/editpage.html b/docs/interop/_templates/editpage.html
new file mode 100644 (file)
index 0000000..215e562
--- /dev/null
@@ -0,0 +1,5 @@
+<div id="editpage">
+  <ul>
+    <li><a href="https://gitlab.com/qemu-project/qemu/-/blob/master/docs/interop/{{pagename}}.rst">Page source</a></li>
+  </ul>
+</div>
diff --git a/docs/specs/_templates/editpage.html b/docs/specs/_templates/editpage.html
new file mode 100644 (file)
index 0000000..aaa468a
--- /dev/null
@@ -0,0 +1,5 @@
+<div id="editpage">
+  <ul>
+    <li><a href="https://gitlab.com/qemu-project/qemu/-/blob/master/docs/specs/{{pagename}}.rst">Page source</a></li>
+  </ul>
+</div>
diff --git a/docs/system/_templates/editpage.html b/docs/system/_templates/editpage.html
new file mode 100644 (file)
index 0000000..6586b2e
--- /dev/null
@@ -0,0 +1,5 @@
+<div id="editpage">
+  <ul>
+    <li><a href="https://gitlab.com/qemu-project/qemu/-/blob/master/docs/system/{{pagename}}.rst">Page source</a></li>
+  </ul>
+</div>
diff --git a/docs/tools/_templates/editpage.html b/docs/tools/_templates/editpage.html
new file mode 100644 (file)
index 0000000..2a9c8fc
--- /dev/null
@@ -0,0 +1,5 @@
+<div id="editpage">
+  <ul>
+    <li><a href="https://gitlab.com/qemu-project/qemu/-/blob/master/docs/tools/{{pagename}}.rst">Page source</a></li>
+  </ul>
+</div>
diff --git a/docs/user/_templates/editpage.html b/docs/user/_templates/editpage.html
new file mode 100644 (file)
index 0000000..1f5ee01
--- /dev/null
@@ -0,0 +1,5 @@
+<div id="editpage">
+  <ul>
+    <li><a href="https://gitlab.com/qemu-project/qemu/-/blob/master/docs/user/{{pagename}}.rst">Page source</a></li>
+  </ul>
+</div>