fix: restore granular .mintignore to unbreak versioned docs#1505
Merged
Conversation
EmmaLouise2018
force-pushed
the
EmmaLouise2018/fix-docs-url
branch
from
March 16, 2026 22:50
3ea1301 to
cb7b3db
Compare
PR #1462 replaced the granular .mintignore with a blanket `dist/` ignore, which prevents Mintlify from serving versioned doc snapshots (2.5.3, 3.0.0-beta.3, rc.1, rc.2) that live under dist/docs/. Restore specific dist/ subdirectory ignores so dist/docs/ is served while dist/schemas/, dist/db/, etc. remain excluded.
…tives These tasks moved from media-buy/task-reference/ to creative/task-reference/ in v3 but 18 internal links still pointed to the old location, breaking both the rc.2 versioned snapshot and the live source docs.
The nav restructure in #1509 accidentally wrapped the 2.5 version's groups inside a "Documentation" group. This nesting pattern works for 3.0-rc but causes Mintlify to 404 on all 2.5.3 doc pages. Restores the flat groups array for the 2.5 version. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The nav restructure in #1509 broke all 2.5.3 docs but no test caught it. The pre-push hook deletes dist/docs before running mintlify broken-links, and mintlify broken-links only checks cross-references, not nav structure. Adds tests/docs-nav-validation.test.cjs which validates: - All page references resolve to files on disk (including dist/docs/) - No empty groups in the navigation - Snapshot versions have consistent version prefixes - Snapshot versions use flat top-level groups (not a single wrapper) Wired into the test chain so it runs on every commit. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The test caught that the "latest" version had the same Documentation wrapper bug as 2.5 — confirmed broken on the live site via vibium. Flatten the latest version's nav to use flat top-level groups. Improve docs-nav-validation.test.cjs per review feedback: - Check all non-default versions (not just dist/docs snapshots) - Detect wrapper groups by structural nesting, not page count - Add duplicate page reference detection - Add file extension detection in page paths - Remove dead collectGroups branch Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
EmmaLouise2018
force-pushed
the
EmmaLouise2018/fix-docs-url
branch
from
March 16, 2026 22:52
cb7b3db to
a3137a0
Compare
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.mintignore: PR feat: add signals curriculum with illustrated walkthrough #1462 replaced granular ignores with a blanketdist/entry, which prevented Mintlify from serving versioned doc snapshots (2.5.3, 3.0.0-beta.3, rc.1, rc.2) at/dist/docs/<version>/. Replaced with specificdist/subdirectory ignores sodist/docs/is served whiledist/schemas/,dist/db/, etc. remain excluded.list_creative_formatsandsync_creativestasks moved frommedia-buy/task-reference/tocreative/task-reference/in v3 but internal links weren't updated. Fixed across both sourcedocs/and thedist/docs/3.0.0-rc.2/snapshot.tests/docs-nav-validation.test.cjsvalidates page file existence, no empty groups, no duplicates, consistent version prefixes, and flat top-level groups for non-default versions.Test plan
npx mintlify broken-linkspasses clean (0 broken links)npm run buildsucceeds