[PATCH] docs: Remove dependency on external resources

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The internals/eventloop document uses two images for
illustrative purposes, but unlike other graphics included
in the documentation these are not part of libvirt.git but
rather were added to libvirt-media.git with

  commit fae5622074cf5e18d190496f8a43260c614599b2
  Author: Michal Privoznik <mprivozn@xxxxxxxxxx>
  Date:   Mon Jun 6 17:27:50 2016 +0200

    Add two event loop images

    These images are going to be used in our documentation of the
    event loop.

    Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>

  https://gitlab.com/libvirt/libvirt-media/-/commit/fae5622074cf5e18d190496f8a43260c614599b2

and are requested directly from there. Specifically, the
URLs point to the libvirt.org mirror of libvirt-media.git
instead of the primary repository hosted on GitLab.

Import the images into libvirt.git so that the website
doesn't rely on external resources and can, if desired, be
browsed entirely offline from installed packages.

Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
---
Redacted to strip binary and binary-adjacent blobs.
Full patch: https://gitlab.com/abologna/libvirt/-/commit/684805e3cf65ab3bb93a92ada3b720331fae72ce

 docs/event_loop_simple.png       | Bin 0 -> 16043 bytes
 docs/event_loop_simple.svg       | 398 +++++++++++++++++
 docs/event_loop_worker.png       | Bin 0 -> 29696 bytes
 docs/event_loop_worker.svg       | 708 +++++++++++++++++++++++++++++++
 docs/internals/eventloop.html.in |   4 +-
 docs/meson.build                 |   2 +
 6 files changed, 1110 insertions(+), 2 deletions(-)
 create mode 100644 docs/event_loop_simple.png
 create mode 100644 docs/event_loop_simple.svg
 create mode 100644 docs/event_loop_worker.png
 create mode 100644 docs/event_loop_worker.svg

diff --git a/docs/event_loop_simple.png b/docs/event_loop_simple.png
new file mode 100644
index 0000000000000000000000000000000000000000..daf4338a16bc1051aca0ca1c7ea13baa4e7179f1
[... PNG stuff here ...]
diff --git a/docs/event_loop_simple.svg b/docs/event_loop_simple.svg
new file mode 100644
index 0000000000..be25005002
[... SVG stuff here ...]
diff --git a/docs/event_loop_worker.png b/docs/event_loop_worker.png
new file mode 100644
index 0000000000000000000000000000000000000000..1bec1ea598b2806fea24ab25dc825c9055c76ee6
[... PNG stuff here ...]
diff --git a/docs/event_loop_worker.svg b/docs/event_loop_worker.svg
new file mode 100644
index 0000000000..d824e2d585
[... SVG stuff here ...]
diff --git a/docs/internals/eventloop.html.in b/docs/internals/eventloop.html.in
index 3e62d5ca53..aa22ba15cd 100644
--- a/docs/internals/eventloop.html.in
+++ b/docs/internals/eventloop.html.in
@@ -29,7 +29,7 @@
     not waiting for direct user input and have no graphical
     interface. Such as Libvirt.</p>
 
-    <img alt="event loop" src="https://libvirt.org/git/?p=libvirt-media.git;a=blob_plain;f=png/event_loop_simple.png;hb=HEAD"/>
+    <img alt="event loop" src="../event_loop_simple.png"/>
 
     <p>In Libvirt this approach is used in combination with
     <code>poll(2)</code> as all the communication with its
@@ -70,7 +70,7 @@
     acceptable for Libvirt. Therefore we have came up with the
     following solution.</p>
 
-    <img alt="event loop" src="https://libvirt.org/git/?p=libvirt-media.git;a=blob_plain;f=png/event_loop_worker.png;hb=HEAD"/>
+    <img alt="event loop" src="../event_loop_worker.png"/>
 
     <p>The event loop does only necessary minimum and hand over
     message processing to another thread. In fact, there can be
diff --git a/docs/meson.build b/docs/meson.build
index 3aabb52950..3e708acf0e 100644
--- a/docs/meson.build
+++ b/docs/meson.build
@@ -10,6 +10,8 @@ docs_assets = [
   'android-chrome-256x256.png',
   'apple-touch-icon.png',
   'browserconfig.xml',
+  'event_loop_simple.png',
+  'event_loop_worker.png',
   'favicon.ico',
   'favicon-16x16.png',
   'favicon-32x32.png',
-- 
2.31.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux