1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
Description: Use libjs packages locally to avoid privacy breaches
Author: Alastair McKinstry <mckinstry@debian.org>
Last-Updated: 2026-01-06
Forwarded: not-needed
--- a/ford/templates/base.html
+++ b/ford/templates/base.html
@@ -15,10 +15,7 @@
<title>{% block title %} {{ project }} {% endblock title %}</title>
<!-- Bootstrap -->
- <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"
- integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
- <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
- integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script>
+ <link href="file://usr/share/javascript/bootstrap/js/bootstrap.min.css" rel="stylesheet">
<!-- Font Awesome -->
<link href="{{ project_url }}/css/fontawesome.min.css" rel="stylesheet">
<link href="{{ project_url }}/css/brands.min.css" rel="stylesheet">
@@ -35,8 +32,7 @@
{% if mathjax_config %}
<script src="{{ project_url }}/js/MathJax-config/{{ path.basename(mathjax_config) }}"></script>
{% endif %}
- <script src="https://cdn.jsdelivr.net/npm/mathjax@2.7.9/MathJax.js?config=TeX-AMS-MML_HTMLorMML" async
- integrity="sha256-DViIOMYdwlM/axqoGDPeUyf0urLoHMN4QACBKyB58Uw=" crossorigin="anonymous"></script>
+ <script src="file://usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML" async></script>
<!-- Other scripts and stylesheets -->
<link href="{{ project_url }}/css/local.css" rel="stylesheet">
<link href="{{ project_url }}/css/pygments.css" rel="stylesheet">
--- a/ford/templates/search.html
+++ b/ford/templates/search.html
@@ -13,7 +13,7 @@
</div>
{% if search|lower == 'true' %}
-<script src="https://unpkg.com/lunr/lunr.js"></script>
+<script src="/usr/share/javascript/lunr/lunr.js"></script>
<script src="{{ project_url }}/search/search_database.json"></script>
<script src="{{ project_url }}/search/load_search.js"></script>
{% endif %}
|