Skip to content

Commit

Permalink
Update site to comply with ASF privacy site checks
Browse files Browse the repository at this point in the history
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.

This fixes #420
  • Loading branch information
ctubbsii committed May 1, 2024
1 parent 099673a commit 806fe05
Show file tree
Hide file tree
Showing 10 changed files with 104 additions and 36 deletions.
1 change: 1 addition & 0 deletions _includes/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
<li><a class="dropdown-item" href="https://www.apache.org/security">Security <span class="fa-solid fa-up-right-from-square"></span></a></li>
<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>
<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>
<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>
<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>
</ul>
</li>
Expand Down
28 changes: 0 additions & 28 deletions _includes/scripts.html

This file was deleted.

17 changes: 9 additions & 8 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,19 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<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">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/bs5/dt-1.13.6/datatables.min.css">
<link href="{{ site.baseurl }}/css/accumulo.css" rel="stylesheet" type="text/css">

<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/css/bootstrap/5.3.1/dist/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/css/font-awesome/6.4.2/css/all.min.css">
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/css/datatables/bs5/dt-1.13.6/datatables.min.css">
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/css/accumulo.css">

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

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

Expand Down
6 changes: 6 additions & 0 deletions css/bootstrap/5.3.1/dist/css/bootstrap.min.css

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions css/datatables/bs5/dt-1.13.6/datatables.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 806fe05

Please sign in to comment.