Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate Netlify redirects file #3864

Merged
merged 2 commits into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
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 = true
npentrel marked this conversation as resolved.
Show resolved Hide resolved

[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
Loading