> This page is for Docs.

> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt.

## Build a docs version from a git ref

navigation, docs.yml

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`**

```yaml docs.yml {5}
versions:
  - display-name: Latest
    path: ./versions/latest.yml
  - display-name: v2
    ref: v2.0.0
    availability: deprecated
```

Read the docs