Skip to content

[CHORE] CI: compile Solidity samples on changed pages - #102

Merged
haimbj1 merged 5 commits into
mainfrom
ci/sample-compile-check
Sep 28, 2026
Merged

haimbj1 merged 5 commits into
mainfrom
ci/sample-compile-check

Conversation

@haimbj1

@haimbj1 haimbj1 commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Adds a CI check that compiles the Solidity samples of pages changed in a PR.

How it works: scripts/compile-samples.py extracts every ```solidity block from the changed .mdx files. Complete contracts compile strict and FAIL the check on any error. Fragments are wrapped in a scaffold and only WARN: they depend on page context the scaffold cannot supply, so they surface in the log without blocking the PR. Skipped entirely: blocks with ellipsis placeholders, 'Before' fences documenting removed APIs, anti-example fences, truncated fragments, and blocks importing packages the check does not provision (only @fhenixprotocol/cofhe-contracts at the version compatibility.mdx documents is installed).

v1 skips TypeScript blocks.

Validated by a full-site run over 96 pages: it found 6 genuinely broken samples (fixed in #104) and 1 more already fixed in #103. decryption-operations.mdx stays on the page skip-list until #103 merges.

@mintlify

mintlify Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
fhenix 🟢 Ready View Preview Sep 28, 2026, 2:04 PM

@haimbj1
haimbj1 merged commit c1ceea7 into main Sep 28, 2026
2 checks passed

This branch was successfully deployed

1 active deployment
staging — ba876a0a Deployed Sep 28, 2026 by mintlify[bot]
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