Skip to content

Document redirects files in docs.yml - #6767

Open
fern-api[bot] wants to merge 6 commits into
mainfrom
fern/document-redirects-file
Open

Document redirects files in docs.yml#6767
fern-api[bot] wants to merge 6 commits into
mainfrom
fern/document-redirects-file

Conversation

@fern-api

@fern-api fern-api Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Summary

Document that redirects can reference one YAML file or a list of files instead of defining redirects inline in docs.yml.

Referenced files use a top-level redirects list, resolve relative to docs.yml, and are evaluated in the order listed. The guide uses tabbed examples for the one-file and multiple-file forms, while the configuration reference, error reference, and changelog cover the same behavior.

Link to Devin session: https://app.devin.ai/sessions/2a33221580134eeaa2c4496f531f7d5b
Open in Devin Desktop: https://app.devin.ai/desktop/session/2a33221580134eeaa2c4496f531f7d5b?variant=devin

@fern-api
fern-api Bot requested a review from devalog as a code owner August 27, 2026 19:43
@fern-api

fern-api Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor Author

Requested by: will.kendall
Slack thread: View conversation

@github-actions

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot changed the title Document redirects files in docs.yml Document redirects files in docs.yml Aug 28, 2026
devalog and others added 4 commits August 28, 2026 17:33
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
destination: /new-path # must differ from `source`
```

### Failed to load redirects: /path/to/redirects.yml does not exist

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [vale] <Microsoft.Contractions> reported by reviewdog 🐶
Use 'doesn't' instead of 'does not'.

Suggested change
### Failed to load redirects: /path/to/redirects.yml does not exist
### Failed to load redirects: /path/to/redirects.yml doesn't exist


`redirects` in `docs.yml` points at a file that isn't on disk. Filepaths resolve relative to `docs.yml`, so `redirects: ./redirects.yml` refers to a file that sits next to it.

### Failed to parse /path/to/redirects.yml: the file must nest the list under a top-level `redirects` key

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [vale] <Microsoft.HeadingColons> reported by reviewdog 🐶
Capitalize ': t'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant