Skip to content

Commit 8a8d717

Browse files
committed
Update site to comply with ASF privacy site checks
See https://whimsy.apache.org/site/project/accumulo * Add link to ASF privacy policy in ASF links section of navigation * Stop linking to external CDNs for our default page layout. Instead, copy the resources, so they are hosted by our site. We don't really need the integrity checks to verify the downloads from CDN sites anymore. It adds no security since we're hosting them on the same service that would provide the checksum (same security domain for users to trust), and removing them alleviates the browser from that unnecessary work. * Standardize how resources are specified, so they are more consistent and easier to update, including converting the embedded `<script>` from `_includes/scripts.html`, which contained our own custom scripts for our site, into its own `.js` file. * Include free web fonts from fontawesome project, so the css can link to the ones we're hosting (downloaded from https://fontawesome.com/download, specifically https://use.fontawesome.com/releases/v6.4.2/fontawesome-free-6.4.2-web.zip) This fixes #420
1 parent 099673a commit 8a8d717

File tree

19 files changed

+269
-36
lines changed

19 files changed

+269
-36
lines changed

_includes/nav.html

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
<li><a class="dropdown-item" href="https://www.apache.org/security">Security <span class="fa-solid fa-up-right-from-square"></span></a></li>
5757
<li><a class="dropdown-item" href="https://www.apache.org/foundation/thanks">Thanks <span class="fa-solid fa-up-right-from-square"></span></a></li>
5858
<li><a class="dropdown-item" href="https://www.apache.org/foundation/policies/conduct">Code of Conduct <span class="fa-solid fa-up-right-from-square"></span></a></li>
59+
<li><a class="dropdown-item" href="https://www.apache.org/foundation/policies/privacy.html">Privacy Policy<span class="fa-solid fa-up-right-from-square"></span></a></li>
5960
<li><a class="dropdown-item" href="https://www.apache.org/events/current-event.html">Current Event <span class="fa-solid fa-up-right-from-square"></span></a></li>
6061
</ul>
6162
</li>

_includes/scripts.html

-28
This file was deleted.

_layouts/default.html

+9-8
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,19 @@
2020
<meta charset="utf-8">
2121
<meta http-equiv="X-UA-Compatible" content="IE=edge">
2222
<meta name="viewport" content="width=device-width, initial-scale=1">
23-
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9" crossorigin="anonymous">
24-
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" rel="stylesheet">
25-
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/bs5/dt-1.13.6/datatables.min.css">
26-
<link href="{{ site.baseurl }}/css/accumulo.css" rel="stylesheet" type="text/css">
23+
24+
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/css/bootstrap/5.3.1/dist/css/bootstrap.min.css">
25+
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/css/fontawesome/fontawesome/fontawesome-free-6.4.2-web/css/all.min.css">
26+
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/css/datatables/bs5/dt-1.13.6/datatables.min.css">
27+
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/css/accumulo.css">
2728

2829
<title>{% if page.title_prefix %}{{ page.title_prefix | escape }}{% endif %}{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
2930

30-
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.0/jquery.min.js" integrity="sha256-2Pmvv0kuTBOenSvLm6bvfBSSHrUJ+3A7x6P5Ebd07/g=" crossorigin="anonymous"></script>
31-
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm" crossorigin="anonymous"></script>
32-
<script type="text/javascript" src="https://cdn.datatables.net/v/bs5/dt-1.13.6/datatables.min.js"></script>
31+
<script type="text/javascript" src="{{ site.baseurl }}/js/jquery/3.7.0/jquery.min.js"></script>
32+
<script type="text/javascript" src="{{ site.baseurl }}/js/bootstrap/5.3.1/dist/js/bootstrap.bundle.min.js"></script>
33+
<script type="text/javascript" src="{{ site.baseurl }}/js/datatables/bs5/dt-1.13.6/datatables.min.js"></script>
3334
<script type="text/javascript" src="https://www.apachecon.com/event-images/snippet.js"></script>
34-
{% include scripts.html %}
35+
<script type="text/javascript" src="{{ site.baseurl }}/js/accumulo.js"></script>
3536
</head>
3637
<body style="padding-top: 100px">
3738

css/bootstrap/5.3.1/dist/css/bootstrap.min.css

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/datatables/bs5/dt-1.13.6/datatables.min.css

+19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)