Skip to content

Commit

Permalink
chore: Update site to new URL
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Lilley Brinker <[email protected]>
  • Loading branch information
alilleybrinker committed Dec 5, 2024
1 parent f2284f6 commit 30ed873
Show file tree
Hide file tree
Showing 13 changed files with 34 additions and 24 deletions.
10 changes: 5 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ project adheres to [Semantic Versioning].

## UPCOMING: We Will No Longer Publish to Crates.io starting with 3.8.0

We recently merged [RFD #7, "Simplified Release Procedures"](https://mitre.github.io/hipcheck/rfds/0007/),
We recently merged [RFD #7, "Simplified Release Procedures"](https://hipcheck.mitre.org/docs/rfds/0007/),
which explains that starting with version 3.8.0 (the next minor version), we'll
no longer be publishing Hipcheck itself to Crates.io. The reasons for this are
explained in the RFD, but essentially the need to publish to Crates.io has been
Expand Down Expand Up @@ -169,7 +169,7 @@ to modify Hipcheck itself. This placed some limitations on our ability to grow
Hipcheck, and more importantly it conflicted with a core design philosophy
of Hipcheck: that it should *empower* uses to express their policies about
using open source software (this is one of our Product Values, as expressed in
[RFD #2](https://mitre.github.io/hipcheck/rfds/0002/)).
[RFD #2](https://hipcheck.mitre.org/rfds/0002/)).

With `3.6.1` users can now define custom plugins to provide new sources of
data and new analyses. There's a lot more for us to do with this, including
Expand All @@ -179,7 +179,7 @@ distribute, and use plugins, and more! For now though, this launch is our
official starting point where users _can_ create, distribute, and run plugins.

For more details on the design of the new plugin system, check out
[RFD #4](https://mitre.github.io/hipcheck/rfds/0004/). If you have questions
[RFD #4](https://hipcheck.mitre.org/rfds/0004/). If you have questions
on how to work with plugins, you can always ask us in our [GitHub Discussions
forum](https://github.com/mitre/hipcheck/discussions)!

Expand Down Expand Up @@ -309,7 +309,7 @@ And finally, many dependency version bumps:
__Full Changelog__: <https://github.com/mitre/hipcheck/compare/hipcheck-v3.5.0...hipcheck-v3.6.0>

[3.6.0]: https://github.com/mitre/hipcheck/compare/hipcheck-v3.5.0..hipcheck-v3.6.0
[rfd_4]: https://mitre.github.io/hipcheck/rfds/0004/
[rfd_4]: https://hipcheck.mitre.org/rfds/0004/

## [3.5.0] - 2024-08-05

Expand Down Expand Up @@ -423,7 +423,7 @@ Hipcheck 3.4.0 is an exciting release featuring 3 new subcommands!
out exactly how much each analysis contributes to the overall score. This
command does that math for you to make it easier.

Hipcheck also now has an [official website](https://mitre.github.io/hipcheck)!
Hipcheck also now has an [official website](https://hipcheck.mitre.org)!
Feel free to check it out, and let us know if you encounter any issues with it.

### Added
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ found in the [`LICENSE`](LICENSE) file in this repository.
> (FEB 2014)][dfars].
[dfars]: https://www.acquisition.gov/dfars/252.227-7014-rights-other-commercial-computer-software-and-other-commercial-computer-software-documentation.
[quickstart]: https://mitre.github.io/hipcheck/docs/getting-started/first-run/
[install]: https://mitre.github.io/hipcheck/docs/getting-started/install/
[quickstart]: https://hipcheck.mitre.org/docs/getting-started/first-run/
[install]: https://hipcheck.mitre.org/docs/getting-started/install/
[license]: https://github.com/mitre/hipcheck/blob/main/LICENSE
[release]: https://github.com/mitre/hipcheck/releases/latest
[rfd_2]: https://mitre.github.io/hipcheck/docs/rfds/0002/
[website]: https://mitre.github.io/hipcheck
[rfd_2]: https://hipcheck.mitre.org/docs/rfds/0002/
[website]: https://hipcheck.mitre.org
7 changes: 3 additions & 4 deletions dist/dockerhub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,13 @@ Hipcheck currently provides images for the following architectures:

## Helpful Links

* [Website](https://mitre.github.io/hipcheck)
* [Quickstart Guide](https://mitre.github.io/hipcheck/docs/quickstart/)
* [Complete Guide](https://mitre.github.io/hipcheck/docs/guide/)
* [Website](https://hipcheck.mitre.org)
* [Quickstart Guide](https://hipcheck.mitre.org/docs/quickstart/)
* [Complete Guide](https://hipcheck.mitre.org/docs/guide/)
* [Github](https://github.com/mitre/hipcheck)
* [Report an Issue](https://github.com/mitre/hipcheck/issues/new)

## License

Hipcheck's software is licensed under the Apache 2.0 license, which can be
found [here](https://github.com/mitre/hipcheck/blob/main/LICENSE)

2 changes: 1 addition & 1 deletion hipcheck/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ readme = "../README.md"
version = "3.7.0"
edition = "2021"
license = "Apache-2.0"
homepage = "https://mitre.github.io/hipcheck"
homepage = "https://hipcheck.mitre.org"
repository = "https://github.com/mitre/hipcheck"
include = ["src/**", "../LICENSE", "../README.md", "build.rs", "proto/**"]

Expand Down
2 changes: 1 addition & 1 deletion site/config.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# The URL of the side.
base_url = "https://mitre.github.io/hipcheck"
base_url = "https://hipcheck.mitre.org"

# Generate an Atom feed for the blog.
generate_feeds = true
Expand Down
2 changes: 1 addition & 1 deletion site/content/docs/rfds/0004-plugin-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1030,6 +1030,6 @@ architectures.
[cargo_semver]: https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#version-requirement-syntax
[rust_platforms]: https://doc.rust-lang.org/beta/rustc/platform-support.html
[gRPC]: https://grpc.io/
[hipcheck_scoring]: https://mitre.github.io/hipcheck/docs/guide/concepts/#scoring
[hipcheck_scoring]: https://hipcheck.mitre.org/docs/guide/concepts/#scoring
[rfd_3]: ./003-plugin-architecture-vision.md
[grpc]: https://grpc.io/
2 changes: 1 addition & 1 deletion site/content/docs/rfds/0006-rust-plugin-sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,4 +326,4 @@ Where `InputType` and `OutputType` are types defined by the user of the SDK
which implement the `schemars::JsonSchema` trait. This macro could generate
a `DoThing` type implementing `Query`.

[RFD 4]: https://mitre.github.io/hipcheck/rfds/0004/
[RFD 4]: https://hipcheck.mitre.org/rfds/0004/
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
---
title: "Policy Expression Typing"
weight: 8
slug: 0008
extra:
rfd: 8
primary_author: Julian Lanson
primary_author_link: https://github.com/j-lanson
status: Accepted
---

## The Current Situation
Expand Down
3 changes: 3 additions & 0 deletions site/content/docs/rfds/0009-batch-queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ weight: 9
slug: 0009
extra:
rfd: 9
primary_author: Julian Lanson
primary_author_link: https://github.com/j-lanson
status: Accepted
---

# Batched Plugin Queries
Expand Down
3 changes: 3 additions & 0 deletions site/content/docs/rfds/0010-submit-chunking.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ weight: 10
slug: 0010
extra:
rfd: 10
primary_author: Julian Lanson
primary_author_link: https://github.com/j-lanson
status: Accepted
---

# Submit Chunking
Expand Down
4 changes: 1 addition & 3 deletions site/scripts/src/footer/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ function installerForPlatform(platform: string | undefined): string {
function resolve_host(): string {
const protocol = globalThis.window.location.protocol;
const host = globalThis.window.location.host;
// If we're on GitHub Pages, append the `/hipcheck` path.
const amendedHost = (host === "mitre.github.io") ? `${host}/hipcheck` : host;
return `${protocol}//${amendedHost}`;
return `${protocol}//${host}`;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion site/static/js/footer.mjs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
function g(e,t,o){let r=z(e).replace(`#icon-${t}`,`#icon-${o}`);V(e,r)}function z(e){let t=e.getAttributeNS(R,"href");if(t===null)throw new S;return t}function V(e,t){e.setAttributeNS(R,"href",t)}var R="http://www.w3.org/1999/xlink",S=class extends Error{constructor(){super("could not find copy icon")}};function a(e){let t=document.querySelector(e);if(t===null)throw new k(`could not find ${e}`);return t}function m(e){let t=document.querySelectorAll(e);if(t===null)throw new k(`could not find all '${e}'`);return Array.from(t)}function D(e){navigator.clipboard.writeText(e).then(null,t=>{throw new H(t)})}var H=class extends Error{constructor(t){super(`clipboard copy rejected: '${t}'`)}},k=class extends Error{constructor(t){super(t)}};function $(){let e;try{e=m(".docs-nav-toggle")}catch{return}e.forEach(t=>{let o=t.querySelector(".toggle-icon use");if(o===null){console.log(`no icon found for toggle: '${t}'`);return}t.addEventListener("click",s=>{s.preventDefault();let r=t.parentElement?.parentElement;if(r==null)return;let l=r.querySelector(".docs-nav-section");l!==null&&(l.classList.toggle("hidden"),Y(l)?g(o,"chevron-right","chevron-down"):g(o,"chevron-down","chevron-right"))})})}function Y(e){return e.classList.contains("hidden")}function P(){let e,t,o,s;try{e=m(".installer-button"),t=a("#installer-cmd"),o=a("#installer-copy"),s=a("#installer-copy > svg > use")}catch{return}e.forEach(r=>{r.addEventListener("click",l=>{l.preventDefault(),e.forEach(n=>delete n.dataset.active),r.dataset.active="true",t.innerText=N(r.dataset.platform)}),r.dataset.active&&r.dataset.active==="true"&&(t.innerText=N(r.dataset.platform))}),o.addEventListener("click",r=>{r.preventDefault(),D(t.innerText),g(s,"clipboard","check"),setTimeout(()=>g(s,"check","clipboard"),1500)})}function N(e){if(e===void 0)throw new x(e);let t=J();switch(e){case"macos":return K(t);case"linux":return K(t);case"windows":return Z(t);default:throw new x(e)}}function J(){let e=globalThis.window.location.protocol,t=globalThis.window.location.host,o=t==="mitre.github.io"?`${t}/hipcheck`:t;return`${e}//${o}`}function K(e){return`curl -LsSf ${e}/dl/install.sh | sh`}function Z(e){return`irm ${e}/dl/install.ps1 | iex`}var x=class extends Error{constructor(t){super(`could not determine platform: '${t||"undefined"}'`)}};function W(){m('a[href^="#"]').forEach(e=>{e.addEventListener("click",t=>{if(t.preventDefault(),t.currentTarget===null)return;let o=t.currentTarget.getAttribute("href");if(o===null)return;let r=a(o).getBoundingClientRect().top,l=globalThis.window.scrollY,n=r+l;globalThis.window.scrollTo({top:n,behavior:"smooth"})})})}function q(e,t){let o;return(...s)=>{clearTimeout(o),o=setTimeout(()=>t(...s),e)}}function Q(e){let t=Object.entries(e).filter(([o,s])=>s!==void 0);return Object.fromEntries(t)}function p(e,t={},o={},s=[]){let r=document.createElement(e);Object.assign(r,Q(t)),o.classList&&o.classList.forEach(n=>r.classList.add(n)),o.dataset&&Object.entries(o.dataset).filter(([n,d])=>d!==void 0).forEach(([n,d])=>r.dataset[n]=d);let l=s.map(n=>typeof n=="string"?document.createTextNode(n):n);return r.append(...l),r}function O(){let e=a("#search-button"),t=a("#search-modal"),o=a("#search-modal-close"),s=a("#search-modal-shroud"),r=a("#search-modal-box"),l=a("#search-input");e.addEventListener("click",n=>I(n,t,l)),s.addEventListener("click",n=>I(n,t,l)),o.addEventListener("click",n=>I(n,t,l)),r.addEventListener("click",n=>n.stopPropagation()),document.addEventListener("keydown",n=>{if(n.metaKey===!0&&n.shiftKey===!1&&n.key==="k"){n.preventDefault(),e.click();return}if(C(t))switch(n.key){case"Escape":n.preventDefault(),s.click();return;case"ArrowDown":break;case"ArrowUp":break;default:break}})}function I(e,t,o){e.preventDefault(),t.classList.toggle("hidden"),C(t)&&o.focus()}function C(e){return!e.classList.contains("hidden")}var ee="/search_index.en.json",te=6;function F(){let e=a("#search-input"),t=a("#search-results"),o=a("#search-results-items"),s,r="",l=async function(){return s===void 0&&(s=fetch(ee).then(async function(n){return await elasticlunr.Index.load(await n.json())})),await s};e.addEventListener("keyup",q(150,async function(){let n=e.value.trim();if(n===r||(t.style.display=n===""?"none":"block",o.innerHTML="",r=n,r===""))return;let d=(await l()).search(n,{bool:"AND",fields:{title:{boost:2},body:{boost:1}}});if(d.length===0){t.style.display="none";return}for(let f=0;f<Math.min(d.length,te);++f){let u=ne(d[f],r.split(" "));o.appendChild(u)}}))}function ne(e,t){return p("li",{},{classList:["border-t","border-neutral-300","dark:border-neutral-500"]},[p("div",{},{},[p("a",{href:e.ref},{classList:["block","px-5","py-2","hover:bg-blue-50","dark:hover:bg-blue-500","hover:text-blue-500","dark:hover:text-white","group"]},[p("span",{},{classList:["block","text-base","mb-1","font-medium"]},[e.doc.title]),p("span",{},{classList:["block","text-neutral-500","text-sm","group-hover:text-blue-500"]},[re(e.doc.body,t)])])])])}function re(e,t){let n=t.map(function(c){return elasticlunr.stemmer(c.toLowerCase())}),d=!1,f=0,u=[],A=e.toLowerCase().split(". ");for(let c in A){let i=A[c].split(" "),v=8;for(let X in i){let L=i[X];if(L.length>0){for(let B in n)elasticlunr.stemmer(L).startsWith(n[B])&&(v=40,d=!0);u.push([L,v,f]),v=2}f+=L.length,f+=1}f+=1}if(u.length===0){let c=e,i=p("span",{},{},[]);return i.innerHTML=c,i}let E=[],y=Math.min(u.length,15),T=0;for(let c=0;c<y;c++)T+=u[c][1];E.push(T);for(let c=0;c<u.length-y;c++)T-=u[c][1],T+=u[c+y][1],E.push(T);let b=0;if(d){let c=0;for(let i=E.length-1;i>=0;i--)E[i]>c&&(c=E[i],b=i)}let h=[],w=u[b][2];for(let c=b;c<b+y;c++){let i=u[c];w<i[2]&&(h.push(e.substring(w,i[2])),w=i[2]),i[1]===40&&h.push("<b>"),w=i[2]+i[0].length,h.push(e.substring(i[2],w)),i[1]===40&&h.push("</b>")}h.push("\u2026");let U=h.join(""),_=p("span",{},{},[]);return _.innerHTML=U,_}function j(e){if(e===void 0)throw new M(e);switch(e){case"system":switch(localStorage.removeItem("theme"),se()){case"dark":document.documentElement.classList.add("dark");break;case"light":document.documentElement.classList.remove("dark");break}break;case"light":localStorage.setItem("theme",e),document.documentElement.classList.remove("dark");break;case"dark":localStorage.setItem("theme",e),document.documentElement.classList.add("dark");break;default:throw new M(e)}oe(e)}function oe(e){m(".theme-option").forEach(t=>{t.dataset.theme===e?t.dataset.active="true":delete t.dataset.active})}function se(){return globalThis.window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}var M=class extends Error{constructor(t){super(`could not determine theme: '${t||"undefined"}'`)}};function G(){m(".theme-option").forEach(e=>{e.addEventListener("click",t=>{t.preventDefault(),j(e.dataset.theme)})})}function ce(){G(),P(),O(),F(),W(),$()}(function(){try{ce()}catch(e){console.error(e)}})();
function g(e,t,o){let r=z(e).replace(`#icon-${t}`,`#icon-${o}`);V(e,r)}function z(e){let t=e.getAttributeNS(R,"href");if(t===null)throw new S;return t}function V(e,t){e.setAttributeNS(R,"href",t)}var R="http://www.w3.org/1999/xlink",S=class extends Error{constructor(){super("could not find copy icon")}};function a(e){let t=document.querySelector(e);if(t===null)throw new x(`could not find ${e}`);return t}function m(e){let t=document.querySelectorAll(e);if(t===null)throw new x(`could not find all '${e}'`);return Array.from(t)}function D(e){navigator.clipboard.writeText(e).then(null,t=>{throw new I(t)})}var I=class extends Error{constructor(t){super(`clipboard copy rejected: '${t}'`)}},x=class extends Error{constructor(t){super(t)}};function $(){let e;try{e=m(".docs-nav-toggle")}catch{return}e.forEach(t=>{let o=t.querySelector(".toggle-icon use");if(o===null){console.log(`no icon found for toggle: '${t}'`);return}t.addEventListener("click",s=>{s.preventDefault();let r=t.parentElement?.parentElement;if(r==null)return;let l=r.querySelector(".docs-nav-section");l!==null&&(l.classList.toggle("hidden"),Y(l)?g(o,"chevron-right","chevron-down"):g(o,"chevron-down","chevron-right"))})})}function Y(e){return e.classList.contains("hidden")}function P(){let e,t,o,s;try{e=m(".installer-button"),t=a("#installer-cmd"),o=a("#installer-copy"),s=a("#installer-copy > svg > use")}catch{return}e.forEach(r=>{r.addEventListener("click",l=>{l.preventDefault(),e.forEach(n=>delete n.dataset.active),r.dataset.active="true",t.innerText=N(r.dataset.platform)}),r.dataset.active&&r.dataset.active==="true"&&(t.innerText=N(r.dataset.platform))}),o.addEventListener("click",r=>{r.preventDefault(),D(t.innerText),g(s,"clipboard","check"),setTimeout(()=>g(s,"check","clipboard"),1500)})}function N(e){if(e===void 0)throw new k(e);let t=J();switch(e){case"macos":return K(t);case"linux":return K(t);case"windows":return Z(t);default:throw new k(e)}}function J(){let e=globalThis.window.location.protocol,t=globalThis.window.location.host;return`${e}//${t}`}function K(e){return`curl -LsSf ${e}/dl/install.sh | sh`}function Z(e){return`irm ${e}/dl/install.ps1 | iex`}var k=class extends Error{constructor(t){super(`could not determine platform: '${t||"undefined"}'`)}};function W(){m('a[href^="#"]').forEach(e=>{e.addEventListener("click",t=>{if(t.preventDefault(),t.currentTarget===null)return;let o=t.currentTarget.getAttribute("href");if(o===null)return;let r=a(o).getBoundingClientRect().top,l=globalThis.window.scrollY,n=r+l;globalThis.window.scrollTo({top:n,behavior:"smooth"})})})}function q(e,t){let o;return(...s)=>{clearTimeout(o),o=setTimeout(()=>t(...s),e)}}function Q(e){let t=Object.entries(e).filter(([o,s])=>s!==void 0);return Object.fromEntries(t)}function p(e,t={},o={},s=[]){let r=document.createElement(e);Object.assign(r,Q(t)),o.classList&&o.classList.forEach(n=>r.classList.add(n)),o.dataset&&Object.entries(o.dataset).filter(([n,d])=>d!==void 0).forEach(([n,d])=>r.dataset[n]=d);let l=s.map(n=>typeof n=="string"?document.createTextNode(n):n);return r.append(...l),r}function O(){let e=a("#search-button"),t=a("#search-modal"),o=a("#search-modal-close"),s=a("#search-modal-shroud"),r=a("#search-modal-box"),l=a("#search-input");e.addEventListener("click",n=>H(n,t,l)),s.addEventListener("click",n=>H(n,t,l)),o.addEventListener("click",n=>H(n,t,l)),r.addEventListener("click",n=>n.stopPropagation()),document.addEventListener("keydown",n=>{if(n.metaKey===!0&&n.shiftKey===!1&&n.key==="k"){n.preventDefault(),e.click();return}if(C(t))switch(n.key){case"Escape":n.preventDefault(),s.click();return;case"ArrowDown":break;case"ArrowUp":break;default:break}})}function H(e,t,o){e.preventDefault(),t.classList.toggle("hidden"),C(t)&&o.focus()}function C(e){return!e.classList.contains("hidden")}var ee="/search_index.en.json",te=6;function F(){let e=a("#search-input"),t=a("#search-results"),o=a("#search-results-items"),s,r="",l=async function(){return s===void 0&&(s=fetch(ee).then(async function(n){return await elasticlunr.Index.load(await n.json())})),await s};e.addEventListener("keyup",q(150,async function(){let n=e.value.trim();if(n===r||(t.style.display=n===""?"none":"block",o.innerHTML="",r=n,r===""))return;let d=(await l()).search(n,{bool:"AND",fields:{title:{boost:2},body:{boost:1}}});if(d.length===0){t.style.display="none";return}for(let f=0;f<Math.min(d.length,te);++f){let u=ne(d[f],r.split(" "));o.appendChild(u)}}))}function ne(e,t){return p("li",{},{classList:["border-t","border-neutral-300","dark:border-neutral-500"]},[p("div",{},{},[p("a",{href:e.ref},{classList:["block","px-5","py-2","hover:bg-blue-50","dark:hover:bg-blue-500","hover:text-blue-500","dark:hover:text-white","group"]},[p("span",{},{classList:["block","text-base","mb-1","font-medium"]},[e.doc.title]),p("span",{},{classList:["block","text-neutral-500","text-sm","group-hover:text-blue-500"]},[re(e.doc.body,t)])])])])}function re(e,t){let n=t.map(function(c){return elasticlunr.stemmer(c.toLowerCase())}),d=!1,f=0,u=[],A=e.toLowerCase().split(". ");for(let c in A){let i=A[c].split(" "),v=8;for(let X in i){let b=i[X];if(b.length>0){for(let B in n)elasticlunr.stemmer(b).startsWith(n[B])&&(v=40,d=!0);u.push([b,v,f]),v=2}f+=b.length,f+=1}f+=1}if(u.length===0){let c=e,i=p("span",{},{},[]);return i.innerHTML=c,i}let E=[],y=Math.min(u.length,15),T=0;for(let c=0;c<y;c++)T+=u[c][1];E.push(T);for(let c=0;c<u.length-y;c++)T-=u[c][1],T+=u[c+y][1],E.push(T);let L=0;if(d){let c=0;for(let i=E.length-1;i>=0;i--)E[i]>c&&(c=E[i],L=i)}let h=[],w=u[L][2];for(let c=L;c<L+y;c++){let i=u[c];w<i[2]&&(h.push(e.substring(w,i[2])),w=i[2]),i[1]===40&&h.push("<b>"),w=i[2]+i[0].length,h.push(e.substring(i[2],w)),i[1]===40&&h.push("</b>")}h.push("\u2026");let U=h.join(""),_=p("span",{},{},[]);return _.innerHTML=U,_}function j(e){if(e===void 0)throw new M(e);switch(e){case"system":switch(localStorage.removeItem("theme"),se()){case"dark":document.documentElement.classList.add("dark");break;case"light":document.documentElement.classList.remove("dark");break}break;case"light":localStorage.setItem("theme",e),document.documentElement.classList.remove("dark");break;case"dark":localStorage.setItem("theme",e),document.documentElement.classList.add("dark");break;default:throw new M(e)}oe(e)}function oe(e){m(".theme-option").forEach(t=>{t.dataset.theme===e?t.dataset.active="true":delete t.dataset.active})}function se(){return globalThis.window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}var M=class extends Error{constructor(t){super(`could not determine theme: '${t||"undefined"}'`)}};function G(){m(".theme-option").forEach(e=>{e.addEventListener("click",t=>{t.preventDefault(),j(e.dataset.theme)})})}function ce(){G(),P(),O(),F(),W(),$()}(function(){try{ce()}catch(e){console.error(e)}})();
//# sourceMappingURL=footer.mjs.map
Loading

0 comments on commit 30ed873

Please sign in to comment.