From c6325ca202d0c25131b69ab4725d9aacec301847 Mon Sep 17 00:00:00 2001 From: Naomi Pentrel <5212232+npentrel@users.noreply.github.com> Date: Fri, 17 Jan 2025 17:40:41 +0100 Subject: [PATCH] Generate Netlify redirects file (#3864) --- config.toml | 14 +++++++++++++- docs/_index.md | 1 + 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/config.toml b/config.toml index 6414eeaeed..2722f29dba 100644 --- a/config.toml +++ b/config.toml @@ -49,10 +49,18 @@ weight = 1 ordered = false startLevel = 2 +disableAliases = false + [outputs] -home = ["HTML"] +home = ["HTML", "REDIR"] section = ["HTML", "Typesense"] +[outputFormats.REDIR] +mediaType = "text/netlify" +baseName = "_redirects" +isPlainText = true +notAlternative = true + [outputFormats.Typesense] baseName = "typesense" isPlainText = true @@ -63,6 +71,10 @@ notAlternative = true mediaType = "application/rss+xml" baseName = "feed" +[mediaTypes] +[mediaTypes."text/netlify"] +delimiter = "" + [params] copyright = "Viam, Inc. - Documentation is licensed under Creative Commons ShareAlike License. " privacy_policy = "https://www.viam.com/privacy" diff --git a/docs/_index.md b/docs/_index.md index aaeabd178a..51543809aa 100644 --- a/docs/_index.md +++ b/docs/_index.md @@ -12,6 +12,7 @@ sitemap: priority: 1.0 outputs: - html + - REDIR imageAlt: "/general/understand.png" images: ["/general/understand.png"] noedit: true