Skip to content

Commit

Permalink
Generate Netlify redirects file (#3864)
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel authored Jan 17, 2025
1 parent 0b1050d commit c6325ca
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
14 changes: 13 additions & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down
1 change: 1 addition & 0 deletions docs/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ sitemap:
priority: 1.0
outputs:
- html
- REDIR
imageAlt: "/general/understand.png"
images: ["/general/understand.png"]
noedit: true
Expand Down

0 comments on commit c6325ca

Please sign in to comment.