diff --git a/fern/products/docs/pages/customization/what-is-docs-yml.mdx b/fern/products/docs/pages/customization/what-is-docs-yml.mdx index f569be63a..a6e029ddf 100644 --- a/fern/products/docs/pages/customization/what-is-docs-yml.mdx +++ b/fern/products/docs/pages/customization/what-is-docs-yml.mdx @@ -468,31 +468,31 @@ settings: The text to display in the searchbar. - + If set to true, the searchbar will be disabled. Use this if you want to use a custom search solution. - + If set to true, the code blocks will be displayed in dark mode, regardless of the selected theme. - - By default, search will display results for pages across all products and versions. + + By default (`false`), search will display results for pages across all products and versions. If set to true, search will display results for pages within the current product and version. - + If set to true, the HTTP snippets will be displayed in the API Reference. - + If set to true, when a user navigates to a page that does not exist, they will be redirected to the home page. By default, a 404 page will be displayed. - + If set to true, the TypeScript snippets will be displayed as JavaScript snippets in the API Reference. diff --git a/fern/snippets/redirects.mdx b/fern/snippets/redirects.mdx index 127f123f2..2915e099e 100644 --- a/fern/snippets/redirects.mdx +++ b/fern/snippets/redirects.mdx @@ -54,7 +54,12 @@ redirects: destination: / # Don't do this ``` -Instead, reach out to Fern to enable automatic homepage redirects, an internal setting that handles broken links without needing manual redirects. +Instead, [enable automatic homepage redirects in your `docs.yml`](/docs/configuration/what-is-docs-yml#settings-configuration) to send broken links to your homepage rather than showing a 404 page: + +```yaml title="docs.yml" +settings: + hide-404-page: true +```