ctubbsii commented on PR #423:
URL: https://github.com/apache/accumulo-website/pull/423#issuecomment-2089123761

   I don't think we should do this, as explained above, but if one really 
wanted to add the integrity checks back in, it would be something like:
   
   ```bash
   shopt -s globstar
   algo=sha384 # could replace with sha512
   for x in css/*/**/*.css; do
     echo "<link rel=\"stylesheet\" type=\"text/css\" integrity=\"$algo-$(<$x 
openssl dgst -binary -$algo|openssl base64 -A)\" href=\"{{ site.baseurl 
}}/$x\">"
   done
   for x in js/*/**/*.js; do
     echo "<script type=\"text/javascript\" integrity=\"$algo-$(<$x openssl 
dgst -binary -$algo|openssl base64 -A)\" src=\"{{ site.baseurl 
}}/$x\"></script>"
   done
   ```
   (Note: I'm not sure if the order matters... some resources depend on other 
resources. So, you might not be able to use this output directly, but may have 
to re-order things.)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to