Skip to content
This repository was archived by the owner on May 29, 2026. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 36 additions & 3 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
# This site (docs.flox.dev) is the legacy MkDocs docs.
# It now redirects to the new Mintlify docs at flox.dev/docs.
#
# Netlify matches `from` paths trailing-slash-insensitively, so these
# rules cover both `/path` and `/path/`. More specific rules must come
# first (first match wins).

# --- Pages renamed/removed in the migration: map to their closest home ---

[[redirects]]
from = "/docs/man/flox-build-update-catalogs"
to = "https://flox.dev/docs/man/flox-build"
status = 301
force = true

[[redirects]]
from = "/docs/man/nix-builds.toml"
to = "https://flox.dev/docs/man/manifest.toml"
status = 301
force = true

# --- Path-preserving redirect for everything else under /docs/ ---
# 93 of 99 legacy URLs resolve 1:1 on the new site (the rest are former
# MkDocs include/snippet partials that were never real pages).

[[redirects]]
from = "/docs/*"
to = "https://flox.dev/docs/:splat"
status = 301
force = true

# --- Anything outside /docs/ -> the new docs home ---

[[redirects]]
from = "/*"
to = "/docs/"
status = 302
force = false
to = "https://flox.dev/docs"
status = 301
force = true
Loading