From d0f313c0227146d20dc0408a8d07204d0c3c63e4 Mon Sep 17 00:00:00 2001 From: Lawrence Lane Date: Thu, 9 Apr 2026 15:11:27 -0400 Subject: [PATCH] docs(fern): fix redirects for /latest/index.html Google and external links target .../openshell/latest/index.html. Wildcard rules .../latest/:path*/index.html can mis-resolve when the path segment is empty, producing a literal :path* in the destination URL. Add explicit redirects for /openshell/latest/index.html and /openshell/latest/index (aligned with NeMo-Curator fern/docs.yml) and document ordering versus Sphinx-style URLs. Signed-off-by: Lawrence Lane Made-with: Cursor --- fern/docs.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fern/docs.yml b/fern/docs.yml index 1bead58c..d1dab6e7 100644 --- a/fern/docs.yml +++ b/fern/docs.yml @@ -66,11 +66,18 @@ versions: redirects: # Paths are relative to the site root; subpath prefix matches instances + custom-domain. + # Sphinx-style URLs used .../path/to/page/index.html; Fern canonical URLs omit index.html. + # List explicit /index.html routes before :path*/index.html so empty path segments do not + # mis-resolve (see NeMo-Curator fern/docs.yml). :path*.html must follow :path*/index.html rules. # https://www.buildwithfern.com/learn/docs/configuration/site-level-settings#redirects-configuration - source: "/openshell/index.html" destination: "/openshell/latest" - source: "/openshell/index" destination: "/openshell/latest" + - source: "/openshell/latest/index.html" + destination: "/openshell/latest" + - source: "/openshell/latest/index" + destination: "/openshell/latest" - source: "/openshell/latest/:path*/index.html" destination: "/openshell/latest/:path*" - source: "/openshell/:path*/index.html"