Skip to content

fix(docs): repair Docs tab nav by removing invalid page object#1167

Merged
factory-sagar merged 1 commit into
mainfrom
fix/docs-tab-invalid-page-entry
May 28, 2026
Merged

fix(docs): repair Docs tab nav by removing invalid page object#1167
factory-sagar merged 1 commit into
mainfrom
fix/docs-tab-invalid-page-entry

Conversation

@factory-sagar
Copy link
Copy Markdown
Contributor

Summary

docs.factory.ai was redirecting to /guides/power-user/setup-checklist instead of /welcome. Root cause: PR #1160 introduced an unsupported {"page": "...", "tag": "Beta"} entry in the pages array of the "Configure & Extend" group. Mintlify's docs.json navigation schema only allows path strings or group objects inside pages; the malformed object caused the entire Docs tab to drop from the rendered nav, so the homepage fell through to the next valid tab (Guides).

Confirming evidence before fix:

  • https://docs.factory.ai/ 307 → /guides/power-user/setup-checklist
  • https://docs.factory.ai/llms.txt listed every tab except Docs (no welcome/, cli/, web/, integrations/, enterprise/, reference/ paths)
  • Direct URLs like /welcome still loaded — only the nav was broken

Fix

  • Replace the malformed object with a plain path string in docs/docs.json.
  • Move tag: "Beta" to the page frontmatter of docs/cli/configuration/sandbox.mdx, where Mintlify supports it (Pages > tag).

Verification

  • python3 -c 'import json; json.load(open("docs/docs.json"))' → OK
  • mintlify dev (node@22) locally: GET / now 307 → /welcome ("Welcome to Factory"), Docs tab restored, Beta badge still present on the Sandbox sidebar entry.

The "Configure & Extend" group in docs.json contained an unsupported
{"page": "...", "tag": "Beta"} entry (introduced in #1160). Mintlify's
docs.json schema only allows path strings or group objects in pages
arrays; the malformed entry caused the entire Docs tab to drop from the
rendered nav, redirecting docs.factory.ai to /guides/power-user/setup-checklist.

Replace it with a plain path string and move the Beta badge into the
sandbox page's frontmatter where Mintlify supports the tag property.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
@factory-droid
Copy link
Copy Markdown
Contributor

factory-droid Bot commented May 28, 2026

Droid finished @factory-sagar's task —— View job


Droid review complete.

The change removes an invalid Mintlify navigation entry and moves the Beta label to supported page frontmatter, which should restore the Docs tab/home redirect behavior. No additional high-confidence issues found in the touched files.

@mintlify
Copy link
Copy Markdown
Contributor

mintlify Bot commented May 28, 2026

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

Project Status Preview Updated (UTC)
factory 🟢 Ready View Preview May 28, 2026, 1:46 PM

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

@factory-sagar factory-sagar merged commit f8443fe into main May 28, 2026
5 checks passed
@factory-sagar factory-sagar deleted the fix/docs-tab-invalid-page-entry branch May 28, 2026 13:47
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