Skip to content

fix: restore granular .mintignore to unbreak versioned docs#1505

Merged
EmmaLouise2018 merged 6 commits into
mainfrom
EmmaLouise2018/fix-docs-url
Mar 16, 2026
Merged

fix: restore granular .mintignore to unbreak versioned docs#1505
EmmaLouise2018 merged 6 commits into
mainfrom
EmmaLouise2018/fix-docs-url

Conversation

@EmmaLouise2018

@EmmaLouise2018 EmmaLouise2018 commented Mar 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Restored .mintignore: PR feat: add signals curriculum with illustrated walkthrough #1462 replaced granular ignores with a blanket dist/ 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 specific dist/ subdirectory ignores so dist/docs/ is served while dist/schemas/, dist/db/, etc. remain excluded.
  • Fixed 18 broken links: list_creative_formats and sync_creatives tasks moved from media-buy/task-reference/ to creative/task-reference/ in v3 but internal links weren't updated. Fixed across both source docs/ and the dist/docs/3.0.0-rc.2/ snapshot.
  • Flattened versioned nav (from fix: restore 2.5 versioned docs navigation #1511): Removed incorrect "Documentation" wrapper group from non-default version nav configs (latest, 2.5) that caused Mintlify to 404 on those pages.
  • Added nav validation tests (from fix: restore 2.5 versioned docs navigation #1511): 15-test suite in tests/docs-nav-validation.test.cjs validates page file existence, no empty groups, no duplicates, consistent version prefixes, and flat top-level groups for non-default versions.

Test plan

@EmmaLouise2018
EmmaLouise2018 force-pushed the EmmaLouise2018/fix-docs-url branch from 3ea1301 to cb7b3db Compare March 16, 2026 22:50
@EmmaLouise2018
EmmaLouise2018 requested a review from bokelley March 16, 2026 22:50
EmmaLouise2018 and others added 6 commits March 16, 2026 18:51
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
EmmaLouise2018 force-pushed the EmmaLouise2018/fix-docs-url branch from cb7b3db to a3137a0 Compare March 16, 2026 22:52
@EmmaLouise2018
EmmaLouise2018 merged commit f321526 into main Mar 16, 2026
14 checks passed
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.

2 participants