Skip to content

chore: add context7.json to claim the Context7 library - #70

Open
kuzdogan wants to merge 1 commit into
mainfrom
chore/context7-claim
Open

chore: add context7.json to claim the Context7 library#70
kuzdogan wants to merge 1 commit into
mainfrom
chore/context7-claim

Conversation

@kuzdogan

Copy link
Copy Markdown
Member

Adds static/docs/context7.json so we can claim admin rights for the sourcify_dev library on Context7.

Why

Context7 verifies that we own the docs site before it gives us admin rights over the library. The check is: host a JSON file with a public key that Context7 generated, at a URL under https://docs.sourcify.dev/docs. Context7 then fetches that URL and compares the key.

What changes

New file static/docs/context7.json:

{
  "url": "https://context7.com/websites/sourcify_dev",
  "public_key": "pk_HiiA9OlLy1Bd0QgaG7iO0"
}

Docusaurus copies everything under static/ to the build output as-is. So this file becomes build/docs/context7.json and is served at:

https://docs.sourcify.dev/docs/context7.json

I ran npm run build locally and confirmed the file lands at build/docs/context7.json with the correct content. It does not collide with any generated docs page, because the docs pages are directories with an index.html inside.

After merge

Once main deploys, enter https://docs.sourcify.dev/docs/context7.json in the "Claim Library" dialog on Context7 and click Claim Library.

The public_key is a public value, meant to be published. It is not a secret.

🤖 Generated with Claude Code

Context7 verifies ownership of the sourcify_dev library by fetching a
JSON file with a public key from a URL under https://docs.sourcify.dev/docs.
The file is placed in static/docs/, so Docusaurus copies it to
build/docs/context7.json and it is served at
https://docs.sourcify.dev/docs/context7.json.

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

Copy link
Copy Markdown

Deploying docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 99ad3f6
Status: ✅  Deploy successful!
Preview URL: https://8ea1b25f.docs-8pb.pages.dev
Branch Preview URL: https://chore-context7-claim.docs-8pb.pages.dev

View logs

@kuzdogan kuzdogan moved this to Sprint - Needs Review in Sourcify Public Aug 14, 2026
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