Build a docs version from a git ref

You can now point a version entry at a git ref (a branch, tag, or commit SHA) instead of a path in your working tree. On publish, Fern builds that version’s content from the ref, composed with the current branch’s theme and shell. Use it for a version that no longer receives content updates, such as a past release; keep actively maintained versions on path, since fern docs dev previews working-tree versions only.

docs.yml
1versions:
2 - display-name: Latest
3 path: ./versions/latest.yml
4 - display-name: v2
5 ref: v2.0.0
6 availability: deprecated
Read the docs