From f779d6177cf9da3ac412b92de4595cae24fb0159 Mon Sep 17 00:00:00 2001 From: Ranbel Sun Date: Mon, 14 Oct 2024 14:28:25 -0400 Subject: [PATCH 1/3] Update minimum MTU --- .../partials/cloudflare-one/warp/system-requirements/linux.mdx | 3 ++- .../partials/cloudflare-one/warp/system-requirements/macOS.mdx | 3 ++- .../cloudflare-one/warp/system-requirements/windows.mdx | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/content/partials/cloudflare-one/warp/system-requirements/linux.mdx b/src/content/partials/cloudflare-one/warp/system-requirements/linux.mdx index f7fbda12ec70a4d..45cda33508565cd 100644 --- a/src/content/partials/cloudflare-one/warp/system-requirements/linux.mdx +++ b/src/content/partials/cloudflare-one/warp/system-requirements/linux.mdx @@ -9,4 +9,5 @@ | **OS type** | 64-bit only | | **HD space** | 75 MB | | **Memory** | 35 MB | -| **Network interface** |
  • WIFI or LAN
  • MTU ≥ 1280 bytes
  • | +| **Network interface type** | WIFI or LAN | +| **Minimum MTU** |
    WireGuard MASQUE
    IPv4 1340 bytes 1330 bytes
    IPv6 1360 bytes 1350 bytes
    | \ No newline at end of file diff --git a/src/content/partials/cloudflare-one/warp/system-requirements/macOS.mdx b/src/content/partials/cloudflare-one/warp/system-requirements/macOS.mdx index 5c57d14df515bd6..a6766a962c9c7a1 100644 --- a/src/content/partials/cloudflare-one/warp/system-requirements/macOS.mdx +++ b/src/content/partials/cloudflare-one/warp/system-requirements/macOS.mdx @@ -9,4 +9,5 @@ | **OS type** | 64-bit only | | **HD space** | 75 MB | | **Memory** | 35 MB | -| **Network interface** |
  • WIFI or LAN
  • MTU ≥ 1280 bytes
  • | +| **Network interface type** | WIFI or LAN | +| **Minimum MTU** |
    WireGuard MASQUE
    IPv4 1340 bytes 1330 bytes
    IPv6 1360 bytes 1350 bytes
    | diff --git a/src/content/partials/cloudflare-one/warp/system-requirements/windows.mdx b/src/content/partials/cloudflare-one/warp/system-requirements/windows.mdx index 33d07e436d55d8f..c40fd88420ed03a 100644 --- a/src/content/partials/cloudflare-one/warp/system-requirements/windows.mdx +++ b/src/content/partials/cloudflare-one/warp/system-requirements/windows.mdx @@ -10,4 +10,5 @@ | **.NET Framework version** | 4.7.2 or later | | **HD space** | 184 MB | | **Memory** | 3 MB | -| **Network interface** |
  • WIFI or LAN
  • MTU ≥ 1280 bytes
  • | +| **Network interface type** | WIFI or LAN | +| **Minimum MTU** |
    WireGuard MASQUE
    IPv4 1340 bytes 1330 bytes
    IPv6 1360 bytes 1350 bytes
    | From fb726abd5ae168319787c554782874732bc41ead Mon Sep 17 00:00:00 2001 From: Ranbel Sun Date: Mon, 21 Oct 2024 11:42:58 -0400 Subject: [PATCH 2/3] move content to footnote --- .../cloudflare-one/warp/system-requirements/linux.mdx | 4 +++- .../cloudflare-one/warp/system-requirements/macOS.mdx | 4 +++- .../cloudflare-one/warp/system-requirements/windows.mdx | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/content/partials/cloudflare-one/warp/system-requirements/linux.mdx b/src/content/partials/cloudflare-one/warp/system-requirements/linux.mdx index 45cda33508565cd..e1ccd3d51fef1c0 100644 --- a/src/content/partials/cloudflare-one/warp/system-requirements/linux.mdx +++ b/src/content/partials/cloudflare-one/warp/system-requirements/linux.mdx @@ -10,4 +10,6 @@ | **HD space** | 75 MB | | **Memory** | 35 MB | | **Network interface type** | WIFI or LAN | -| **Minimum MTU** |
    WireGuard MASQUE
    IPv4 1340 bytes 1330 bytes
    IPv6 1360 bytes 1350 bytes
    | \ No newline at end of file +| **Minimum MTU** | 1360 bytes[^1] | + +[^1]: WireGuard requires 1360 bytes for IPv6 and 1340 bytes for IPv4. MASQUE requires 1350 bytes for IPv6 and 1330 bytes for IPv4. \ No newline at end of file diff --git a/src/content/partials/cloudflare-one/warp/system-requirements/macOS.mdx b/src/content/partials/cloudflare-one/warp/system-requirements/macOS.mdx index a6766a962c9c7a1..3af30fa08f043c5 100644 --- a/src/content/partials/cloudflare-one/warp/system-requirements/macOS.mdx +++ b/src/content/partials/cloudflare-one/warp/system-requirements/macOS.mdx @@ -10,4 +10,6 @@ | **HD space** | 75 MB | | **Memory** | 35 MB | | **Network interface type** | WIFI or LAN | -| **Minimum MTU** |
    WireGuard MASQUE
    IPv4 1340 bytes 1330 bytes
    IPv6 1360 bytes 1350 bytes
    | +| **Minimum MTU** | 1360 bytes[^1]| + +[^1]: WireGuard requires 1360 bytes for IPv6 and 1340 bytes for IPv4. MASQUE requires 1350 bytes for IPv6 and 1330 bytes for IPv4. \ No newline at end of file diff --git a/src/content/partials/cloudflare-one/warp/system-requirements/windows.mdx b/src/content/partials/cloudflare-one/warp/system-requirements/windows.mdx index c40fd88420ed03a..d675e6deefbc9e4 100644 --- a/src/content/partials/cloudflare-one/warp/system-requirements/windows.mdx +++ b/src/content/partials/cloudflare-one/warp/system-requirements/windows.mdx @@ -11,4 +11,6 @@ | **HD space** | 184 MB | | **Memory** | 3 MB | | **Network interface type** | WIFI or LAN | -| **Minimum MTU** |
    WireGuard MASQUE
    IPv4 1340 bytes 1330 bytes
    IPv6 1360 bytes 1350 bytes
    | +| **Minimum MTU** | 1360 bytes[^1]| + +[^1]: WireGuard requires 1360 bytes for IPv6 and 1340 bytes for IPv4. MASQUE requires 1350 bytes for IPv6 and 1330 bytes for IPv4. \ No newline at end of file From 7cc3a5b88af6ccdae7134ea83f179cc79e78ef22 Mon Sep 17 00:00:00 2001 From: Kian Newman-Hazel Date: Tue, 22 Oct 2024 15:13:54 +0100 Subject: [PATCH 3/3] Rebase and fix multiple footnote blocks --- src/scripts/footnotes.ts | 30 ++++++++++++++++-------------- tsconfig.json | 1 + 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/src/scripts/footnotes.ts b/src/scripts/footnotes.ts index eb6f3a948af61c4..dc12300f9c76265 100644 --- a/src/scripts/footnotes.ts +++ b/src/scripts/footnotes.ts @@ -1,26 +1,28 @@ import { addTooltip } from "~/util/tippy"; -const footnotes = document.querySelector("section.footnotes"); +const footnotes = document.querySelectorAll("section.footnotes"); if (footnotes) { - const notes = footnotes.querySelectorAll("li"); + for (const section of footnotes) { + const notes = section.querySelectorAll("li"); - for (const note of notes) { - const content = note.querySelector("p") as HTMLParagraphElement; + for (const note of notes) { + const content = note.querySelector("p") as HTMLParagraphElement; - const fnrefs = document.querySelectorAll( - `a[id^='${note.id.replace("fn", "fnref")}']`, - ); + const fnrefs = document.querySelectorAll( + `a[id^='${note.id.replace("fn", "fnref")}']`, + ); - for (const fnref of fnrefs) { - addTooltip(fnref, content.innerHTML); + for (const fnref of fnrefs) { + addTooltip(fnref, content.innerHTML); - fnref.classList.add("footnote"); + fnref.classList.add("footnote"); - fnref.setAttribute("tabindex", "0"); - fnref.removeAttribute("href"); + fnref.setAttribute("tabindex", "0"); + fnref.removeAttribute("href"); + } } - } - footnotes.remove(); + section.remove(); + } } diff --git a/tsconfig.json b/tsconfig.json index dc92f2969d986d0..63047515cec887f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,6 +2,7 @@ "extends": "astro/tsconfigs/strict", "compilerOptions": { "baseUrl": ".", + "target": "ESNext", "paths": { "~/*": ["src/*"] }