Repository navigation
fix(docs.json): restore redirects for legacy docs URLs - #119
Merged
Merged
Conversation
The MkDocs site's redirect_maps (mkdocs.yml) weren't carried over in the Mintlify migration, so old docs URLs now 404. floxwebsite's Netlify rules for these paths sit behind the /docs/* proxy and never fire. Restore the MkDocs map (command-reference -> man, cookbook/languages -> languages, cookbook/publish -> customer, concepts/manifest) and add mappings for pre-MkDocs paths that floxwebsite still links to. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
mkenigs
approved these changes
Oct 9, 2026
This branch was successfully deployed
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.
Problem
The MkDocs site (
flox/floxdocs, archived) had aredirect_mapslist inmkdocs.yml. It wasn't carried over in the Mintlify migration, so old docs URLs now 404 on flox.dev, for example:/docs/reference/command-reference/flox-activate/(all 23 command-reference pages)/docs/cookbook/languages/rust/(all 7 language guides)/docs/cookbook/publish/catalog-store/,/docs/concepts/manifest/The floxwebsite Netlify rules for these paths come after the
/docs/*proxy, so they never fire. Mintlify is the only place that can catch them.Changes
Adds a
redirectsarray todocs.json:reference/command-reference/*→man/*andcookbook/languages/*→languages/*(both wildcards),cookbook/publish/*→customer/*, andconcepts/manifest→concepts/environmentstutorials/projects,tutorials/custom-packages,tutorials/build-container-images,integrations/github-actions,cookbook/language-guides/*,*/managed-environments,catalog,generationsandenvironmentsflox-update→man/flox-upgradeandflox-rollback→man/flox-generations-rollbackI left out pages with no current equivalent (
stabilities,package-arguments,flox-plus-nix,validate-identical,flox-nix-config,direnv,flox-gh) instead of sending them to the docs home.Sources are relative to the docs root, like
navigation. Mintlify's built-in redirects keep the/docsprefix behind the flox.dev proxy (for example,/docs/tutorials/CUDA→/docs/tutorials/cuda).Verification
mint validatepassesmint dev, the wildcards and specific-before-wildcard order resolve as expected (flox-activate→man/flox-activate,flox-rollback→man/flox-generations-rollback,cookbook/language-guides/python→languages/python)After merge
curl -sI https://flox.dev/docs/reference/command-reference/flox-activate/returns a 308 to/docs/man/flox-activate/docs/*Netlify rules and points the root-level legacy rules straight at their final pages🤖 Generated with Claude Code