Skip to content

Commit fbba983

Browse files
committed
Update documentation
1 parent 352609e commit fbba983

2 files changed

Lines changed: 3 additions & 10 deletions

File tree

website/src/content/docs/snippet/_meta.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ export default {
44
theme: 'Theme',
55
'customizing-ui': 'Customizing the UI',
66
security: 'Security & Permissions',
7+
plugins: 'Plugins',
78
airgapped: 'Running Airgapped',
89
}

website/src/content/docs/snippet/airgapped.mdx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
---
22
title: Running Airgapped / Offline
3-
description: Configure the EmbedPDF Snippet to run without any external network requests — for GDPR-sensitive, high-availability, or fully offline deployments.
3+
description: Configure the EmbedPDF Snippet to run without any external network requests.
44
searchable: true
55
---
66

77
import { Callout } from '@/components/callout'
88

99
# Running Airgapped / Offline
1010

11-
By default, the EmbedPDF Snippet is optimized for a zero-config developer experience and pulls a handful of assets from public CDNs. That's convenient in most setups, but it's usually not what you want for:
12-
13-
- **GDPR-sensitive deployments**, where requests to third-party servers (Google Fonts, jsDelivr) may leak end-user IP addresses without consent.
14-
- **High-availability applications**, where you don't want a critical feature to depend on an external service.
15-
- **Network-restricted environments**, such as intranets or airgapped infrastructure.
11+
By default, the EmbedPDF Snippet is optimized for a zero-config developer experience and pulls a handful of assets from public CDNs. For network-restricted environments, such as intranets or airgapped infrastructure, you can redirect or disable those external requests.
1612

1713
This guide walks through every CDN default in the snippet and shows how to redirect or disable each one.
1814

@@ -82,10 +78,6 @@ EmbedPDF.init({
8278

8379
See the individual font package READMEs (`@embedpdf/fonts-jp`, `@embedpdf/fonts-sc`, `@embedpdf/fonts-tc`, `@embedpdf/fonts-kr`, `@embedpdf/fonts-arabic`, `@embedpdf/fonts-hebrew`, `@embedpdf/fonts-latin`) for the exact file names and recommended weights.
8480

85-
### Option C — Mirror the jsDelivr URLs
86-
87-
If you simply want the same CDN config pointed at your own mirror, copy the structure from `createCdnFontConfig` in `@embedpdf/engines` and rewrite the hostnames.
88-
8981
## 3. Configure or opt out of webfonts
9082

9183
The snippet uses two families of external webfonts, both configurable through the top-level `fonts` key:

0 commit comments

Comments
 (0)