Skip to content

fix: block internal files from mintlify publish#744

Merged
RiskeyL merged 2 commits intomainfrom
codex/harden-mintignore-internal-files
Apr 13, 2026
Merged

fix: block internal files from mintlify publish#744
RiskeyL merged 2 commits intomainfrom
codex/harden-mintignore-internal-files

Conversation

@WH-2099
Copy link
Copy Markdown
Member

@WH-2099 WH-2099 commented Apr 12, 2026

Summary

  • expand .mintignore to ignore internal-only root files and internal workflow directories from the docs publish surface
  • explicitly ignore non-public utility files that live under otherwise public asset directories
  • convert CLAUDE.md into a symlink to AGENTS.md and add a rule requiring internal-only files to be covered by .mintignore

Why

Some non-public repository files were directly accessible from the published Mintlify site because the ignore coverage was incomplete. This change narrows the public publish surface and keeps agent instructions in sync through a single source of truth.

Impact

  • reduces the chance of exposing internal instructions, tooling metadata, and maintenance utilities on docs.dify.ai
  • prevents instruction drift between AGENTS.md and CLAUDE.md

Validation

  • git diff --cached --check
  • verified current production exposure with curl before the change
  • did not run a local Mintlify build in this branch

Closes #743

@WH-2099 WH-2099 added the documentation Improvements or additions to documentation label Apr 12, 2026
@WH-2099 WH-2099 self-assigned this Apr 12, 2026
@mintlify
Copy link
Copy Markdown
Contributor

mintlify bot commented Apr 12, 2026

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

Project Status Preview Updated (UTC)
dify-core-product 🟢 Ready View Preview Apr 12, 2026, 1:12 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@WH-2099 WH-2099 changed the title [codex] block internal files from mintlify publish block internal files from mintlify publish Apr 12, 2026
@WH-2099 WH-2099 changed the title block internal files from mintlify publish docs: block internal files from mintlify publish Apr 12, 2026
@WH-2099 WH-2099 changed the title docs: block internal files from mintlify publish fix: block internal files from mintlify publish Apr 12, 2026
@WH-2099 WH-2099 marked this pull request as ready for review April 12, 2026 13:10
@WH-2099 WH-2099 requested a review from RiskeyL as a code owner April 12, 2026 13:10
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Apr 12, 2026
@WH-2099 WH-2099 requested a review from laipz8200 April 12, 2026 13:12
fatelei
fatelei previously approved these changes Apr 12, 2026
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Apr 12, 2026
laipz8200
laipz8200 previously approved these changes Apr 12, 2026
@RiskeyL RiskeyL merged commit 758be64 into main Apr 13, 2026
2 checks passed
@RiskeyL RiskeyL deleted the codex/harden-mintignore-internal-files branch April 13, 2026 05:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[DOCS]: prevent internal files from being exposed by Mintlify

4 participants