Skip to content

docs.json: drop the fonts block so Inter is self-hosted - #14

Open
adamXbot wants to merge 1 commit into
mainfrom
fix/self-hosted-fonts
Open

adamXbot wants to merge 1 commit into
mainfrom
fix/self-hosted-fonts

Conversation

@adamXbot

@adamXbot adamXbot commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator

What

Removes the fonts block (heading.family and body.family = Inter) from docs.json.

Why

Mintlify treats a bare family value as a Google Fonts family and emits a <link> to fonts.googleapis.com/css2?family=Inter… plus preconnects to fonts.gstatic.com. The mint theme already bundles Inter under /_next/static/media/ through Next.js font optimisation, so the live site loads the same typeface twice, and only the Google copy sends the visitor's IP off-site. docs-mantis has no fonts block and renders the identical Inter from the bundled files.

After this change the export carries no request to Google. The style-src and font-src allowances for fonts.googleapis.com / fonts.gstatic.com in the privacykey.org transform rule's Report-Only CSP can be removed once this is deployed.

If a non-default face is ever wanted, Mintlify's source + format: woff2 keys point at a file committed in the repo and never touch Google.

🤖 Generated with Claude Code

Naming Inter as the heading and body family makes Mintlify load it a
second time through Google's CSS API (fonts.googleapis.com and
fonts.gstatic.com), on top of the Inter the mint theme already bundles
under /_next/static/media. With the block gone the export matches
docs-mantis: the same typeface, served from our own host, and no visitor
request to Google.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
docs-privacycommand 86ca2e5 Oct 09 2026, 06:14 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant