From: Carsten Schoenert <c.schoenert@t-online.de>
Date: Sun, 28 Jul 2024 14:54:36 +0900
Subject: docs: Use local referenced files for vega

We don't want to use pulled in files from an external CDN, this required
adaptions within the RST source files.

Forwarded: not-needed
---
 docs/benchmarks.rst              | 7 ++++---
 docs/examples/conda-repodata.rst | 7 ++++---
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/docs/benchmarks.rst b/docs/benchmarks.rst
index 34d41ca..888f3c7 100644
--- a/docs/benchmarks.rst
+++ b/docs/benchmarks.rst
@@ -359,9 +359,10 @@ smaller on disk.
 
 .. raw:: html
 
-    <script src="https://cdn.jsdelivr.net/npm/vega@5.22.1"></script>
-    <script src="https://cdn.jsdelivr.net/npm/vega-lite@5.5.0"></script>
-    <script src="https://cdn.jsdelivr.net/npm/vega-embed@6.21.0"></script>
+    <!-- needs package libjs-vega -->
+    <script src="file:///usr/share/javascript/vega/vega.min.js"></script>
+    <script src="file:///usr/share/doc/python-msgspec-doc/html/vega-lite.min.js"></script>
+    <script src="file:///usr/share/doc/python-msgspec-doc/html/vega-embed.min.js"></script>
 
 .. raw:: html
 
diff --git a/docs/examples/conda-repodata.rst b/docs/examples/conda-repodata.rst
index 6651c4c..ad80e3d 100644
--- a/docs/examples/conda-repodata.rst
+++ b/docs/examples/conda-repodata.rst
@@ -71,9 +71,10 @@ The full example source can be found `here
 
 .. raw:: html
 
-    <script src="https://cdn.jsdelivr.net/npm/vega@5.22.1"></script>
-    <script src="https://cdn.jsdelivr.net/npm/vega-lite@5.5.0"></script>
-    <script src="https://cdn.jsdelivr.net/npm/vega-embed@6.21.0"></script>
+    +    <!-- needs package libjs-vega -->
+    <script src="file:///usr/share/javascript/vega/vega.min.js"></script>
+    <script src="file:///usr/share/doc/python-msgspec-doc/html/vega-lite.min.js"></script>
+    <script src="file:///usr/share/doc/python-msgspec-doc/html/vega-embed.min.js"></script>
     <script type="text/javascript">
     var spec = {
         "$schema": "https://vega.github.io/schema/vega-lite/v5.json",
